Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.81/1.81, allocations: 387.2 MB / 394.5 MB, free: 13.61 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.0009892/0.0009892, allocations: 181.2 kB / 487 MB, free: 5.359 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.149/1.149, allocations: 221.3 MB / 0.7819 GB, free: 1.402 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.000928/0.0009281, allocations: 104.7 kB / 0.9213 GB, free: 2.648 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4596/0.4606, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.6544, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5067/1.161, allocations: 151.8 MB / 1.354 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002042/1.161, allocations: 92.09 kB / 1.354 GB, free: 15.77 MB / 0.8073 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.01259/1.174, allocations: 4.93 MB / 1.358 GB, free: 15 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/1.174, allocations: 9.125 kB / 1.358 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/1.174, allocations: 32.62 kB / 1.359 GB, free: 14.99 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/1.174, allocations: 268.6 kB / 1.359 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.134e-05/1.175, allocations: 14.36 kB / 1.359 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.037e-05/1.175, allocations: 23.73 kB / 1.359 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004197/1.175, allocations: 199.3 kB / 1.359 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004702/1.175, allocations: 269.4 kB / 1.359 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/1.175, allocations: 4.75 kB / 1.359 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.734e-05/1.176, allocations: 2.094 kB / 1.359 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/1.176, allocations: 7.375 kB / 1.359 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/1.177, allocations: 0.8864 MB / 1.36 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004434/1.177, allocations: 213.4 kB / 1.36 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001895/1.178, allocations: 98.16 kB / 1.36 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/1.178, allocations: 3.219 kB / 1.36 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002322/1.178, allocations: 145.2 kB / 1.361 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=32): time 1.903e-06/1.178, allocations: 0.5312 kB / 1.361 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of matching and sorting (n=32): time 0.0003741/1.178, allocations: 191.8 kB / 1.361 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.953e-05/1.178, allocations: 60.95 kB / 1.361 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001141/1.178, allocations: 165.9 kB / 1.361 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.403e-05/1.178, allocations: 34.19 kB / 1.361 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 6.052e-05/1.178, allocations: 148.9 kB / 1.361 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.155e-05/1.179, allocations: 74.81 kB / 1.361 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.466e-05/1.179, allocations: 0 / 1.361 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.008e-05/1.179, allocations: 334.3 kB / 1.362 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/1.179, allocations: 87.83 kB / 1.362 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/1.179, allocations: 137.2 kB / 1.362 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001301/1.179, allocations: 75.23 kB / 1.362 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/1.179, allocations: 0 / 1.362 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003646/1.179, allocations: 270.7 kB / 1.362 GB, free: 13 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/1.179, allocations: 8.656 kB / 1.362 GB, free: 12.99 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/1.179, allocations: 0 / 1.362 GB, free: 12.99 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/1.179, allocations: 7.906 kB / 1.362 GB, free: 12.98 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001983/1.18, allocations: 44.09 kB / 1.362 GB, free: 12.95 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.291e-06/1.18, allocations: 0.5156 kB / 1.362 GB, free: 12.95 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002542/1.18, allocations: 56.89 kB / 1.362 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.114e-05/1.18, allocations: 9.359 kB / 1.362 GB, free: 12.9 MB / 0.8073 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.951e-05/1.18, allocations: 128.1 kB / 1.362 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.158e-05/1.18, allocations: 28.27 kB / 1.362 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003615/1.18, allocations: 226.3 kB / 1.363 GB, free: 12.6 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/1.18, allocations: 4 kB / 1.363 GB, free: 12.6 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/1.18, allocations: 4 kB / 1.363 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/1.18, allocations: 2.062 kB / 1.363 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007483/1.181, allocations: 0.631 MB / 1.363 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/1.181, allocations: 0.7969 kB / 1.363 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001421/1.181, allocations: 37.19 kB / 1.363 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/1.181, allocations: 4.797 kB / 1.363 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/1.181, allocations: 1.172 kB / 1.363 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/1.181, allocations: 4 kB / 1.363 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/1.181, allocations: 3.906 kB / 1.363 GB, free: 12.09 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003037/1.182, allocations: 303.5 kB / 1.364 GB, free: 11.85 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003089/1.182, allocations: 0.6758 MB / 1.364 GB, free: 11.21 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.333e-05/1.182, allocations: 100.9 kB / 1.364 GB, free: 11.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.85e-05/1.182, allocations: 1.266 kB / 1.364 GB, free: 11.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/1.182, allocations: 41.22 kB / 1.364 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/1.183, allocations: 41.89 kB / 1.364 GB, free: 11.05 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/1.183, allocations: 5.172 kB / 1.364 GB, free: 11.05 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5.051e-05/1.183, allocations: 117.5 kB / 1.364 GB, free: 10.95 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.000894/1.184, allocations: 53.16 kB / 1.365 GB, free: 10.9 MB / 0.8073 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.0001303/1.184, allocations: 119.6 kB / 1.365 GB, free: 10.78 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003199/1.184, allocations: 252.3 kB / 1.365 GB, free: 10.6 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/1.184, allocations: 0 / 1.365 GB, free: 10.6 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.000148/1.184, allocations: 112.1 kB / 1.365 GB, free: 10.53 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002272/1.184, allocations: 23.05 kB / 1.365 GB, free: 10.51 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006228/1.185, allocations: 317.5 kB / 1.365 GB, free: 10.25 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003555/1.185, allocations: 0.7923 MB / 1.366 GB, free: 25.48 MB / 0.823 GB Notification: Performance of SimCode: time 2.81e-07/1.185, allocations: 0 / 1.366 GB, free: 25.48 MB / 0.823 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)