Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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(IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="IDEAS_IDEAS_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="IDEAS_IDEAS_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",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.003813/0.003813, allocations: 177.3 kB / 7.454 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7202/0.7202, allocations: 133.5 MB / 141.4 MB, free: 15.66 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.622/1.622, allocations: 221.3 MB / 395 MB, free: 10.22 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 101.3 kB / 477.8 MB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5562/0.5574, allocations: 88.43 MB / 0.5529 GB, free: 89.11 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2113/0.7687, allocations: 82.29 MB / 0.6333 GB, free: 14.02 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.854/5.623, allocations: 1.831 GB / 2.465 GB, free: 136.3 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/5.623, allocations: 87.42 kB / 2.465 GB, free: 136.2 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 6.659/12.28, allocations: 1.803 GB / 4.268 GB, free: 171.5 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/12.28, allocations: 8.969 kB / 4.268 GB, free: 171.5 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000923/12.28, allocations: 186.2 kB / 4.268 GB, free: 171.4 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002553/12.29, allocations: 1.095 MB / 4.269 GB, free: 170.8 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.639e-05/12.29, allocations: 15.5 kB / 4.269 GB, free: 170.8 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.64e-05/12.29, allocations: 37.12 kB / 4.269 GB, free: 170.8 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009082/12.29, allocations: 491.3 kB / 4.27 GB, free: 170.6 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/12.29, allocations: 0.6843 MB / 4.27 GB, free: 170.1 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/12.29, allocations: 5 kB / 4.27 GB, free: 170.1 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.874e-05/12.29, allocations: 3.094 kB / 4.27 GB, free: 170.1 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.612e-05/12.29, allocations: 18.09 kB / 4.27 GB, free: 170.1 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004707/12.29, allocations: 4.66 MB / 4.275 GB, free: 165.8 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008253/12.29, allocations: 459.8 kB / 4.275 GB, free: 165.6 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004435/12.29, allocations: 253.2 kB / 4.276 GB, free: 165.5 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003622/12.29, allocations: 193.1 kB / 4.276 GB, free: 165.3 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004068/12.3, allocations: 262.4 kB / 4.276 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=31): time 2.104e-06/12.3, allocations: 0 / 4.276 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of matching and sorting (n=31): time 0.001101/12.3, allocations: 0.4956 MB / 4.276 GB, free: 164.9 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.994e-05/12.3, allocations: 90.83 kB / 4.277 GB, free: 164.8 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009667/12.3, allocations: 0.8698 MB / 4.277 GB, free: 164.3 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.419e-05/12.3, allocations: 28.33 kB / 4.277 GB, free: 164.3 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002163/12.3, allocations: 350.5 kB / 4.278 GB, free: 164 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 7.102e-05/12.3, allocations: 104.5 kB / 4.278 GB, free: 163.9 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.095e-05/12.3, allocations: 0 / 4.278 GB, free: 163.9 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.259e-05/12.3, allocations: 323.6 kB / 4.278 GB, free: 163.6 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000228/12.3, allocations: 186.9 kB / 4.278 GB, free: 163.5 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004188/12.3, allocations: 0.511 MB / 4.279 GB, free: 163 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000328/12.3, allocations: 284.4 kB / 4.279 GB, free: 162.9 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/12.3, allocations: 3.906 kB / 4.279 GB, free: 162.9 MB / 0.6823 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008309/12.3, allocations: 0.6201 MB / 4.28 GB, free: 162.6 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004158/12.3, allocations: 2.093 MB / 4.282 GB, free: 160.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/12.3, allocations: 8.562 kB / 4.282 GB, free: 160.4 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.463e-05/12.3, allocations: 8.719 kB / 4.282 GB, free: 160.4 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005715/12.3, allocations: 116.5 kB / 4.282 GB, free: 160.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.78e-05/12.3, allocations: 19.14 kB / 4.282 GB, free: 160.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009731/12.3, allocations: 85.72 kB / 4.282 GB, free: 160.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.093e-05/12.3, allocations: 23.88 kB / 4.282 GB, free: 160.3 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/12.3, allocations: 5.938 kB / 4.282 GB, free: 160.3 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007053/12.3, allocations: 421 kB / 4.282 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/12.3, allocations: 5.531 kB / 4.282 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/12.3, allocations: 8.594 kB / 4.282 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004488/12.3, allocations: 114 kB / 4.283 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/12.3, allocations: 11.64 kB / 4.283 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007951/12.3, allocations: 74.84 kB / 4.283 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.488e-05/12.3, allocations: 22.66 kB / 4.283 GB, free: 160.1 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse_p.T_start,pulse_p.T_start,$PRE.pulse_p.count,pulse_p.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001593/12.3, allocations: 128.5 kB / 4.283 GB, free: 159.9 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001514/12.3, allocations: 92 kB / 4.283 GB, free: 159.9 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008824/12.31, allocations: 468.9 kB / 4.283 GB, free: 159.6 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.858e-06/12.31, allocations: 4.188 kB / 4.283 GB, free: 159.6 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/12.31, allocations: 4.625 kB / 4.283 GB, free: 159.6 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/12.31, allocations: 5.062 kB / 4.283 GB, free: 159.6 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002282/12.31, allocations: 1.272 MB / 4.285 GB, free: 158.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/12.31, allocations: 2.594 kB / 4.285 GB, free: 158.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003543/12.31, allocations: 83.56 kB / 4.285 GB, free: 158.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.154e-05/12.31, allocations: 7.938 kB / 4.285 GB, free: 158.7 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.508e-05/12.31, allocations: 3.75 kB / 4.285 GB, free: 158.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.842e-06/12.31, allocations: 2.656 kB / 4.285 GB, free: 158.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/12.31, allocations: 2.938 kB / 4.285 GB, free: 158.7 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008227/12.31, allocations: 0.6429 MB / 4.285 GB, free: 158.2 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009421/12.31, allocations: 1.072 MB / 4.286 GB, free: 157.2 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003858/12.31, allocations: 207.9 kB / 4.287 GB, free: 156.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/12.31, allocations: 11.52 kB / 4.287 GB, free: 156.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005205/12.31, allocations: 50.95 kB / 4.287 GB, free: 156.9 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.823e-05/12.31, allocations: 27.91 kB / 4.287 GB, free: 156.9 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.617e-05/12.31, allocations: 15.89 kB / 4.287 GB, free: 156.8 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0007878/12.31, allocations: 0.6842 MB / 4.287 GB, free: 156.2 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.00291/12.31, allocations: 0.616 MB / 4.288 GB, free: 155.5 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse_p.T_start,pulse_p.count) * Number of discrete states: 1 (pulse_p.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001393/12.32, allocations: 1.035 MB / 4.289 GB, free: 154.7 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001072/12.32, allocations: 0.731 MB / 4.29 GB, free: 154 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/12.32, allocations: 3.5 kB / 4.29 GB, free: 154 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002385/12.32, allocations: 187.7 kB / 4.29 GB, free: 153.8 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001803/12.32, allocations: 370.2 kB / 4.29 GB, free: 153.5 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002441/12.32, allocations: 1.39 MB / 4.292 GB, free: 152.1 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007362/12.32, allocations: 1.275 MB / 4.293 GB, free: 150.8 MB / 0.6823 GB Notification: Performance of SimCode: time 1.082e-06/12.32, allocations: 0 / 4.293 GB, free: 150.8 MB / 0.6823 GB (rm -f IDEAS_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo IDEAS_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/IDEAS_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.fmu > IDEAS_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1)