Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.681/1.681, allocations: 285.6 MB / 293.1 MB, free: 10.15 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.001084/0.001083, allocations: 184.9 kB / 361.4 MB, free: 6.809 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.792/1.792, allocations: 205.2 MB / 0.62 GB, free: 11.62 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.001026/0.001026, allocations: 86.31 kB / 0.733 GB, free: 44.15 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.207e-05/4.186e-05, allocations: 8 kB / 0.8518 GB, free: 2.613 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8381/0.8381, allocations: 115.3 MB / 0.9645 GB, free: 78.93 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2699/1.108, allocations: 140.7 MB / 1.102 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003004/1.108, allocations: 98 kB / 1.102 GB, free: 14.87 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01535/1.124, allocations: 4.641 MB / 1.107 GB, free: 10.28 MB / 0.7136 GB Notification: Performance of FrontEnd: time 3.947e-06/1.124, allocations: 0 / 1.107 GB, free: 10.28 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.822e-05/1.124, allocations: 4 kB / 1.107 GB, free: 10.28 MB / 0.7136 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.001574/1.126, allocations: 0.5409 MB / 1.107 GB, free: 9.688 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 8.544e-05/1.126, allocations: 8.031 kB / 1.107 GB, free: 9.68 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002608/1.126, allocations: 43.58 kB / 1.107 GB, free: 9.637 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006876/1.127, allocations: 256.5 kB / 1.107 GB, free: 9.348 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.038e-05/1.127, allocations: 20.8 kB / 1.107 GB, free: 9.328 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.811e-05/1.127, allocations: 20 kB / 1.107 GB, free: 9.309 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006885/1.128, allocations: 197.5 kB / 1.108 GB, free: 9.113 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006884/1.128, allocations: 273 kB / 1.108 GB, free: 8.84 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.587e-05/1.128, allocations: 0 / 1.108 GB, free: 8.84 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.48e-05/1.128, allocations: 3.938 kB / 1.108 GB, free: 8.836 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/1.128, allocations: 13.08 kB / 1.108 GB, free: 8.824 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002279/1.131, allocations: 0.8857 MB / 1.109 GB, free: 7.898 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005761/1.131, allocations: 216.4 kB / 1.109 GB, free: 7.68 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001909/1.131, allocations: 97.3 kB / 1.109 GB, free: 7.582 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 4.269e-05/1.132, allocations: 8 kB / 1.109 GB, free: 7.574 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003589/1.132, allocations: 152.1 kB / 1.109 GB, free: 7.414 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=32): time 2.995e-06/1.132, allocations: 0 / 1.109 GB, free: 7.414 MB / 0.7136 GB Notification: Performance of matching and sorting (n=32): time 0.0005483/1.132, allocations: 213.8 kB / 1.109 GB, free: 7.199 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.761e-05/1.133, allocations: 59.41 kB / 1.109 GB, free: 7.129 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002383/1.133, allocations: 164.4 kB / 1.11 GB, free: 6.957 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 5.752e-05/1.133, allocations: 33.7 kB / 1.11 GB, free: 6.918 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/1.133, allocations: 151.4 kB / 1.11 GB, free: 6.766 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 9.002e-05/1.133, allocations: 79.05 kB / 1.11 GB, free: 6.688 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.744e-05/1.133, allocations: 4 kB / 1.11 GB, free: 6.684 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0002135/1.133, allocations: 334.8 kB / 1.11 GB, free: 6.348 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001842/1.134, allocations: 88.81 kB / 1.11 GB, free: 6.262 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002123/1.134, allocations: 128.6 kB / 1.11 GB, free: 6.117 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001845/1.134, allocations: 83.92 kB / 1.11 GB, free: 6.035 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/1.134, allocations: 0 / 1.11 GB, free: 6.035 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005716/1.135, allocations: 273 kB / 1.111 GB, free: 5.762 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.492e-05/1.135, allocations: 34.48 kB / 1.111 GB, free: 5.723 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/1.135, allocations: 0 / 1.111 GB, free: 5.723 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.81e-05/1.135, allocations: 4 kB / 1.111 GB, free: 5.719 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002565/1.135, allocations: 52.06 kB / 1.111 GB, free: 5.668 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.369e-05/1.135, allocations: 7.984 kB / 1.111 GB, free: 5.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003365/1.135, allocations: 39.75 kB / 1.111 GB, free: 5.621 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.576e-05/1.135, allocations: 17.72 kB / 1.111 GB, free: 5.605 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.0001864/1.136, allocations: 128.9 kB / 1.111 GB, free: 5.469 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003997/1.136, allocations: 213.6 kB / 1.111 GB, free: 5.254 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.673e-05/1.136, allocations: 19.72 kB / 1.111 GB, free: 5.234 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005444/1.137, allocations: 236.6 kB / 1.111 GB, free: 5.004 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/1.137, allocations: 4 kB / 1.111 GB, free: 5 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/1.137, allocations: 3.984 kB / 1.111 GB, free: 4.996 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/1.137, allocations: 6.391 kB / 1.111 GB, free: 4.992 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/1.138, allocations: 0.6394 MB / 1.112 GB, free: 4.309 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/1.138, allocations: 0 / 1.112 GB, free: 4.309 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/1.138, allocations: 31.92 kB / 1.112 GB, free: 4.277 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/1.138, allocations: 0 / 1.112 GB, free: 4.277 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/1.138, allocations: 7.938 kB / 1.112 GB, free: 4.27 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/1.138, allocations: 10.25 kB / 1.112 GB, free: 4.262 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.138, allocations: 0 / 1.112 GB, free: 4.262 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004868/1.139, allocations: 327.3 kB / 1.112 GB, free: 3.926 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 8.916e-05/1.139, allocations: 92.91 kB / 1.113 GB, free: 3.816 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/1.139, allocations: 0 / 1.113 GB, free: 3.816 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/1.139, allocations: 39.92 kB / 1.113 GB, free: 3.777 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/1.139, allocations: 39.94 kB / 1.113 GB, free: 3.738 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.037e-05/1.139, allocations: 15.98 kB / 1.113 GB, free: 3.723 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0001022/1.139, allocations: 112.9 kB / 1.113 GB, free: 3.613 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.3e-07/1.139, allocations: 0 / 1.113 GB, free: 3.613 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003936/1.14, allocations: 55.84 kB / 1.113 GB, free: 3.559 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.0009187/1.141, allocations: 0.8707 MB / 1.114 GB, free: 2.656 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0004764/1.141, allocations: 283.4 kB / 1.114 GB, free: 2.367 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/1.141, allocations: 3.938 kB / 1.114 GB, free: 2.363 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001898/1.141, allocations: 111.9 kB / 1.114 GB, free: 2.254 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/1.142, allocations: 33.31 kB / 1.114 GB, free: 2.223 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009029/1.143, allocations: 362.2 kB / 1.114 GB, free: 1.84 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004764/1.143, allocations: 0.7645 MB / 1.115 GB, free: 1.051 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0001594/1.143, allocations: 23.95 kB / 1.115 GB, free: 1.031 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/1.143, allocations: 87.39 kB / 1.115 GB, free: 0.9453 MB / 0.7136 GB Notification: Performance of SimCode: time 2.41e-07/1.143, allocations: 4 kB / 1.115 GB, free: 0.9414 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03006/1.174, allocations: 4.488 MB / 1.12 GB, free: 12.57 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002397/1.174, allocations: 180.6 kB / 1.12 GB, free: 12.38 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.939/3.113, allocations: 0 / 1.12 GB, free: 12.38 MB / 0.7292 GB (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)