Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 3.69/3.69, allocations: 251.1 MB / 266.7 MB, free: 11.64 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002128/0.002127, allocations: 170 kB / 326.2 MB, free: 2.848 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.898/3.898, allocations: 205.4 MB / 0.5772 GB, free: 21.07 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001505/0.001505, allocations: 95.34 kB / 0.6817 GB, free: 14.03 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007499/0.0007502, allocations: 8.938 kB / 0.7957 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3881/0.3889, allocations: 106.3 MB / 0.8995 GB, free: 65.97 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3596/0.7486, allocations: 135 MB / 1.031 GB, free: 10.79 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0006005/0.7493, allocations: 103.9 kB / 1.031 GB, free: 10.69 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03289/0.7822, allocations: 4.733 MB / 1.036 GB, free: 5.918 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.226e-06/0.7823, allocations: 0 / 1.036 GB, free: 5.918 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.931e-05/0.7824, allocations: 11.94 kB / 1.036 GB, free: 5.906 MB / 0.6823 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.00204/0.7844, allocations: 0.5553 MB / 1.037 GB, free: 5.289 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 7.094e-05/0.7845, allocations: 8.031 kB / 1.037 GB, free: 5.281 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002499/0.7848, allocations: 32.56 kB / 1.037 GB, free: 5.25 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007576/0.7856, allocations: 275.7 kB / 1.037 GB, free: 4.941 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.7857, allocations: 29.03 kB / 1.037 GB, free: 4.914 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.7859, allocations: 32.38 kB / 1.037 GB, free: 4.883 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/0.7876, allocations: 341.1 kB / 1.037 GB, free: 4.535 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.534e-05/0.7878, allocations: 3.984 kB / 1.037 GB, free: 4.531 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.561e-05/0.7879, allocations: 8 kB / 1.037 GB, free: 4.523 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.233e-05/0.7879, allocations: 8 kB / 1.037 GB, free: 4.516 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001649/0.7896, allocations: 262.1 kB / 1.038 GB, free: 4.262 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003654/0.7933, allocations: 0.9708 MB / 1.039 GB, free: 3.234 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001572/0.7949, allocations: 272.2 kB / 1.039 GB, free: 2.961 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007063/0.7957, allocations: 120.8 kB / 1.039 GB, free: 2.84 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 4.885e-05/0.7958, allocations: 11.94 kB / 1.039 GB, free: 2.828 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008864/0.7967, allocations: 175.3 kB / 1.039 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=32): time 5.761e-06/0.7967, allocations: 0 / 1.039 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of matching and sorting (n=32): time 0.002118/0.7988, allocations: 366.6 kB / 1.039 GB, free: 2.281 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.479e-05/0.799, allocations: 63.41 kB / 1.039 GB, free: 2.207 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004983/0.7995, allocations: 207.1 kB / 1.04 GB, free: 1.988 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001366/0.7997, allocations: 41.7 kB / 1.04 GB, free: 1.941 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.7999, allocations: 152.6 kB / 1.04 GB, free: 1.789 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001744/0.8001, allocations: 86.88 kB / 1.04 GB, free: 1.703 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.673e-05/0.8001, allocations: 4 kB / 1.04 GB, free: 1.699 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002486/0.8004, allocations: 350.6 kB / 1.04 GB, free: 1.348 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000732/0.8012, allocations: 112.8 kB / 1.04 GB, free: 1.238 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007469/0.8019, allocations: 165.5 kB / 1.041 GB, free: 1.062 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007062/0.8027, allocations: 133.7 kB / 1.041 GB, free: 0.9258 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.8027, allocations: 0 / 1.041 GB, free: 0.9258 MB / 0.6823 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001827/0.8045, allocations: 378.6 kB / 1.041 GB, free: 0.543 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.91e-05/0.8047, allocations: 43.41 kB / 1.041 GB, free: 0.4961 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.8047, allocations: 0 / 1.041 GB, free: 0.4961 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.006e-05/0.8048, allocations: 4 kB / 1.041 GB, free: 0.4922 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005082/0.8053, allocations: 47.84 kB / 1.041 GB, free: 456 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.8053, allocations: 4 kB / 1.041 GB, free: 452 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000676/0.806, allocations: 51.81 kB / 1.041 GB, free: 400 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.768e-05/0.8061, allocations: 12 kB / 1.041 GB, free: 388 kB / 0.6823 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.0004576/0.8066, allocations: 178 kB / 1.041 GB, free: 200 kB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.083e-05/0.8067, allocations: 15.81 kB / 1.041 GB, free: 184 kB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001631/0.8083, allocations: 311.1 kB / 1.042 GB, free: 15.88 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.75e-05/0.8084, allocations: 7.984 kB / 1.042 GB, free: 15.87 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/0.8084, allocations: 3.984 kB / 1.042 GB, free: 15.86 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.8085, allocations: 0 / 1.042 GB, free: 15.86 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002864/0.8113, allocations: 0.7532 MB / 1.042 GB, free: 15.05 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.8114, allocations: 0 / 1.042 GB, free: 15.05 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000376/0.8118, allocations: 27.98 kB / 1.042 GB, free: 15.03 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.105e-05/0.8119, allocations: 4 kB / 1.042 GB, free: 15.02 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.685e-05/0.8119, allocations: 11.98 kB / 1.042 GB, free: 15.01 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-05/0.812, allocations: 7.875 kB / 1.042 GB, free: 15 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.812, allocations: 0 / 1.042 GB, free: 15 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001489/0.8135, allocations: 387.3 kB / 1.043 GB, free: 14.61 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001499/0.8137, allocations: 96.86 kB / 1.043 GB, free: 14.5 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.264e-05/0.8138, allocations: 8 kB / 1.043 GB, free: 14.49 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006367/0.8144, allocations: 47.83 kB / 1.043 GB, free: 14.44 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002406/0.8147, allocations: 39.94 kB / 1.043 GB, free: 14.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.166e-05/0.8148, allocations: 12 kB / 1.043 GB, free: 14.39 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002455/0.815, allocations: 123.2 kB / 1.043 GB, free: 14.27 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.81e-07/0.8151, allocations: 0 / 1.043 GB, free: 14.27 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0009278/0.816, allocations: 67.89 kB / 1.043 GB, free: 14.2 MB / 0.698 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.0003625/0.8164, allocations: 121.4 kB / 1.043 GB, free: 14.07 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001686/0.8181, allocations: 348.3 kB / 1.044 GB, free: 13.72 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.8181, allocations: 0 / 1.044 GB, free: 13.72 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007259/0.8189, allocations: 144.1 kB / 1.044 GB, free: 13.58 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008407/0.8197, allocations: 37.98 kB / 1.044 GB, free: 13.55 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002073/0.8218, allocations: 0.5201 MB / 1.044 GB, free: 13 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007015/0.8226, allocations: 0.7603 MB / 1.045 GB, free: 12.21 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003569/0.823, allocations: 30.28 kB / 1.045 GB, free: 12.18 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001989/0.8232, allocations: 23.44 kB / 1.045 GB, free: 12.16 MB / 0.698 GB Notification: Performance of SimCode: time 1.664e-06/0.8232, allocations: 0 / 1.045 GB, free: 12.16 MB / 0.698 GB Notification: Performance of Templates: time 0.01535/0.8386, allocations: 2.667 MB / 1.048 GB, free: 9.508 MB / 0.698 GB make -j1 -f Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)