Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_8_0_0_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 8.0.0/package.mo): time 2.125/2.125, allocations: 284.8 MB / 292.1 MB, free: 10.82 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001585/0.001584, allocations: 177.3 kB / 360.3 MB, free: 7.582 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.634/1.634, allocations: 205.1 MB / 0.6187 GB, free: 13.26 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001211/0.00121, allocations: 99.11 kB / 0.7317 GB, free: 45.16 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2392/0.2404, allocations: 121.4 MB / 0.8502 GB, free: 3.969 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5456/0.7861, allocations: 115.2 MB / 0.9628 GB, free: 78.57 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2092/0.9954, allocations: 140.5 MB / 1.1 GB, free: 400 kB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003393/0.9958, allocations: 89.3 kB / 1.1 GB, free: 312 kB / 0.698 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.02018/1.016, allocations: 4.9 MB / 1.105 GB, free: 11.4 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/1.016, allocations: 8 kB / 1.105 GB, free: 11.39 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/1.016, allocations: 31.62 kB / 1.105 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004897/1.017, allocations: 264.3 kB / 1.105 GB, free: 11.07 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.438e-05/1.017, allocations: 15.91 kB / 1.105 GB, free: 11.05 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.232e-05/1.017, allocations: 27.98 kB / 1.105 GB, free: 11.02 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000669/1.018, allocations: 193.3 kB / 1.105 GB, free: 10.84 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007305/1.018, allocations: 280.7 kB / 1.106 GB, free: 10.55 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/1.018, allocations: 4.594 kB / 1.106 GB, free: 10.55 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.87e-05/1.018, allocations: 0 / 1.106 GB, free: 10.55 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.736e-05/1.018, allocations: 8 kB / 1.106 GB, free: 10.54 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002034/1.02, allocations: 0.8754 MB / 1.106 GB, free: 9.629 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006739/1.021, allocations: 211.1 kB / 1.107 GB, free: 9.414 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002677/1.021, allocations: 102.4 kB / 1.107 GB, free: 9.312 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/1.021, allocations: 9.031 kB / 1.107 GB, free: 9.305 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003474/1.022, allocations: 144.8 kB / 1.107 GB, free: 9.152 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=32): time 2.635e-06/1.022, allocations: 0 / 1.107 GB, free: 9.152 MB / 0.7136 GB Notification: Performance of matching and sorting (n=32): time 0.0005733/1.022, allocations: 188.5 kB / 1.107 GB, free: 8.965 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/1.022, allocations: 59.41 kB / 1.107 GB, free: 8.895 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001997/1.023, allocations: 164.3 kB / 1.107 GB, free: 8.723 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 6.33e-05/1.023, allocations: 37.7 kB / 1.107 GB, free: 8.68 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/1.023, allocations: 144.5 kB / 1.107 GB, free: 8.535 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/1.023, allocations: 74.97 kB / 1.108 GB, free: 8.461 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.6e-05/1.023, allocations: 4 kB / 1.108 GB, free: 8.457 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001287/1.023, allocations: 330.8 kB / 1.108 GB, free: 8.125 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002659/1.023, allocations: 84.86 kB / 1.108 GB, free: 8.043 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003167/1.024, allocations: 132.6 kB / 1.108 GB, free: 7.895 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002685/1.024, allocations: 80.95 kB / 1.108 GB, free: 7.816 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/1.024, allocations: 0 / 1.108 GB, free: 7.816 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007097/1.025, allocations: 276.7 kB / 1.108 GB, free: 7.539 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/1.025, allocations: 4 kB / 1.108 GB, free: 7.535 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/1.025, allocations: 0 / 1.108 GB, free: 7.535 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/1.025, allocations: 7.906 kB / 1.108 GB, free: 7.527 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003758/1.025, allocations: 52.06 kB / 1.108 GB, free: 7.477 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/1.025, allocations: 4 kB / 1.108 GB, free: 7.473 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004628/1.026, allocations: 47.75 kB / 1.109 GB, free: 7.426 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.173e-05/1.026, allocations: 19.98 kB / 1.109 GB, free: 7.406 MB / 0.7136 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 0.0002009/1.026, allocations: 126.4 kB / 1.109 GB, free: 7.277 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.952e-05/1.026, allocations: 24.38 kB / 1.109 GB, free: 7.254 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006696/1.027, allocations: 225.9 kB / 1.109 GB, free: 7.031 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.118e-06/1.027, allocations: 4 kB / 1.109 GB, free: 7.027 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/1.027, allocations: 0 / 1.109 GB, free: 7.027 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.465e-06/1.027, allocations: 0.6094 kB / 1.109 GB, free: 7.027 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001387/1.028, allocations: 0.6361 MB / 1.11 GB, free: 6.348 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/1.028, allocations: 1.688 kB / 1.11 GB, free: 6.348 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002688/1.028, allocations: 39.67 kB / 1.11 GB, free: 6.312 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.256e-06/1.029, allocations: 3.984 kB / 1.11 GB, free: 6.309 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/1.029, allocations: 0 / 1.11 GB, free: 6.309 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/1.029, allocations: 4 kB / 1.11 GB, free: 6.305 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/1.029, allocations: 7.906 kB / 1.11 GB, free: 6.297 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005648/1.029, allocations: 295.2 kB / 1.11 GB, free: 5.992 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006874/1.03, allocations: 0.6796 MB / 1.111 GB, free: 5.293 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.382e-05/1.03, allocations: 92.83 kB / 1.111 GB, free: 5.184 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.712e-05/1.03, allocations: 4 kB / 1.111 GB, free: 5.18 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004482/1.03, allocations: 43.95 kB / 1.111 GB, free: 5.137 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/1.031, allocations: 40.88 kB / 1.111 GB, free: 5.098 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.388e-05/1.031, allocations: 9.812 kB / 1.111 GB, free: 5.09 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0001117/1.031, allocations: 112.9 kB / 1.111 GB, free: 4.98 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001275/1.032, allocations: 51.84 kB / 1.111 GB, free: 4.93 MB / 0.7136 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.0002172/1.032, allocations: 121.8 kB / 1.111 GB, free: 4.801 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0006492/1.033, allocations: 257.5 kB / 1.111 GB, free: 4.543 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/1.033, allocations: 0 / 1.111 GB, free: 4.543 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.000303/1.033, allocations: 115.9 kB / 1.111 GB, free: 4.43 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003498/1.034, allocations: 15.98 kB / 1.111 GB, free: 4.414 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/1.035, allocations: 322.4 kB / 1.112 GB, free: 4.078 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005811/1.035, allocations: 0.7914 MB / 1.112 GB, free: 3.262 MB / 0.7136 GB Notification: Performance of SimCode: time 7.92e-07/1.035, allocations: 0 / 1.112 GB, free: 3.262 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)