Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChilledWaterBypass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChilledWaterBypass,fileNamePrefix="Buildings_8_Buildings_Experimental_DHC_CentralPlants_Cooling_Controls_Validation_ChilledWaterBypass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChilledWaterBypass,fileNamePrefix="Buildings_8_Buildings_Experimental_DHC_CentralPlants_Cooling_Controls_Validation_ChilledWaterBypass",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 8.1.4-maint.8.1.x/package.mo): time 1.387/1.387, allocations: 289.8 MB / 297.1 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009843/0.0009842, allocations: 177.3 kB / 366.3 MB, free: 2.012 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.121/1.121, allocations: 205.2 MB / 0.6256 GB, free: 5.84 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008985/0.0008985, allocations: 95.05 kB / 0.7396 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2047/0.2056, allocations: 122.4 MB / 0.8591 GB, free: 13.27 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4662/0.6718, allocations: 116.3 MB / 0.9727 GB, free: 68.2 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1502/0.822, allocations: 146.3 MB / 1.115 GB, free: 2.297 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002795/0.8224, allocations: 104.6 kB / 1.116 GB, free: 2.195 MB / 0.7136 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Experimental/DHC/CentralPlants/Cooling/Controls/ChilledWaterBypass.mo:78:3-78:77:writable] Warning: connect(y, y) connects the same connector instance! The connect equation will be ignored. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0333/0.8557, allocations: 13.23 MB / 1.129 GB, free: 4.93 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.8557, allocations: 9.312 kB / 1.129 GB, free: 4.922 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001159/0.8559, allocations: 59.25 kB / 1.129 GB, free: 4.863 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006783/0.8565, allocations: 465.4 kB / 1.129 GB, free: 4.367 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.756e-05/0.8566, allocations: 16 kB / 1.129 GB, free: 4.352 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.723e-05/0.8566, allocations: 20 kB / 1.129 GB, free: 4.332 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004476/0.8571, allocations: 245.2 kB / 1.129 GB, free: 4.094 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005195/0.8576, allocations: 337.4 kB / 1.13 GB, free: 3.746 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.8576, allocations: 3.906 kB / 1.13 GB, free: 3.742 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.693e-05/0.8577, allocations: 0 / 1.13 GB, free: 3.742 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.661e-05/0.8577, allocations: 8 kB / 1.13 GB, free: 3.734 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001579/0.8593, allocations: 1.135 MB / 1.131 GB, free: 2.555 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007391/0.86, allocations: 428.8 kB / 1.131 GB, free: 2.109 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002226/0.8603, allocations: 143.3 kB / 1.131 GB, free: 1.969 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.8603, allocations: 7.938 kB / 1.131 GB, free: 1.961 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002845/0.8606, allocations: 191.6 kB / 1.131 GB, free: 1.762 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=35): time 1.773e-06/0.8606, allocations: 0 / 1.131 GB, free: 1.762 MB / 0.7292 GB Notification: Performance of matching and sorting (n=35): time 0.0005411/0.8611, allocations: 312.9 kB / 1.132 GB, free: 1.449 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.665e-05/0.8612, allocations: 140.5 kB / 1.132 GB, free: 1.281 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00047/0.8617, allocations: 429 kB / 1.132 GB, free: 0.8594 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.144e-05/0.8617, allocations: 33.69 kB / 1.132 GB, free: 0.8203 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.8618, allocations: 180.3 kB / 1.133 GB, free: 0.6406 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.349e-05/0.8619, allocations: 102.5 kB / 1.133 GB, free: 0.5391 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.397e-05/0.862, allocations: 0 / 1.133 GB, free: 0.5391 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.8621, allocations: 354.8 kB / 1.133 GB, free: 188 kB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001651/0.8623, allocations: 108.6 kB / 1.133 GB, free: 76 kB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002467/0.8625, allocations: 185.5 kB / 1.133 GB, free: 15.86 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.8627, allocations: 108 kB / 1.133 GB, free: 15.76 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.8627, allocations: 7.906 kB / 1.133 GB, free: 15.75 MB / 0.7448 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004699/0.8632, allocations: 332.9 kB / 1.134 GB, free: 15.42 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 9.43e-05/0.8633, allocations: 266.9 kB / 1.134 GB, free: 15.14 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.8633, allocations: 4 kB / 1.134 GB, free: 15.13 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.8633, allocations: 4.062 kB / 1.134 GB, free: 15.13 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003039/0.8636, allocations: 75.89 kB / 1.134 GB, free: 15.05 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.8636, allocations: 0 / 1.134 GB, free: 15.05 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002323/0.8639, allocations: 45.5 kB / 1.134 GB, free: 15.01 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.358e-05/0.8639, allocations: 8 kB / 1.134 GB, free: 15 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 7.183e-06/0.8639, allocations: 4 kB / 1.134 GB, free: 15 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003901/0.8643, allocations: 251.6 kB / 1.134 GB, free: 14.75 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.8643, allocations: 3.984 kB / 1.134 GB, free: 14.75 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.448e-06/0.8643, allocations: 4 kB / 1.134 GB, free: 14.75 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002544/0.8646, allocations: 63.97 kB / 1.134 GB, free: 14.68 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.8646, allocations: 3.938 kB / 1.134 GB, free: 14.68 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002201/0.8649, allocations: 31.83 kB / 1.134 GB, free: 14.65 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.156e-05/0.8649, allocations: 12 kB / 1.134 GB, free: 14.64 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition2,$PRE.onTwo.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.onOne.combiTimeTable.nextTimeEvent,$whenCondition3,chiBypCon.chiOn[1],chiBypCon.chiOn[2],chiBypCon.bypValCon.trigger,chiBypCon.booToInt[1].y,chiBypCon.booToInt[2].y,chiBypCon.intGreThr.u,onOne.combiTimeTable.nextTimeEvent,$PRE.onOne.combiTimeTable.nextTimeEventScaled,onOne.combiTimeTable.nextTimeEventScaled,onTwo.combiTimeTable.nextTimeEvent,$PRE.onTwo.combiTimeTable.nextTimeEventScaled,onTwo.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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 0.0001118/0.865, allocations: 131.5 kB / 1.135 GB, free: 14.5 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.664e-05/0.8651, allocations: 51.44 kB / 1.135 GB, free: 14.45 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005406/0.8656, allocations: 335.3 kB / 1.135 GB, free: 14.12 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.8656, allocations: 4 kB / 1.135 GB, free: 14.11 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.8656, allocations: 0 / 1.135 GB, free: 14.11 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.8657, allocations: 3.906 kB / 1.135 GB, free: 14.11 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.8668, allocations: 0.9157 MB / 1.136 GB, free: 13.15 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.8668, allocations: 0 / 1.136 GB, free: 13.15 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002509/0.8671, allocations: 61.2 kB / 1.136 GB, free: 13.09 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.8671, allocations: 0 / 1.136 GB, free: 13.09 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.518e-05/0.8671, allocations: 8 kB / 1.136 GB, free: 13.09 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.8671, allocations: 0 / 1.136 GB, free: 13.09 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.8671, allocations: 7.984 kB / 1.136 GB, free: 13.08 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007584/0.8679, allocations: 0.5885 MB / 1.136 GB, free: 12.47 MB / 0.7448 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001071/0.869, allocations: 1.144 MB / 1.138 GB, free: 11.31 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.8691, allocations: 140.5 kB / 1.138 GB, free: 11.15 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.256e-05/0.8692, allocations: 7.906 kB / 1.138 GB, free: 11.14 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002447/0.8694, allocations: 28.09 kB / 1.138 GB, free: 11.12 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.635e-05/0.8695, allocations: 23.97 kB / 1.138 GB, free: 11.09 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.686e-05/0.8695, allocations: 8 kB / 1.138 GB, free: 11.09 MB / 0.7448 GB Notification: Performance of sort global known variables: time 0.0003512/0.8699, allocations: 343.1 kB / 1.138 GB, free: 10.75 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.00161/0.8715, allocations: 171.5 kB / 1.138 GB, free: 10.58 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (chiBypCon.bypValCon.I.y) * Number of discrete variables: 13 (chiBypCon.bypValCon.trigger,$whenCondition3,$whenCondition2,$whenCondition1,chiBypCon.chiOn[1],chiBypCon.chiOn[2],chiBypCon.booToInt[1].y,chiBypCon.booToInt[2].y,chiBypCon.intGreThr.u,onOne.combiTimeTable.nextTimeEvent,onOne.combiTimeTable.nextTimeEventScaled,onTwo.combiTimeTable.nextTimeEvent,onTwo.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 4 (onTwo.combiTimeTable.nextTimeEvent,onOne.combiTimeTable.nextTimeEvent,onTwo.combiTimeTable.nextTimeEventScaled,onOne.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0006846/0.8722, allocations: 346.8 kB / 1.139 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0007372/0.8729, allocations: 447.7 kB / 1.139 GB, free: 9.887 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.873, allocations: 0 / 1.139 GB, free: 9.887 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002303/0.8732, allocations: 160.1 kB / 1.139 GB, free: 9.73 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005686/0.8738, allocations: 103.5 kB / 1.139 GB, free: 9.633 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.8751, allocations: 0.6364 MB / 1.14 GB, free: 8.965 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005782/0.8757, allocations: 0.9208 MB / 1.141 GB, free: 8.016 MB / 0.7448 GB Notification: Performance of SimCode: time 2.4e-07/0.8757, allocations: 0 / 1.141 GB, free: 8.016 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChilledWaterBypass.pipe ; mkfifo Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChilledWaterBypass.pipe ; head -c 1048576 < Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChilledWaterBypass.pipe >> ../files/Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChilledWaterBypass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Experimental_DHC_CentralPlants_Cooling_Controls_Validation_ChilledWaterBypass_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Experimental_DHC_CentralPlants_Cooling_Controls_Validation_ChilledWaterBypass.fmu > Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChilledWaterBypass.pipe 2>&1)