Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.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.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass,fileNamePrefix="Buildings_9_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChilledWaterBypass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass,fileNamePrefix="Buildings_9_Buildings_Experimental_DHC_Plants_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 9.1.1-maint.9.1.x/package.mo): time 2.225/2.225, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.001288/0.001288, allocations: 184.4 kB / 487 MB, free: 5.391 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.669/1.669, allocations: 221.3 MB / 0.7819 GB, free: 1.441 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.001065/0.001065, allocations: 98.44 kB / 0.9213 GB, free: 2.684 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6835/0.6846, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.9711, allocations: 142.3 MB / 1.205 GB, free: 26.15 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.875/1.846, allocations: 157.1 MB / 1.359 GB, free: 15.72 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/1.846, allocations: 96.81 kB / 1.359 GB, free: 15.68 MB / 0.8073 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Experimental/DHC/Plants/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.0362/1.883, allocations: 13.37 MB / 1.372 GB, free: 6.387 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/1.883, allocations: 8 kB / 1.372 GB, free: 6.379 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003034/1.883, allocations: 63.19 kB / 1.372 GB, free: 6.316 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/1.884, allocations: 447.3 kB / 1.372 GB, free: 5.918 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.044e-05/1.884, allocations: 19.89 kB / 1.372 GB, free: 5.898 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.585e-05/1.884, allocations: 20 kB / 1.372 GB, free: 5.879 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000568/1.885, allocations: 250.9 kB / 1.373 GB, free: 5.723 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006216/1.885, allocations: 326.9 kB / 1.373 GB, free: 5.473 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/1.886, allocations: 0 / 1.373 GB, free: 5.473 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.24e-05/1.886, allocations: 3.984 kB / 1.373 GB, free: 5.469 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.704e-05/1.886, allocations: 11.94 kB / 1.373 GB, free: 5.457 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00199/1.888, allocations: 1.131 MB / 1.374 GB, free: 4.551 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006874/1.888, allocations: 425.6 kB / 1.375 GB, free: 4.219 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002136/1.889, allocations: 143.7 kB / 1.375 GB, free: 4.129 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.657e-05/1.889, allocations: 4 kB / 1.375 GB, free: 4.125 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002574/1.889, allocations: 196.5 kB / 1.375 GB, free: 3.969 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=35): time 3.096e-06/1.889, allocations: 0 / 1.375 GB, free: 3.969 MB / 0.8073 GB Notification: Performance of matching and sorting (n=35): time 0.000609/1.889, allocations: 307.3 kB / 1.375 GB, free: 3.734 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.886e-05/1.89, allocations: 135.8 kB / 1.375 GB, free: 3.574 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005746/1.89, allocations: 425.4 kB / 1.376 GB, free: 3.25 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.679e-05/1.89, allocations: 25.7 kB / 1.376 GB, free: 3.219 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/1.89, allocations: 182.5 kB / 1.376 GB, free: 3.062 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 8.037e-05/1.89, allocations: 90.47 kB / 1.376 GB, free: 2.984 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.487e-05/1.89, allocations: 4 kB / 1.376 GB, free: 2.98 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001198/1.891, allocations: 374.2 kB / 1.376 GB, free: 2.629 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/1.891, allocations: 94.7 kB / 1.376 GB, free: 2.57 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002018/1.891, allocations: 177 kB / 1.377 GB, free: 2.422 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001777/1.891, allocations: 117.2 kB / 1.377 GB, free: 2.348 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/1.891, allocations: 0 / 1.377 GB, free: 2.348 MB / 0.8073 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004544/1.892, allocations: 327.6 kB / 1.377 GB, free: 2.098 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 7.114e-05/1.892, allocations: 270.8 kB / 1.377 GB, free: 1.816 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/1.892, allocations: 0 / 1.377 GB, free: 1.816 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/1.892, allocations: 7.984 kB / 1.377 GB, free: 1.809 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000304/1.892, allocations: 67.59 kB / 1.377 GB, free: 1.746 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/1.892, allocations: 4 kB / 1.377 GB, free: 1.742 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/1.892, allocations: 47.72 kB / 1.377 GB, free: 1.695 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/1.892, allocations: 11.44 kB / 1.377 GB, free: 1.688 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/1.892, allocations: 4 kB / 1.377 GB, free: 1.684 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003572/1.893, allocations: 245.4 kB / 1.378 GB, free: 1.516 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.504e-06/1.893, allocations: 0 / 1.378 GB, free: 1.516 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.352e-06/1.893, allocations: 4 kB / 1.378 GB, free: 1.512 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002431/1.893, allocations: 63.47 kB / 1.378 GB, free: 1.453 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/1.893, allocations: 0 / 1.378 GB, free: 1.453 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002331/1.893, allocations: 35.89 kB / 1.378 GB, free: 1.418 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/1.893, allocations: 11.98 kB / 1.378 GB, free: 1.406 MB / 0.8073 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.0001327/1.893, allocations: 126.9 kB / 1.378 GB, free: 1.281 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.377e-05/1.893, allocations: 47.44 kB / 1.378 GB, free: 1.234 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005513/1.894, allocations: 344.4 kB / 1.378 GB, free: 0.9844 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/1.894, allocations: 4 kB / 1.378 GB, free: 0.9805 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/1.894, allocations: 0 / 1.378 GB, free: 0.9805 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/1.894, allocations: 11.98 kB / 1.378 GB, free: 0.9688 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001188/1.895, allocations: 0.8963 MB / 1.379 GB, free: 268 kB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/1.895, allocations: 0 / 1.379 GB, free: 268 kB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002563/1.896, allocations: 59.34 kB / 1.379 GB, free: 212 kB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.64e-06/1.896, allocations: 4 kB / 1.379 GB, free: 208 kB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.605e-05/1.896, allocations: 4 kB / 1.379 GB, free: 204 kB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/1.896, allocations: 3.984 kB / 1.379 GB, free: 200 kB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/1.896, allocations: 4 kB / 1.379 GB, free: 196 kB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007912/1.896, allocations: 0.578 MB / 1.38 GB, free: 15.75 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001244/1.898, allocations: 1.132 MB / 1.381 GB, free: 14.82 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001706/1.898, allocations: 138 kB / 1.381 GB, free: 14.68 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.872e-05/1.898, allocations: 0 / 1.381 GB, free: 14.68 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002689/1.898, allocations: 31.28 kB / 1.381 GB, free: 14.65 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.894e-05/1.898, allocations: 27.33 kB / 1.381 GB, free: 14.63 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.66e-05/1.898, allocations: 10.62 kB / 1.381 GB, free: 14.62 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0004505/1.899, allocations: 328.6 kB / 1.381 GB, free: 14.39 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.001984/1.901, allocations: 168.9 kB / 1.382 GB, free: 14.23 MB / 0.823 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.0009942/1.902, allocations: 344.5 kB / 1.382 GB, free: 13.98 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0008796/1.903, allocations: 441.6 kB / 1.382 GB, free: 13.68 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/1.903, allocations: 3.938 kB / 1.382 GB, free: 13.68 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002796/1.903, allocations: 148.9 kB / 1.382 GB, free: 13.58 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006741/1.904, allocations: 95.16 kB / 1.383 GB, free: 13.51 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/1.906, allocations: 0.6373 MB / 1.383 GB, free: 12.94 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007798/1.906, allocations: 0.9151 MB / 1.384 GB, free: 12.01 MB / 0.823 GB Notification: Performance of SimCode: time 9.52e-07/1.906, allocations: 0 / 1.384 GB, free: 12.01 MB / 0.823 GB (rm -f Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe ; mkfifo Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe ; head -c 1048576 < Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe >> ../files/Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass_res.mat --tempDir=temp_Buildings_9_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChilledWaterBypass_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChilledWaterBypass.fmu > Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe 2>&1)