Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.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.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.659/1.659, allocations: 293 MB / 309 MB, free: 4.797 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.0009582/0.0009582, allocations: 177.4 kB / 378.7 MB, free: 1.043 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.716/1.716, allocations: 205.4 MB / 0.6383 GB, free: 8.133 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.0009272/0.0009274, allocations: 84.92 kB / 0.7527 GB, free: 62.98 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000425/0.000425, allocations: 12 kB / 0.8768 GB, free: 10.44 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2714, allocations: 116.4 MB / 0.9905 GB, free: 5.887 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7537/1.025, allocations: 142.5 MB / 1.13 GB, free: 32.07 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/1.025, allocations: 98.94 kB / 1.13 GB, free: 32 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01118/1.037, allocations: 4.719 MB / 1.134 GB, free: 28.71 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.924e-06/1.037, allocations: 4 kB / 1.134 GB, free: 28.71 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.077e-05/1.037, allocations: 8.75 kB / 1.134 GB, free: 28.7 MB / 0.7292 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.0008888/1.038, allocations: 0.548 MB / 1.135 GB, free: 28.14 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/1.038, allocations: 12.53 kB / 1.135 GB, free: 28.12 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/1.038, allocations: 30.17 kB / 1.135 GB, free: 28.1 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003084/1.038, allocations: 278.4 kB / 1.135 GB, free: 27.81 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.087e-05/1.038, allocations: 25.92 kB / 1.135 GB, free: 27.79 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.959e-05/1.038, allocations: 33.73 kB / 1.135 GB, free: 27.75 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006552/1.039, allocations: 340 kB / 1.136 GB, free: 27.47 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/1.039, allocations: 0.8438 kB / 1.136 GB, free: 27.47 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.217e-05/1.039, allocations: 12.7 kB / 1.136 GB, free: 27.46 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/1.039, allocations: 12 kB / 1.136 GB, free: 27.45 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006219/1.04, allocations: 259.8 kB / 1.136 GB, free: 27.23 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001581/1.041, allocations: 0.95 MB / 1.137 GB, free: 26.4 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005856/1.042, allocations: 271.3 kB / 1.137 GB, free: 26.16 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000241/1.042, allocations: 134.8 kB / 1.137 GB, free: 26.04 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/1.042, allocations: 0 / 1.137 GB, free: 26.04 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003725/1.042, allocations: 181 kB / 1.137 GB, free: 25.89 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=32): time 3.516e-06/1.042, allocations: 1.5 kB / 1.137 GB, free: 25.89 MB / 0.7292 GB Notification: Performance of matching and sorting (n=32): time 0.0007847/1.043, allocations: 374.8 kB / 1.138 GB, free: 25.56 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/1.043, allocations: 60.52 kB / 1.138 GB, free: 25.49 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001895/1.044, allocations: 206.8 kB / 1.138 GB, free: 25.29 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.114e-05/1.044, allocations: 42.95 kB / 1.138 GB, free: 25.24 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 8.736e-05/1.044, allocations: 148.6 kB / 1.138 GB, free: 25.1 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 6.305e-05/1.044, allocations: 81.02 kB / 1.138 GB, free: 25.03 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.555e-05/1.044, allocations: 12 kB / 1.138 GB, free: 25.02 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 7.052e-05/1.044, allocations: 334.8 kB / 1.139 GB, free: 24.69 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002501/1.044, allocations: 113.3 kB / 1.139 GB, free: 24.59 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002729/1.044, allocations: 170.6 kB / 1.139 GB, free: 24.43 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004561/1.045, allocations: 270.7 kB / 1.139 GB, free: 24.16 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/1.045, allocations: 0 / 1.139 GB, free: 24.16 MB / 0.7292 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006835/1.046, allocations: 377.9 kB / 1.139 GB, free: 23.82 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.967e-05/1.046, allocations: 32.69 kB / 1.139 GB, free: 23.78 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/1.046, allocations: 4.625 kB / 1.139 GB, free: 23.78 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/1.046, allocations: 4.562 kB / 1.139 GB, free: 23.77 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001925/1.046, allocations: 48.02 kB / 1.14 GB, free: 23.73 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/1.046, allocations: 4 kB / 1.14 GB, free: 23.73 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002652/1.046, allocations: 45.95 kB / 1.14 GB, free: 23.7 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.109e-05/1.046, allocations: 16.75 kB / 1.14 GB, free: 23.68 MB / 0.7292 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 () * Number of clocked 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.000204/1.046, allocations: 184.7 kB / 1.14 GB, free: 23.5 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.491e-05/1.046, allocations: 24.33 kB / 1.14 GB, free: 23.47 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000625/1.047, allocations: 307.9 kB / 1.14 GB, free: 23.21 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/1.047, allocations: 4 kB / 1.14 GB, free: 23.21 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/1.047, allocations: 0.5625 kB / 1.14 GB, free: 23.21 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/1.047, allocations: 1.828 kB / 1.14 GB, free: 23.21 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/1.048, allocations: 0.7555 MB / 1.141 GB, free: 22.5 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/1.048, allocations: 0 / 1.141 GB, free: 22.5 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000133/1.048, allocations: 30.16 kB / 1.141 GB, free: 22.48 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/1.049, allocations: 4.562 kB / 1.141 GB, free: 22.47 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.153e-05/1.049, allocations: 10.19 kB / 1.141 GB, free: 22.46 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/1.049, allocations: 8.438 kB / 1.141 GB, free: 22.46 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.049, allocations: 4.656 kB / 1.141 GB, free: 22.45 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005132/1.049, allocations: 377.9 kB / 1.141 GB, free: 22.1 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.193e-05/1.049, allocations: 101.5 kB / 1.141 GB, free: 21.98 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.878e-05/1.049, allocations: 13.97 kB / 1.141 GB, free: 21.97 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000218/1.049, allocations: 37.45 kB / 1.141 GB, free: 21.94 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/1.05, allocations: 44.27 kB / 1.141 GB, free: 21.91 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/1.05, allocations: 5.266 kB / 1.141 GB, free: 21.91 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001058/1.05, allocations: 133.9 kB / 1.142 GB, free: 21.79 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.5e-07/1.05, allocations: 5.031 kB / 1.142 GB, free: 21.79 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003545/1.05, allocations: 60.8 kB / 1.142 GB, free: 21.73 MB / 0.7292 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) * Number of clocked states: 0 () * 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.0001975/1.05, allocations: 126.6 kB / 1.142 GB, free: 21.6 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0006428/1.051, allocations: 344.1 kB / 1.142 GB, free: 21.28 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/1.051, allocations: 0 / 1.142 GB, free: 21.28 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002755/1.051, allocations: 139.7 kB / 1.142 GB, free: 21.16 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003798/1.052, allocations: 30.19 kB / 1.142 GB, free: 21.14 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008658/1.052, allocations: 0.5182 MB / 1.143 GB, free: 20.63 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002314/1.053, allocations: 0.7582 MB / 1.143 GB, free: 19.88 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001485/1.053, allocations: 31.73 kB / 1.144 GB, free: 19.86 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.151e-05/1.053, allocations: 33.02 kB / 1.144 GB, free: 19.82 MB / 0.7292 GB Notification: Performance of SimCode: time 2.3e-07/1.053, allocations: 0 / 1.144 GB, free: 19.82 MB / 0.7292 GB Notification: Performance of Templates: time 0.007115/1.06, allocations: 2.684 MB / 1.146 GB, free: 18.34 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)