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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",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 1.781/1.781, allocations: 390.4 MB / 397.7 MB, free: 10.68 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000978/0.000978, allocations: 181.7 kB / 490.8 MB, free: 11.18 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.116/1.116, allocations: 221.4 MB / 0.7863 GB, free: 13.61 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000872/0.000872, allocations: 100.5 kB / 0.9264 GB, free: 4.539 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2386/0.2395, allocations: 149.2 MB / 1.072 GB, free: 15.47 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5251/0.7646, allocations: 143 MB / 1.212 GB, free: 156.1 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1432/0.9078, allocations: 152.6 MB / 1.361 GB, free: 39.05 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/0.9081, allocations: 99.3 kB / 1.361 GB, free: 38.95 MB / 0.8855 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.01089/0.919, allocations: 4.924 MB / 1.366 GB, free: 34.03 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.9191, allocations: 15.94 kB / 1.366 GB, free: 34.01 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.148e-05/0.9191, allocations: 32.47 kB / 1.366 GB, free: 33.98 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002302/0.9194, allocations: 262.7 kB / 1.366 GB, free: 33.68 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.9194, allocations: 12.56 kB / 1.366 GB, free: 33.67 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.861e-05/0.9194, allocations: 16 kB / 1.366 GB, free: 33.66 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000334/0.9198, allocations: 216 kB / 1.366 GB, free: 33.45 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003665/0.9202, allocations: 273.5 kB / 1.366 GB, free: 33.17 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.9202, allocations: 0 / 1.366 GB, free: 33.17 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.499e-05/0.9202, allocations: 4 kB / 1.366 GB, free: 33.17 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.383e-06/0.9202, allocations: 11.09 kB / 1.366 GB, free: 33.16 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001045/0.9213, allocations: 0.8749 MB / 1.367 GB, free: 32.25 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000341/0.9216, allocations: 216.4 kB / 1.367 GB, free: 32.04 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.9218, allocations: 100.3 kB / 1.368 GB, free: 31.94 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.9218, allocations: 3.984 kB / 1.368 GB, free: 31.93 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000172/0.922, allocations: 136.6 kB / 1.368 GB, free: 31.79 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=32): time 1.543e-06/0.922, allocations: 1.5 kB / 1.368 GB, free: 31.79 MB / 0.8855 GB Notification: Performance of matching and sorting (n=32): time 0.0003039/0.9223, allocations: 197.3 kB / 1.368 GB, free: 31.59 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.01e-05/0.9223, allocations: 63.38 kB / 1.368 GB, free: 31.52 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.533e-05/0.9224, allocations: 160.9 kB / 1.368 GB, free: 31.35 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/0.9225, allocations: 41.62 kB / 1.368 GB, free: 31.3 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.135e-05/0.9225, allocations: 144.5 kB / 1.368 GB, free: 31.15 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.445e-05/0.9226, allocations: 75.53 kB / 1.368 GB, free: 31.08 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.38e-05/0.9226, allocations: 0 / 1.368 GB, free: 31.08 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 4.716e-05/0.9226, allocations: 336 kB / 1.369 GB, free: 30.74 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.9228, allocations: 80.88 kB / 1.369 GB, free: 30.66 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.9229, allocations: 138.5 kB / 1.369 GB, free: 30.51 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001163/0.923, allocations: 79.36 kB / 1.369 GB, free: 30.43 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.923, allocations: 0.5625 kB / 1.369 GB, free: 30.43 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003434/0.9234, allocations: 270.2 kB / 1.369 GB, free: 30.16 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 8.596e-06/0.9234, allocations: 5.062 kB / 1.369 GB, free: 30.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.9234, allocations: 0 / 1.369 GB, free: 30.16 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.9234, allocations: 4 kB / 1.369 GB, free: 30.16 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001976/0.9236, allocations: 51.88 kB / 1.369 GB, free: 30.11 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.9237, allocations: 11.84 kB / 1.369 GB, free: 30.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002365/0.9239, allocations: 44.88 kB / 1.369 GB, free: 30.06 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.9239, allocations: 12 kB / 1.369 GB, free: 30.05 MB / 0.8855 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 7.594e-05/0.924, allocations: 133.3 kB / 1.369 GB, free: 29.91 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.522e-05/0.924, allocations: 16.41 kB / 1.369 GB, free: 29.9 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003432/0.9244, allocations: 230.5 kB / 1.37 GB, free: 29.68 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.9244, allocations: 4 kB / 1.37 GB, free: 29.67 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.9244, allocations: 0.5625 kB / 1.37 GB, free: 29.67 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.9244, allocations: 0 / 1.37 GB, free: 29.67 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006585/0.9251, allocations: 0.6286 MB / 1.37 GB, free: 29 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.9251, allocations: 4.531 kB / 1.37 GB, free: 29 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001462/0.9253, allocations: 29.23 kB / 1.37 GB, free: 28.97 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.9253, allocations: 4.5 kB / 1.37 GB, free: 28.97 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.9253, allocations: 14.77 kB / 1.37 GB, free: 28.96 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.9253, allocations: 4 kB / 1.37 GB, free: 28.95 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.9253, allocations: 0 / 1.37 GB, free: 28.95 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002764/0.9256, allocations: 304.9 kB / 1.371 GB, free: 28.64 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003089/0.9259, allocations: 0.6735 MB / 1.371 GB, free: 27.95 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 2.689e-05/0.9259, allocations: 96.83 kB / 1.371 GB, free: 27.84 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.51e-05/0.926, allocations: 0.7812 kB / 1.371 GB, free: 27.84 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002357/0.9262, allocations: 35.94 kB / 1.371 GB, free: 27.8 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.021e-05/0.9263, allocations: 45.36 kB / 1.372 GB, free: 27.76 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.967e-05/0.9263, allocations: 12 kB / 1.372 GB, free: 27.75 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.522e-05/0.9264, allocations: 112.9 kB / 1.372 GB, free: 27.64 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0008009/0.9272, allocations: 56.72 kB / 1.372 GB, free: 27.59 MB / 0.8855 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.0001364/0.9273, allocations: 122.7 kB / 1.372 GB, free: 27.46 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003175/0.9277, allocations: 254.2 kB / 1.372 GB, free: 27.21 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.9277, allocations: 0.6562 kB / 1.372 GB, free: 27.21 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001405/0.9278, allocations: 115.9 kB / 1.372 GB, free: 27.09 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002112/0.928, allocations: 22.75 kB / 1.372 GB, free: 27.08 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005611/0.9286, allocations: 310.7 kB / 1.372 GB, free: 26.75 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002333/0.9289, allocations: 0.795 MB / 1.373 GB, free: 25.93 MB / 0.8855 GB Notification: Performance of SimCode: time 2.71e-07/0.9289, allocations: 0 / 1.373 GB, free: 25.93 MB / 0.8855 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)