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.4-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.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.909/1.909, allocations: 289.9 MB / 297.4 MB, free: 6.363 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.001294/0.001294, allocations: 180.8 kB / 366.7 MB, free: 1.648 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.952/1.952, allocations: 205.2 MB / 0.626 GB, free: 7.168 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.0009618/0.0009615, allocations: 88.81 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.66e-05/2.661e-05, allocations: 7.984 kB / 0.8598 GB, free: 12.95 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8329/0.8329, allocations: 116.3 MB / 0.9734 GB, free: 76.14 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2243/1.057, allocations: 141.7 MB / 1.112 GB, free: 8.367 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002795/1.058, allocations: 97.05 kB / 1.112 GB, free: 8.273 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01258/1.07, allocations: 4.633 MB / 1.116 GB, free: 3.676 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.134e-06/1.07, allocations: 0 / 1.116 GB, free: 3.676 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.018e-05/1.07, allocations: 11.94 kB / 1.116 GB, free: 3.664 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.0008612/1.071, allocations: 0.5354 MB / 1.117 GB, free: 3.078 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/1.071, allocations: 8.031 kB / 1.117 GB, free: 3.07 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.002e-05/1.071, allocations: 35.58 kB / 1.117 GB, free: 3.035 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003681/1.072, allocations: 259.7 kB / 1.117 GB, free: 2.742 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.548e-05/1.072, allocations: 21.88 kB / 1.117 GB, free: 2.723 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.275e-05/1.072, allocations: 27.98 kB / 1.117 GB, free: 2.695 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004256/1.072, allocations: 197.5 kB / 1.117 GB, free: 2.5 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004998/1.073, allocations: 273 kB / 1.118 GB, free: 2.219 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/1.073, allocations: 0 / 1.118 GB, free: 2.219 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.015e-05/1.073, allocations: 4 kB / 1.118 GB, free: 2.215 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/1.073, allocations: 7.953 kB / 1.118 GB, free: 2.207 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/1.074, allocations: 0.8855 MB / 1.119 GB, free: 1.281 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004166/1.075, allocations: 215.2 kB / 1.119 GB, free: 1.062 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/1.075, allocations: 97.36 kB / 1.119 GB, free: 0.9648 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/1.075, allocations: 4 kB / 1.119 GB, free: 0.9609 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002906/1.075, allocations: 156.1 kB / 1.119 GB, free: 0.7969 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=32): time 1.943e-06/1.075, allocations: 0 / 1.119 GB, free: 0.7969 MB / 0.7136 GB Notification: Performance of matching and sorting (n=32): time 0.000418/1.076, allocations: 213.8 kB / 1.119 GB, free: 0.582 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/1.076, allocations: 63.41 kB / 1.119 GB, free: 0.5078 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001643/1.076, allocations: 160 kB / 1.119 GB, free: 348 kB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.34e-05/1.076, allocations: 35.02 kB / 1.119 GB, free: 308 kB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.000122/1.076, allocations: 152.8 kB / 1.12 GB, free: 152 kB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 6.864e-05/1.076, allocations: 75.05 kB / 1.12 GB, free: 76 kB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.529e-05/1.076, allocations: 0 / 1.12 GB, free: 76 kB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001612/1.076, allocations: 338.8 kB / 1.12 GB, free: 15.73 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/1.077, allocations: 80.86 kB / 1.12 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/1.077, allocations: 140.4 kB / 1.12 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001531/1.077, allocations: 83.86 kB / 1.12 GB, free: 15.42 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/1.077, allocations: 4 kB / 1.12 GB, free: 15.41 MB / 0.7292 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004434/1.077, allocations: 265.2 kB / 1.121 GB, free: 15.15 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 4.204e-05/1.077, allocations: 37.64 kB / 1.121 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/1.077, allocations: 3.5 kB / 1.121 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/1.077, allocations: 4 kB / 1.121 GB, free: 15.1 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002546/1.078, allocations: 47.84 kB / 1.121 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/1.078, allocations: 10.12 kB / 1.121 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/1.078, allocations: 43.8 kB / 1.121 GB, free: 15 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.766e-05/1.078, allocations: 12 kB / 1.121 GB, free: 14.99 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 () * 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.0001359/1.078, allocations: 133.5 kB / 1.121 GB, free: 14.86 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003257/1.079, allocations: 203.7 kB / 1.121 GB, free: 14.65 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.246e-05/1.079, allocations: 23.72 kB / 1.121 GB, free: 14.63 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004502/1.079, allocations: 240.5 kB / 1.121 GB, free: 14.39 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/1.079, allocations: 4 kB / 1.121 GB, free: 14.39 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/1.079, allocations: 0 / 1.121 GB, free: 14.39 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/1.079, allocations: 7.938 kB / 1.121 GB, free: 14.38 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009102/1.08, allocations: 0.6433 MB / 1.122 GB, free: 13.69 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/1.08, allocations: 4 kB / 1.122 GB, free: 13.69 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001439/1.08, allocations: 27.92 kB / 1.122 GB, free: 13.66 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/1.08, allocations: 4 kB / 1.122 GB, free: 13.66 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.752e-05/1.08, allocations: 7.938 kB / 1.122 GB, free: 13.65 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/1.08, allocations: 0 / 1.122 GB, free: 13.65 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.08, allocations: 0 / 1.122 GB, free: 13.65 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003938/1.081, allocations: 319.2 kB / 1.122 GB, free: 13.32 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 6.005e-05/1.081, allocations: 92.92 kB / 1.122 GB, free: 13.21 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.737e-05/1.081, allocations: 7.672 kB / 1.122 GB, free: 13.21 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002412/1.081, allocations: 35.92 kB / 1.122 GB, free: 13.17 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/1.081, allocations: 46.84 kB / 1.122 GB, free: 13.13 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/1.081, allocations: 11.98 kB / 1.122 GB, free: 13.12 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 7.505e-05/1.081, allocations: 116 kB / 1.123 GB, free: 13 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.284e-06/1.081, allocations: 0 / 1.123 GB, free: 13 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003166/1.082, allocations: 63.78 kB / 1.123 GB, free: 12.94 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) * 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.0007874/1.082, allocations: 0.8671 MB / 1.123 GB, free: 12.05 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.000427/1.083, allocations: 275.3 kB / 1.124 GB, free: 11.77 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/1.083, allocations: 0 / 1.124 GB, free: 11.77 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001764/1.083, allocations: 115.8 kB / 1.124 GB, free: 11.66 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/1.083, allocations: 24.25 kB / 1.124 GB, free: 11.63 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008681/1.084, allocations: 369.2 kB / 1.124 GB, free: 11.24 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003798/1.085, allocations: 0.7645 MB / 1.125 GB, free: 10.45 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001119/1.085, allocations: 26.06 kB / 1.125 GB, free: 10.43 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001609/1.085, allocations: 87.39 kB / 1.125 GB, free: 10.34 MB / 0.7292 GB Notification: Performance of SimCode: time 2.81e-07/1.085, allocations: 0 / 1.125 GB, free: 10.34 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02604/1.111, allocations: 4.494 MB / 1.129 GB, free: 5.965 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002274/1.111, allocations: 163.1 kB / 1.13 GB, free: 5.773 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.916/3.027, allocations: 3.984 kB / 1.13 GB, free: 5.773 MB / 0.7292 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)