Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onOne.y|onTwo.y|chiBypCon.bypValCon.u_s|chiBypCon.bypValCon.u_m|chiBypCon.y",fileNamePrefix="Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass") translateModel(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onOne.y|onTwo.y|chiBypCon.bypValCon.u_s|chiBypCon.bypValCon.u_m|chiBypCon.y",fileNamePrefix="Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass") [: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 10.0.0-master/package.mo): time 2.057/2.057, allocations: 390.4 MB / 397.7 MB, free: 11.2 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.00146/0.001461, allocations: 185.2 kB / 490.8 MB, free: 1.914 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.249/1.249, allocations: 221.3 MB / 0.7863 GB, free: 13.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000906/0.000906, allocations: 95.17 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.752e-06/6.772e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2345, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6052/0.8398, allocations: 157.9 MB / 1.366 GB, free: 16.88 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/0.8401, allocations: 103.4 kB / 1.366 GB, free: 16.88 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.03411/0.8742, allocations: 12.58 MB / 1.378 GB, free: 15.91 MB / 0.823 GB Notification: Performance of Transformations before backend: time 4.697e-05/0.8743, allocations: 10.03 kB / 1.378 GB, free: 15.91 MB / 0.823 GB 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.001289/0.8756, allocations: 0.774 MB / 1.379 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.8757, allocations: 9.906 kB / 1.379 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002024/0.8759, allocations: 60.34 kB / 1.379 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000799/0.8767, allocations: 447.5 kB / 1.379 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.754e-05/0.8767, allocations: 18.69 kB / 1.379 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.574e-05/0.8768, allocations: 23.75 kB / 1.379 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004534/0.8772, allocations: 240.7 kB / 1.38 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005002/0.8778, allocations: 332.6 kB / 1.38 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.8778, allocations: 0 / 1.38 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.09e-05/0.8778, allocations: 1 kB / 1.38 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.8778, allocations: 7.875 kB / 1.38 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001547/0.8794, allocations: 1.126 MB / 1.381 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007479/0.8801, allocations: 419.7 kB / 1.382 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002225/0.8804, allocations: 150.5 kB / 1.382 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.675e-05/0.8804, allocations: 6.516 kB / 1.382 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002607/0.8807, allocations: 189.7 kB / 1.382 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=35): time 1.733e-06/0.8807, allocations: 0 / 1.382 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of matching and sorting (n=35): time 0.0005163/0.8812, allocations: 307.9 kB / 1.382 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.8813, allocations: 132.4 kB / 1.382 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000513/0.8818, allocations: 431.3 kB / 1.383 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.939e-05/0.8818, allocations: 30.92 kB / 1.383 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.641e-05/0.8819, allocations: 173.2 kB / 1.383 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.6e-05/0.882, allocations: 99.16 kB / 1.383 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.258e-05/0.882, allocations: 0 / 1.383 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.8821, allocations: 364.5 kB / 1.383 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.8823, allocations: 101.4 kB / 1.383 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001976/0.8825, allocations: 187.4 kB / 1.384 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001711/0.8827, allocations: 105.9 kB / 1.384 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.8827, allocations: 0 / 1.384 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004478/0.8831, allocations: 329.4 kB / 1.384 GB, free: 28.74 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.75e-05/0.8832, allocations: 281 kB / 1.384 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.8832, allocations: 0 / 1.384 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.8833, allocations: 2.562 kB / 1.384 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000302/0.8836, allocations: 72.81 kB / 1.384 GB, free: 28.44 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.8836, allocations: 6.531 kB / 1.384 GB, free: 28.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000239/0.8838, allocations: 43.19 kB / 1.384 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.504e-05/0.8839, allocations: 11.47 kB / 1.384 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.011e-06/0.8839, allocations: 3.781 kB / 1.384 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003574/0.8842, allocations: 241.8 kB / 1.385 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-06/0.8843, allocations: 5.25 kB / 1.385 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.369e-06/0.8843, allocations: 2.594 kB / 1.385 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002468/0.8845, allocations: 63.25 kB / 1.385 GB, free: 28.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.416e-06/0.8845, allocations: 2.531 kB / 1.385 GB, free: 28.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001958/0.8847, allocations: 38.44 kB / 1.385 GB, free: 28.35 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.8848, allocations: 11.58 kB / 1.385 GB, free: 28.34 MB / 0.8386 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.0001057/0.8849, allocations: 124.1 kB / 1.385 GB, free: 28.23 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.519e-05/0.8849, allocations: 48.53 kB / 1.385 GB, free: 28.2 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005093/0.8855, allocations: 336.1 kB / 1.385 GB, free: 28.11 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.295e-05/0.8855, allocations: 5.062 kB / 1.385 GB, free: 28.11 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-06/0.8855, allocations: 4.062 kB / 1.385 GB, free: 28.1 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.8855, allocations: 3.984 kB / 1.385 GB, free: 28.1 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.8866, allocations: 0.9002 MB / 1.386 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.8866, allocations: 4 kB / 1.386 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002497/0.8868, allocations: 50.44 kB / 1.386 GB, free: 27.65 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.8868, allocations: 2.5 kB / 1.386 GB, free: 27.65 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.8869, allocations: 8.922 kB / 1.386 GB, free: 27.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.8869, allocations: 1.312 kB / 1.386 GB, free: 27.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.8869, allocations: 5.25 kB / 1.386 GB, free: 27.64 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006913/0.8876, allocations: 0.5796 MB / 1.387 GB, free: 27.43 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.739e-05/0.8877, allocations: 137.2 kB / 1.387 GB, free: 27.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.268e-05/0.8878, allocations: 5.719 kB / 1.387 GB, free: 27.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002458/0.888, allocations: 30.94 kB / 1.387 GB, free: 27.29 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.161e-05/0.8881, allocations: 20.28 kB / 1.387 GB, free: 27.29 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.456e-05/0.8881, allocations: 10.72 kB / 1.387 GB, free: 27.29 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0004219/0.8886, allocations: 332.1 kB / 1.387 GB, free: 27.17 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005759/0.8891, allocations: 166 kB / 1.387 GB, free: 27.13 MB / 0.8386 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.0007421/0.8899, allocations: 343.9 kB / 1.388 GB, free: 26.95 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000684/0.8906, allocations: 441.3 kB / 1.388 GB, free: 26.9 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.8906, allocations: 0.5938 kB / 1.388 GB, free: 26.9 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002244/0.8908, allocations: 158.6 kB / 1.388 GB, free: 26.88 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00058/0.8914, allocations: 90.56 kB / 1.388 GB, free: 26.86 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.8927, allocations: 0.6298 MB / 1.389 GB, free: 26.6 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000504/0.8933, allocations: 0.9106 MB / 1.39 GB, free: 25.81 MB / 0.8386 GB Notification: Performance of SimCode: time 4e-07/0.8933, allocations: 5.219 kB / 1.39 GB, free: 25.8 MB / 0.8386 GB Notification: Performance of Templates: time 0.01272/0.906, allocations: 7.645 MB / 1.397 GB, free: 22.14 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.makefile (rm -f Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe ; mkfifo Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe ; head -c 1048576 < Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe >> ../files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.sim & ./Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChilledWaterBypass.csv","../files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches