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: "" <> buildModelFMU(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass,fileNamePrefix="Buildings_latest_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_latest_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 10.0.0-master/package.mo): time 2.314/2.314, allocations: 390.4 MB / 397.7 MB, free: 1.949 MB / 307 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 173.3 kB / 490.8 MB, free: 7.535 MB / 403 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.676/1.676, allocations: 221.4 MB / 0.7863 GB, free: 304 kB / 0.5498 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 96.67 kB / 0.9264 GB, free: 0.6719 MB / 0.6904 GB Notification: Performance of FrontEnd - loaded program: time 0.6583/0.6593, allocations: 149.1 MB / 1.072 GB, free: 137.5 MB / 0.7217 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3383/0.9976, allocations: 143 MB / 1.212 GB, free: 10.52 MB / 0.7373 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9531/1.951, allocations: 157.9 MB / 1.366 GB, free: 4.133 MB / 0.8311 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003254/1.951, allocations: 107.9 kB / 1.366 GB, free: 4.027 MB / 0.8311 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.03914/1.99, allocations: 13.36 MB / 1.379 GB, free: 6.613 MB / 0.8467 GB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/1.99, allocations: 8 kB / 1.379 GB, free: 6.605 MB / 0.8467 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002268/1.991, allocations: 59.25 kB / 1.379 GB, free: 6.547 MB / 0.8467 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000944/1.992, allocations: 453.5 kB / 1.38 GB, free: 6.062 MB / 0.8467 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.384e-05/1.992, allocations: 16 kB / 1.38 GB, free: 6.047 MB / 0.8467 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.93e-05/1.992, allocations: 23.91 kB / 1.38 GB, free: 6.023 MB / 0.8467 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000548/1.992, allocations: 241.2 kB / 1.38 GB, free: 5.785 MB / 0.8467 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006843/1.993, allocations: 329.4 kB / 1.38 GB, free: 5.445 MB / 0.8467 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/1.993, allocations: 0 / 1.38 GB, free: 5.445 MB / 0.8467 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.694e-05/1.993, allocations: 7.938 kB / 1.38 GB, free: 5.438 MB / 0.8467 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/1.993, allocations: 12 kB / 1.38 GB, free: 5.426 MB / 0.8467 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00212/1.995, allocations: 1.123 MB / 1.381 GB, free: 4.254 MB / 0.8467 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007893/1.996, allocations: 421 kB / 1.382 GB, free: 3.816 MB / 0.8467 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002424/1.996, allocations: 148.8 kB / 1.382 GB, free: 3.668 MB / 0.8467 GB Notification: Performance of preOpt evalFunc (simulation): time 3.945e-05/1.996, allocations: 7.938 kB / 1.382 GB, free: 3.66 MB / 0.8467 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002995/1.997, allocations: 187.2 kB / 1.382 GB, free: 3.465 MB / 0.8467 GB Notification: Performance of pre-optimization done (n=35): time 2.725e-06/1.997, allocations: 0 / 1.382 GB, free: 3.465 MB / 0.8467 GB Notification: Performance of matching and sorting (n=35): time 0.0006266/1.997, allocations: 308.7 kB / 1.382 GB, free: 3.156 MB / 0.8467 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.882e-05/1.997, allocations: 132.5 kB / 1.382 GB, free: 2.996 MB / 0.8467 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006455/1.998, allocations: 425.1 kB / 1.383 GB, free: 2.578 MB / 0.8467 GB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/1.998, allocations: 33.69 kB / 1.383 GB, free: 2.539 MB / 0.8467 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/1.998, allocations: 172.4 kB / 1.383 GB, free: 2.367 MB / 0.8467 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/1.998, allocations: 106.6 kB / 1.383 GB, free: 2.262 MB / 0.8467 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.562e-05/1.998, allocations: 0 / 1.383 GB, free: 2.262 MB / 0.8467 GB Notification: Performance of setup shared object (initialization): time 0.0001836/1.998, allocations: 366.7 kB / 1.383 GB, free: 1.895 MB / 0.8467 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/1.999, allocations: 100.6 kB / 1.384 GB, free: 1.793 MB / 0.8467 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000241/1.999, allocations: 181.2 kB / 1.384 GB, free: 1.59 MB / 0.8467 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/1.999, allocations: 111.9 kB / 1.384 GB, free: 1.48 MB / 0.8467 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/1.999, allocations: 0 / 1.384 GB, free: 1.48 MB / 0.8467 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007241/2, allocations: 325 kB / 1.384 GB, free: 1.156 MB / 0.8467 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001753/2, allocations: 279.1 kB / 1.384 GB, free: 0.8633 MB / 0.8467 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/2, allocations: 0 / 1.384 GB, free: 0.8633 MB / 0.8467 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.662e-05/2, allocations: 7.984 kB / 1.384 GB, free: 0.8555 MB / 0.8467 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003712/2, allocations: 71.89 kB / 1.384 GB, free: 0.7852 MB / 0.8467 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.815e-05/2.001, allocations: 0 / 1.384 GB, free: 0.7852 MB / 0.8467 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003473/2.001, allocations: 39.83 kB / 1.385 GB, free: 0.7461 MB / 0.8467 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.847e-05/2.001, allocations: 11.98 kB / 1.385 GB, free: 0.7344 MB / 0.8467 GB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/2.001, allocations: 7.906 kB / 1.385 GB, free: 0.7266 MB / 0.8467 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004536/2.001, allocations: 243.7 kB / 1.385 GB, free: 500 kB / 0.8467 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/2.001, allocations: 0 / 1.385 GB, free: 500 kB / 0.8467 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.393e-06/2.001, allocations: 4 kB / 1.385 GB, free: 496 kB / 0.8467 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002705/2.002, allocations: 55.91 kB / 1.385 GB, free: 440 kB / 0.8467 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.393e-06/2.002, allocations: 7.984 kB / 1.385 GB, free: 432 kB / 0.8467 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002739/2.002, allocations: 39.83 kB / 1.385 GB, free: 392 kB / 0.8467 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/2.002, allocations: 12 kB / 1.385 GB, free: 380 kB / 0.8467 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.0001865/2.002, allocations: 131.4 kB / 1.385 GB, free: 240 kB / 0.8467 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.811e-05/2.002, allocations: 47.38 kB / 1.385 GB, free: 192 kB / 0.8467 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006565/2.003, allocations: 329.7 kB / 1.385 GB, free: 15.86 MB / 0.8623 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-06/2.003, allocations: 4 kB / 1.385 GB, free: 15.86 MB / 0.8623 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/2.003, allocations: 4 kB / 1.385 GB, free: 15.85 MB / 0.8623 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.605e-06/2.003, allocations: 0 / 1.385 GB, free: 15.85 MB / 0.8623 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001518/2.005, allocations: 0.9041 MB / 1.386 GB, free: 14.9 MB / 0.8623 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/2.005, allocations: 0 / 1.386 GB, free: 14.9 MB / 0.8623 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002841/2.005, allocations: 63.89 kB / 1.386 GB, free: 14.84 MB / 0.8623 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.893e-06/2.005, allocations: 4 kB / 1.386 GB, free: 14.84 MB / 0.8623 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.068e-05/2.005, allocations: 4 kB / 1.386 GB, free: 14.83 MB / 0.8623 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/2.005, allocations: 3.984 kB / 1.386 GB, free: 14.83 MB / 0.8623 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/2.005, allocations: 0 / 1.386 GB, free: 14.83 MB / 0.8623 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009729/2.006, allocations: 0.5807 MB / 1.387 GB, free: 14.23 MB / 0.8623 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001247/2.007, allocations: 1.128 MB / 1.388 GB, free: 13.08 MB / 0.8623 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001585/2.007, allocations: 140.5 kB / 1.388 GB, free: 12.93 MB / 0.8623 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.883e-05/2.007, allocations: 4 kB / 1.388 GB, free: 12.92 MB / 0.8623 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002714/2.008, allocations: 32.03 kB / 1.388 GB, free: 12.89 MB / 0.8623 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/2.008, allocations: 19.97 kB / 1.388 GB, free: 12.87 MB / 0.8623 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.102e-05/2.008, allocations: 8 kB / 1.388 GB, free: 12.86 MB / 0.8623 GB Notification: Performance of sort global known variables: time 0.0006266/2.009, allocations: 335.2 kB / 1.389 GB, free: 12.54 MB / 0.8623 GB Notification: Performance of remove unused functions: time 0.001973/2.011, allocations: 167.4 kB / 1.389 GB, free: 12.37 MB / 0.8623 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.0008871/2.011, allocations: 349.3 kB / 1.389 GB, free: 12.11 MB / 0.8623 GB Notification: Performance of simCode: created initialization part: time 0.0008266/2.012, allocations: 438.4 kB / 1.389 GB, free: 11.68 MB / 0.8623 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/2.012, allocations: 0 / 1.389 GB, free: 11.68 MB / 0.8623 GB Notification: Performance of simCode: created simulation system equations: time 0.0002757/2.013, allocations: 147.9 kB / 1.39 GB, free: 11.54 MB / 0.8623 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006795/2.013, allocations: 98.42 kB / 1.39 GB, free: 11.45 MB / 0.8623 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001815/2.015, allocations: 0.6333 MB / 1.39 GB, free: 10.78 MB / 0.8623 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008051/2.016, allocations: 0.9052 MB / 1.391 GB, free: 9.848 MB / 0.8623 GB Notification: Performance of SimCode: time 7.71e-07/2.016, allocations: 0 / 1.391 GB, free: 9.848 MB / 0.8623 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass_res.mat --tempDir=temp_Buildings_latest_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChilledWaterBypass_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChilledWaterBypass.fmu > Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe 2>&1)