Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009674/0.0009674, allocations: 182.4 kB / 8.138 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.144/1.144, allocations: 221.4 MB / 229.9 MB, free: 3 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009245/0.0009244, allocations: 102.4 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0912/0.09215, allocations: 55.81 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.2725, allocations: 50.38 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08807/0.3606, allocations: 87.58 MB / 474.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002111/0.3609, allocations: 71.91 kB / 474.6 MB, free: 15.09 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.2167/0.5776, allocations: 38.64 MB / 0.5013 GB, free: 89.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.5776, allocations: 6.969 kB / 0.5013 GB, free: 89.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/0.5778, allocations: 131.7 kB / 0.5014 GB, free: 89.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000832/0.5786, allocations: 0.7136 MB / 0.5021 GB, free: 89.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.5786, allocations: 9.188 kB / 0.5021 GB, free: 89.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.089e-05/0.5787, allocations: 21.8 kB / 0.5021 GB, free: 89.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002925/0.579, allocations: 193 kB / 0.5023 GB, free: 89.44 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000333/0.5793, allocations: 271.4 kB / 0.5026 GB, free: 89.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.5794, allocations: 0 / 0.5026 GB, free: 89.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.825e-05/0.5794, allocations: 1.688 kB / 0.5026 GB, free: 89.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.5794, allocations: 5.5 kB / 0.5026 GB, free: 89.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001492/0.5809, allocations: 1.134 MB / 0.5037 GB, free: 89.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002264/0.5811, allocations: 204.9 kB / 0.5039 GB, free: 89.06 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003254/0.5815, allocations: 271.3 kB / 0.5041 GB, free: 89.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001046/0.5825, allocations: 1.272 MB / 0.5054 GB, free: 87.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.523e-05/0.5826, allocations: 35.59 kB / 0.5054 GB, free: 87.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 1.563e-06/0.5826, allocations: 0 / 0.5054 GB, free: 87.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.001985/0.5846, allocations: 1.165 MB / 0.5065 GB, free: 87.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.859e-05/0.5846, allocations: 115.2 kB / 0.5066 GB, free: 87.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006345/0.5852, allocations: 0.7094 MB / 0.5073 GB, free: 86.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.5853, allocations: 25.7 kB / 0.5074 GB, free: 86.92 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.61e-05/0.5854, allocations: 195.5 kB / 0.5076 GB, free: 86.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.156e-05/0.5854, allocations: 127 kB / 0.5077 GB, free: 86.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.963e-05/0.5855, allocations: 0 / 0.5077 GB, free: 86.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.776e-05/0.5855, allocations: 319.4 kB / 0.508 GB, free: 86.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.5856, allocations: 96.72 kB / 0.5081 GB, free: 86.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001449/0.5858, allocations: 142.8 kB / 0.5082 GB, free: 86.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002869/0.5861, allocations: 147.9 kB / 0.5083 GB, free: 86.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.5861, allocations: 0 / 0.5083 GB, free: 86.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007256/0.5868, allocations: 472.1 kB / 0.5088 GB, free: 86.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.5868, allocations: 11 kB / 0.5088 GB, free: 86.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.808e-05/0.5869, allocations: 14.47 kB / 0.5088 GB, free: 86.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001909/0.5871, allocations: 69.11 kB / 0.5089 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002052/0.5873, allocations: 42.58 kB / 0.5089 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001546/0.5889, allocations: 2.861 MB / 0.5117 GB, free: 83.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002756/0.5891, allocations: 18.3 kB / 0.5117 GB, free: 83.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.566e-05/0.5892, allocations: 18.59 kB / 0.5118 GB, free: 83.72 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.5893, allocations: 148.7 kB / 0.5119 GB, free: 83.58 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.5894, allocations: 120.3 kB / 0.512 GB, free: 83.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001453/0.5909, allocations: 0.6746 MB / 0.5127 GB, free: 83.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.5909, allocations: 3.844 kB / 0.5127 GB, free: 83.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.5909, allocations: 6.438 kB / 0.5127 GB, free: 83.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.5909, allocations: 3.938 kB / 0.5127 GB, free: 83.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005114/0.5914, allocations: 0.561 MB / 0.5132 GB, free: 83.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-05/0.5915, allocations: 14.33 kB / 0.5132 GB, free: 83.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001795/0.5917, allocations: 33.53 kB / 0.5133 GB, free: 83.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001552/0.5918, allocations: 69.59 kB / 0.5133 GB, free: 83.26 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.318e-05/0.5919, allocations: 12.83 kB / 0.5134 GB, free: 83.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00145/0.5933, allocations: 2.871 MB / 0.5162 GB, free: 80.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.5933, allocations: 4.875 kB / 0.5162 GB, free: 80.71 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009662/0.5943, allocations: 0.7681 MB / 0.5169 GB, free: 80.48 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001239/0.5956, allocations: 1.337 MB / 0.5182 GB, free: 79.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002981/0.5959, allocations: 289.1 kB / 0.5185 GB, free: 79.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.596, allocations: 7.125 kB / 0.5185 GB, free: 79.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002899/0.5963, allocations: 9.266 kB / 0.5185 GB, free: 79.58 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.181e-05/0.5964, allocations: 24.09 kB / 0.5185 GB, free: 79.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.741e-05/0.5964, allocations: 17.91 kB / 0.5186 GB, free: 79.58 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004808/0.5969, allocations: 0.5453 MB / 0.5191 GB, free: 79.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001341/0.5983, allocations: 267.3 kB / 0.5193 GB, free: 79.25 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D3.n.v,D2.pin) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005506/0.5988, allocations: 408.9 kB / 0.5197 GB, free: 79.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006505/0.5995, allocations: 0.6358 MB / 0.5204 GB, free: 78.65 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.5995, allocations: 0.5938 kB / 0.5204 GB, free: 78.65 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003974/0.5999, allocations: 0.5429 MB / 0.5209 GB, free: 78.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004013/0.6003, allocations: 93.73 kB / 0.521 GB, free: 78.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.6019, allocations: 1.053 MB / 0.522 GB, free: 77.65 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003832/0.6023, allocations: 1.058 MB / 0.523 GB, free: 76.94 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.6023, allocations: 0 / 0.523 GB, free: 76.94 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)