Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised",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/BuildingSystems 2.0.0-master/package.mo): time 0.7412/0.7412, allocations: 141.8 MB / 149.1 MB, free: 1.5 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 181.3 kB / 182 MB, free: 0.8984 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 221.4 MB / 436 MB, free: 5.633 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009057/0.0009056, allocations: 104.5 kB / 0.507 GB, free: 2.285 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001856/0.001856, allocations: 278.4 kB / 0.5884 GB, free: 47.36 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3674/0.3693, allocations: 89.63 MB / 0.676 GB, free: 59.74 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1655/0.5349, allocations: 82.78 MB / 0.7568 GB, free: 0.7188 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.587/4.122, allocations: 1.831 GB / 2.588 GB, free: 138 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/4.122, allocations: 96.89 kB / 2.588 GB, free: 137.9 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 6.177/10.3, allocations: 1.815 GB / 4.404 GB, free: 167 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/10.3, allocations: 9.25 kB / 4.404 GB, free: 166.9 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008221/10.3, allocations: 193.2 kB / 4.404 GB, free: 166.8 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002257/10.3, allocations: 1.111 MB / 4.405 GB, free: 165.6 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.798e-05/10.3, allocations: 16 kB / 4.405 GB, free: 165.6 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.853e-05/10.3, allocations: 38.75 kB / 4.405 GB, free: 165.6 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006741/10.3, allocations: 493.7 kB / 4.405 GB, free: 165.1 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007681/10.3, allocations: 0.6843 MB / 4.406 GB, free: 164.4 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/10.3, allocations: 0 / 4.406 GB, free: 164.4 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.405e-05/10.3, allocations: 4 kB / 4.406 GB, free: 164.4 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/10.3, allocations: 15.19 kB / 4.406 GB, free: 164.3 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003548/10.31, allocations: 4.684 MB / 4.411 GB, free: 159.4 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004883/10.31, allocations: 445.8 kB / 4.411 GB, free: 158.9 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000258/10.31, allocations: 249.5 kB / 4.411 GB, free: 158.7 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002749/10.31, allocations: 190.2 kB / 4.411 GB, free: 158.4 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003038/10.31, allocations: 269.1 kB / 4.412 GB, free: 158.2 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=31): time 2.084e-06/10.31, allocations: 0 / 4.412 GB, free: 158.2 MB / 0.6982 GB Notification: Performance of matching and sorting (n=31): time 0.001761/10.31, allocations: 0.7645 MB / 4.412 GB, free: 157.4 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/10.31, allocations: 85.09 kB / 4.413 GB, free: 157.3 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009084/10.31, allocations: 0.8717 MB / 4.413 GB, free: 156.4 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 4.516e-05/10.31, allocations: 29.7 kB / 4.413 GB, free: 156.4 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002052/10.31, allocations: 335.5 kB / 4.414 GB, free: 156.1 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 6.295e-05/10.31, allocations: 102.5 kB / 4.414 GB, free: 156 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.998e-05/10.31, allocations: 0 / 4.414 GB, free: 156 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 6.024e-05/10.31, allocations: 330 kB / 4.414 GB, free: 155.6 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002105/10.31, allocations: 192.7 kB / 4.414 GB, free: 155.4 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000351/10.31, allocations: 0.5067 MB / 4.415 GB, free: 154.8 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002765/10.31, allocations: 269.9 kB / 4.415 GB, free: 154.5 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/10.31, allocations: 4 kB / 4.415 GB, free: 154.5 MB / 0.6982 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001486/10.31, allocations: 0.9078 MB / 4.416 GB, free: 153.6 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003829/10.31, allocations: 2.1 MB / 4.418 GB, free: 151.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/10.31, allocations: 8 kB / 4.418 GB, free: 151.4 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004219/10.32, allocations: 232.8 kB / 4.418 GB, free: 151.2 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/10.32, allocations: 63.91 kB / 4.418 GB, free: 151.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009066/10.32, allocations: 1.141 MB / 4.419 GB, free: 149.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008422/10.32, allocations: 83.75 kB / 4.42 GB, free: 149.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.596e-05/10.32, allocations: 28.5 kB / 4.42 GB, free: 149.8 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/10.32, allocations: 7.938 kB / 4.42 GB, free: 149.8 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009837/10.32, allocations: 0.5879 MB / 4.42 GB, free: 149.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/10.32, allocations: 8.031 kB / 4.42 GB, free: 149.2 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004628/10.32, allocations: 204.6 kB / 4.42 GB, free: 149 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002016/10.32, allocations: 71.84 kB / 4.42 GB, free: 148.9 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002838/10.32, allocations: 2.754 MB / 4.423 GB, free: 146.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008354/10.32, allocations: 79.69 kB / 4.423 GB, free: 146 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.453e-05/10.32, allocations: 27.97 kB / 4.423 GB, free: 146 MB / 0.6982 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 (34): * Single equations (assignments): 32 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 19} Notification: Performance of prepare postOptimizeDAE: time 0.0001694/10.32, allocations: 124.8 kB / 4.423 GB, free: 145.8 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/10.32, allocations: 98.78 kB / 4.423 GB, free: 145.7 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00103/10.32, allocations: 0.6546 MB / 4.424 GB, free: 145.1 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.401e-06/10.32, allocations: 4 kB / 4.424 GB, free: 145.1 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/10.32, allocations: 4 kB / 4.424 GB, free: 145.1 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/10.32, allocations: 3.984 kB / 4.424 GB, free: 145.1 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001924/10.33, allocations: 1.483 MB / 4.426 GB, free: 143.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/10.33, allocations: 0 / 4.426 GB, free: 143.5 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/10.33, allocations: 32.14 kB / 4.426 GB, free: 143.5 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003025/10.33, allocations: 185 kB / 4.426 GB, free: 143.3 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.312e-05/10.33, allocations: 7.984 kB / 4.426 GB, free: 143.3 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007023/10.33, allocations: 1.022 MB / 4.427 GB, free: 142.3 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/10.33, allocations: 0 / 4.427 GB, free: 142.3 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008537/10.33, allocations: 0.867 MB / 4.428 GB, free: 141.3 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00105/10.33, allocations: 1.277 MB / 4.429 GB, free: 140 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003666/10.33, allocations: 215.8 kB / 4.429 GB, free: 139.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001217/10.33, allocations: 7.984 kB / 4.429 GB, free: 139.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005377/10.33, allocations: 47.86 kB / 4.429 GB, free: 139.7 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.291e-05/10.33, allocations: 27.97 kB / 4.429 GB, free: 139.7 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.593e-05/10.33, allocations: 15.98 kB / 4.429 GB, free: 139.7 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0007074/10.33, allocations: 0.6886 MB / 4.43 GB, free: 139 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.003163/10.33, allocations: 0.6712 MB / 4.43 GB, free: 138.3 MB / 0.6982 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 (12): * Single equations (assignments): 9 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.001489/10.34, allocations: 1.109 MB / 4.432 GB, free: 137.3 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001628/10.34, allocations: 0.9045 MB / 4.432 GB, free: 136.4 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/10.34, allocations: 4 kB / 4.432 GB, free: 136.4 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0003591/10.34, allocations: 210.2 kB / 4.433 GB, free: 136.2 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001996/10.34, allocations: 379.4 kB / 4.433 GB, free: 135.8 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002495/10.34, allocations: 1.397 MB / 4.434 GB, free: 134.4 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006822/10.34, allocations: 1.259 MB / 4.436 GB, free: 133.1 MB / 0.6982 GB Notification: Performance of SimCode: time 1.443e-06/10.34, allocations: 0 / 4.436 GB, free: 133.1 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised.fmu > BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe 2>&1)