Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect",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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.039/2.039, allocations: 387.2 MB / 394.5 MB, free: 13.62 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 173.3 kB / 487 MB, free: 5.379 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 221.3 MB / 0.7819 GB, free: 1.383 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009166/0.0009169, allocations: 92.44 kB / 0.9213 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6574/0.6584, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.9504, allocations: 142.3 MB / 1.205 GB, free: 26.12 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8478/1.798, allocations: 156.9 MB / 1.359 GB, free: 16.1 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/1.799, allocations: 92.22 kB / 1.359 GB, free: 16.06 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.03094/1.83, allocations: 13.24 MB / 1.372 GB, free: 6.664 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/1.83, allocations: 11.98 kB / 1.372 GB, free: 6.652 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001821/1.83, allocations: 71.09 kB / 1.372 GB, free: 6.582 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009055/1.831, allocations: 464.2 kB / 1.372 GB, free: 6.137 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.223e-05/1.831, allocations: 3.5 kB / 1.372 GB, free: 6.137 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.081e-05/1.831, allocations: 4 kB / 1.372 GB, free: 6.133 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001056/1.831, allocations: 43.28 kB / 1.372 GB, free: 6.102 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001476/1.831, allocations: 93.31 kB / 1.372 GB, free: 6.008 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/1.831, allocations: 0 / 1.372 GB, free: 6.008 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/1.831, allocations: 7.922 kB / 1.372 GB, free: 6 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/1.831, allocations: 0 / 1.372 GB, free: 6 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008294/1.832, allocations: 0.5041 MB / 1.373 GB, free: 5.547 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003071/1.832, allocations: 102.9 kB / 1.373 GB, free: 5.461 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.535e-05/1.832, allocations: 31.75 kB / 1.373 GB, free: 5.434 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/1.832, allocations: 3.938 kB / 1.373 GB, free: 5.43 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000107/1.833, allocations: 76.77 kB / 1.373 GB, free: 5.355 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.954e-06/1.833, allocations: 0 / 1.373 GB, free: 5.355 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0003864/1.833, allocations: 152.1 kB / 1.373 GB, free: 5.219 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/1.833, allocations: 106.8 kB / 1.373 GB, free: 5.09 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/1.834, allocations: 0.7648 MB / 1.374 GB, free: 4.496 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/1.834, allocations: 25.7 kB / 1.374 GB, free: 4.465 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/1.834, allocations: 159.2 kB / 1.374 GB, free: 4.332 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.069e-05/1.834, allocations: 23.14 kB / 1.374 GB, free: 4.312 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.893e-06/1.834, allocations: 0 / 1.374 GB, free: 4.312 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 9.322e-05/1.834, allocations: 310 kB / 1.374 GB, free: 4.004 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.141e-05/1.835, allocations: 26.55 kB / 1.374 GB, free: 3.988 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.577e-05/1.835, allocations: 82.41 kB / 1.374 GB, free: 3.906 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.511e-05/1.835, allocations: 26.98 kB / 1.375 GB, free: 3.887 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/1.835, allocations: 0 / 1.375 GB, free: 3.887 MB / 0.8073 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002187/1.835, allocations: 158.1 kB / 1.375 GB, free: 3.742 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/1.835, allocations: 11.98 kB / 1.375 GB, free: 3.73 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/1.835, allocations: 0 / 1.375 GB, free: 3.73 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/1.835, allocations: 0 / 1.375 GB, free: 3.73 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.039e-05/1.835, allocations: 12 kB / 1.375 GB, free: 3.719 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/1.835, allocations: 4.375 kB / 1.375 GB, free: 3.715 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001525/1.835, allocations: 15.83 kB / 1.375 GB, free: 3.699 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/1.835, allocations: 11.19 kB / 1.375 GB, free: 3.691 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.sta.combiTimeTable.nextTimeEvent,speSel.stage,sta.combiTimeTable.nextTimeEvent,$PRE.sta.combiTimeTable.nextTimeEventScaled,sta.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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 8.617e-05/1.835, allocations: 105.6 kB / 1.375 GB, free: 3.582 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.466e-05/1.835, allocations: 63.16 kB / 1.375 GB, free: 3.52 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003194/1.836, allocations: 181.5 kB / 1.375 GB, free: 3.367 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/1.836, allocations: 0 / 1.375 GB, free: 3.367 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/1.836, allocations: 4 kB / 1.375 GB, free: 3.363 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/1.836, allocations: 0 / 1.375 GB, free: 3.363 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003193/1.836, allocations: 367.8 kB / 1.375 GB, free: 3.035 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/1.836, allocations: 3.984 kB / 1.375 GB, free: 3.031 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.752e-05/1.836, allocations: 11.98 kB / 1.375 GB, free: 3.02 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/1.836, allocations: 0 / 1.375 GB, free: 3.02 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/1.836, allocations: 6.938 kB / 1.375 GB, free: 3.016 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/1.836, allocations: 0 / 1.375 GB, free: 3.016 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/1.836, allocations: 0 / 1.375 GB, free: 3.016 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001889/1.836, allocations: 189.6 kB / 1.376 GB, free: 2.832 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002398/1.837, allocations: 0.5614 MB / 1.376 GB, free: 2.273 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/1.837, allocations: 147.6 kB / 1.376 GB, free: 2.117 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.782e-05/1.837, allocations: 0 / 1.376 GB, free: 2.117 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/1.837, allocations: 11.98 kB / 1.376 GB, free: 2.105 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.422e-05/1.837, allocations: 11.89 kB / 1.376 GB, free: 2.094 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/1.837, allocations: 8 kB / 1.376 GB, free: 2.086 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.000635/1.838, allocations: 0.6248 MB / 1.377 GB, free: 1.629 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0009867/1.839, allocations: 88.05 kB / 1.377 GB, free: 1.559 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,speSel.stage,sta.combiTimeTable.nextTimeEvent,sta.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (sta.combiTimeTable.nextTimeEvent,sta.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.0009446/1.84, allocations: 488.1 kB / 1.377 GB, free: 1.191 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001806/1.84, allocations: 79.59 kB / 1.378 GB, free: 1.133 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.84, allocations: 0 / 1.378 GB, free: 1.133 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 6.732e-05/1.84, allocations: 42.67 kB / 1.378 GB, free: 1.102 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006232/1.841, allocations: 134.5 kB / 1.378 GB, free: 1 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001504/1.842, allocations: 0.8769 MB / 1.379 GB, free: 232 kB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007994/1.843, allocations: 1.013 MB / 1.38 GB, free: 15.25 MB / 0.823 GB Notification: Performance of SimCode: time 8.32e-07/1.843, allocations: 4 kB / 1.38 GB, free: 15.24 MB / 0.823 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe 2>&1)