Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") [: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 1.718/1.718, allocations: 390.4 MB / 397.7 MB, free: 11.3 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.0009464/0.0009464, allocations: 186.9 kB / 490.8 MB, free: 1.961 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.059/1.059, allocations: 221.4 MB / 0.7863 GB, free: 13.77 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.0008009/0.0008009, allocations: 104.6 kB / 0.9264 GB, free: 14.3 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.029e-06/5.059e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1641/0.1641, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4485/0.6127, allocations: 152.6 MB / 1.361 GB, free: 17.33 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.6129, allocations: 88.42 kB / 1.361 GB, free: 17.33 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.01002/0.6229, allocations: 4.382 MB / 1.365 GB, free: 17 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.322e-05/0.623, allocations: 6.125 kB / 1.365 GB, free: 17 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0006082/0.6236, allocations: 0.5447 MB / 1.366 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.831e-05/0.6236, allocations: 8.969 kB / 1.366 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.409e-05/0.6237, allocations: 32.34 kB / 1.366 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002308/0.6239, allocations: 264.7 kB / 1.366 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.624, allocations: 12.22 kB / 1.366 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.086e-05/0.624, allocations: 24.5 kB / 1.366 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003375/0.6243, allocations: 200.8 kB / 1.366 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003738/0.6247, allocations: 274 kB / 1.366 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.6247, allocations: 0 / 1.366 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.411e-05/0.6248, allocations: 1.984 kB / 1.366 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.6248, allocations: 7.281 kB / 1.366 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.6258, allocations: 0.8815 MB / 1.367 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003412/0.6262, allocations: 219 kB / 1.367 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.6263, allocations: 96.98 kB / 1.367 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.6264, allocations: 3.062 kB / 1.367 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001798/0.6265, allocations: 142.1 kB / 1.368 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=32): time 1.502e-06/0.6265, allocations: 3.938 kB / 1.368 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=32): time 0.0003141/0.6269, allocations: 191.8 kB / 1.368 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.965e-05/0.6269, allocations: 65.17 kB / 1.368 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.627, allocations: 165.2 kB / 1.368 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/0.627, allocations: 36.39 kB / 1.368 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.034e-05/0.6271, allocations: 144.5 kB / 1.368 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.712e-05/0.6272, allocations: 74.5 kB / 1.368 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.306e-05/0.6272, allocations: 0 / 1.368 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.142e-05/0.6273, allocations: 334.8 kB / 1.369 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.6274, allocations: 79.69 kB / 1.369 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001449/0.6276, allocations: 140.7 kB / 1.369 GB, free: 31 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.6277, allocations: 71.27 kB / 1.369 GB, free: 31 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.6277, allocations: 1.25 kB / 1.369 GB, free: 31 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003632/0.6281, allocations: 273.2 kB / 1.369 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/0.6281, allocations: 5.344 kB / 1.369 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.6281, allocations: 1.281 kB / 1.369 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.6281, allocations: 3.312 kB / 1.369 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001878/0.6283, allocations: 46.09 kB / 1.369 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.6283, allocations: 8.391 kB / 1.369 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000228/0.6285, allocations: 56.3 kB / 1.369 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.763e-05/0.6286, allocations: 13 kB / 1.369 GB, free: 30.91 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.wseCon.T1.enableFire,$PRE.wseCon.T2.enableFire,wseCon.stateGraphRoot.resume,wseCon.stateGraphRoot.suspend,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wseCHWST.T_start,wseCHWST.T_start,$PRE.wseCHWST.count,wseCHWST.count,$PRE.wseCon.off.localActive,wseCon.off.localActive,$PRE.wseCon.off.newActive,wseCon.off.newActive,$PRE.wseCon.off.oldActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.T1.condition,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 1 * 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.358e-05/0.6287, allocations: 134.1 kB / 1.369 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.677e-05/0.6287, allocations: 16.66 kB / 1.369 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003427/0.629, allocations: 225.1 kB / 1.37 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.6291, allocations: 5.266 kB / 1.37 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.6291, allocations: 4 kB / 1.37 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.6291, allocations: 1.5 kB / 1.37 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000694/0.6298, allocations: 0.6261 MB / 1.37 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.6298, allocations: 1.375 kB / 1.37 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001346/0.6299, allocations: 37.52 kB / 1.37 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.6299, allocations: 1.438 kB / 1.37 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.63, allocations: 7.156 kB / 1.37 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.63, allocations: 5.594 kB / 1.37 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.63, allocations: 0 / 1.37 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002948/0.6303, allocations: 298.9 kB / 1.371 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.698e-05/0.6303, allocations: 98.86 kB / 1.371 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.51e-05/0.6303, allocations: 3.969 kB / 1.371 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.6306, allocations: 40.38 kB / 1.371 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.252e-05/0.6307, allocations: 41.17 kB / 1.371 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.6307, allocations: 15.75 kB / 1.371 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5.963e-05/0.6308, allocations: 112.9 kB / 1.371 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002708/0.6311, allocations: 54.75 kB / 1.371 GB, free: 30.08 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 24 (wseCon.T1.enableFire,wseCon.T2.enableFire,wseCon.on.localActive,wseCon.off.localActive,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.newActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.fire,wseCon.T1.t_start,wseCon.T1.condition,wseCon.on.newActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.fire,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.000123/0.6312, allocations: 128.3 kB / 1.371 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003233/0.6315, allocations: 253.8 kB / 1.371 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.6315, allocations: 0 / 1.371 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000149/0.6317, allocations: 117 kB / 1.371 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001995/0.6319, allocations: 16.81 kB / 1.371 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005586/0.6324, allocations: 320 kB / 1.372 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003129/0.6328, allocations: 0.7857 MB / 1.372 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/0.6328, allocations: 4 kB / 1.372 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of Templates: time 0.00541/0.6382, allocations: 3.015 MB / 1.375 GB, free: 28.89 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches