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.845/1.845, allocations: 292.6 MB / 307.5 MB, free: 5.078 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.001681/0.001681, allocations: 181.2 kB / 377.1 MB, free: 1.438 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.089/2.089, allocations: 205.4 MB / 0.6366 GB, free: 9.555 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.001415/0.001415, allocations: 94.34 kB / 0.7509 GB, free: 62.41 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004221/0.000422, allocations: 12 kB / 0.8749 GB, free: 11.24 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.355, allocations: 116.3 MB / 0.9884 GB, free: 6.789 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.032/1.387, allocations: 142.5 MB / 1.128 GB, free: 33.05 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/1.388, allocations: 99.64 kB / 1.128 GB, free: 32.97 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01243/1.4, allocations: 4.714 MB / 1.132 GB, free: 29.68 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.575e-06/1.4, allocations: 3.938 kB / 1.132 GB, free: 29.67 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.928e-05/1.4, allocations: 4 kB / 1.132 GB, free: 29.67 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.0009427/1.401, allocations: 0.5551 MB / 1.133 GB, free: 29.1 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/1.401, allocations: 8.969 kB / 1.133 GB, free: 29.09 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.178e-05/1.401, allocations: 70.25 kB / 1.133 GB, free: 29.02 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.037e-05/1.401, allocations: 36.22 kB / 1.133 GB, free: 28.98 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003866/1.402, allocations: 262.2 kB / 1.133 GB, free: 28.71 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.158e-05/1.402, allocations: 35.89 kB / 1.133 GB, free: 28.68 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.453e-05/1.402, allocations: 36.52 kB / 1.133 GB, free: 28.64 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007513/1.403, allocations: 332.2 kB / 1.134 GB, free: 28.37 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/1.403, allocations: 0 / 1.134 GB, free: 28.37 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.418e-05/1.403, allocations: 12.66 kB / 1.134 GB, free: 28.36 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/1.403, allocations: 11.95 kB / 1.134 GB, free: 28.34 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006167/1.403, allocations: 261.9 kB / 1.134 GB, free: 28.13 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001628/1.405, allocations: 0.9505 MB / 1.135 GB, free: 27.3 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006449/1.406, allocations: 282.2 kB / 1.135 GB, free: 27.05 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.842e-05/1.406, allocations: 0.75 kB / 1.135 GB, free: 27.05 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004223/1.406, allocations: 178.8 kB / 1.135 GB, free: 26.9 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=32): time 1.813e-06/1.406, allocations: 0 / 1.135 GB, free: 26.9 MB / 0.7292 GB Notification: Performance of matching and sorting (n=32): time 0.0009465/1.407, allocations: 371.6 kB / 1.136 GB, free: 26.57 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/1.407, allocations: 64.38 kB / 1.136 GB, free: 26.5 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/1.407, allocations: 182.8 kB / 1.136 GB, free: 26.32 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.344e-05/1.407, allocations: 48.14 kB / 1.136 GB, free: 26.27 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/1.407, allocations: 148 kB / 1.136 GB, free: 26.13 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.535e-05/1.408, allocations: 89.38 kB / 1.136 GB, free: 26.05 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.899e-05/1.408, allocations: 4 kB / 1.136 GB, free: 26.05 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001268/1.408, allocations: 343.2 kB / 1.136 GB, free: 25.71 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002775/1.408, allocations: 108 kB / 1.136 GB, free: 25.62 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003184/1.408, allocations: 169.8 kB / 1.137 GB, free: 25.46 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002752/1.409, allocations: 132.5 kB / 1.137 GB, free: 25.33 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/1.409, allocations: 0 / 1.137 GB, free: 25.33 MB / 0.7292 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007246/1.409, allocations: 377.7 kB / 1.137 GB, free: 24.99 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 4.588e-05/1.409, allocations: 31.06 kB / 1.137 GB, free: 24.95 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/1.409, allocations: 4.781 kB / 1.137 GB, free: 24.95 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/1.409, allocations: 1.031 kB / 1.137 GB, free: 24.95 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002217/1.41, allocations: 56.58 kB / 1.137 GB, free: 24.9 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/1.41, allocations: 4.797 kB / 1.137 GB, free: 24.9 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002881/1.41, allocations: 52.7 kB / 1.137 GB, free: 24.86 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.466e-05/1.41, allocations: 12.7 kB / 1.137 GB, free: 24.84 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.0002832/1.41, allocations: 172.5 kB / 1.137 GB, free: 24.67 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.888e-05/1.41, allocations: 24.33 kB / 1.137 GB, free: 24.64 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000737/1.411, allocations: 310 kB / 1.138 GB, free: 24.38 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/1.411, allocations: 4 kB / 1.138 GB, free: 24.38 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/1.411, allocations: 0.75 kB / 1.138 GB, free: 24.38 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/1.411, allocations: 1.547 kB / 1.138 GB, free: 24.38 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001254/1.412, allocations: 0.7588 MB / 1.139 GB, free: 23.67 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/1.412, allocations: 4.625 kB / 1.139 GB, free: 23.66 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001438/1.413, allocations: 30.05 kB / 1.139 GB, free: 23.64 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/1.413, allocations: 7.938 kB / 1.139 GB, free: 23.63 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.721e-05/1.413, allocations: 9.172 kB / 1.139 GB, free: 23.62 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/1.413, allocations: 5.172 kB / 1.139 GB, free: 23.62 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.413, allocations: 0 / 1.139 GB, free: 23.62 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005899/1.413, allocations: 374 kB / 1.139 GB, free: 23.27 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 7.757e-05/1.413, allocations: 101.4 kB / 1.139 GB, free: 23.15 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.126e-05/1.413, allocations: 11.03 kB / 1.139 GB, free: 23.14 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002476/1.414, allocations: 41.47 kB / 1.139 GB, free: 23.11 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/1.414, allocations: 40.55 kB / 1.139 GB, free: 23.09 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/1.414, allocations: 13.59 kB / 1.139 GB, free: 23.08 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001189/1.414, allocations: 133.4 kB / 1.139 GB, free: 22.96 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.4e-07/1.414, allocations: 0 / 1.139 GB, free: 22.96 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003564/1.414, allocations: 64.66 kB / 1.139 GB, free: 22.89 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.000885/1.415, allocations: 0.9404 MB / 1.14 GB, free: 21.96 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0006625/1.416, allocations: 337 kB / 1.141 GB, free: 21.66 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/1.416, allocations: 8.312 kB / 1.141 GB, free: 21.65 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002816/1.416, allocations: 144.3 kB / 1.141 GB, free: 21.52 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/1.417, allocations: 26.66 kB / 1.141 GB, free: 21.5 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002554/1.419, allocations: 2.183 MB / 1.143 GB, free: 19.38 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002676/1.419, allocations: 0.7668 MB / 1.144 GB, free: 18.62 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001337/1.42, allocations: 34.92 kB / 1.144 GB, free: 18.6 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001515/1.42, allocations: 85.38 kB / 1.144 GB, free: 18.52 MB / 0.7292 GB Notification: Performance of SimCode: time 1.182e-06/1.42, allocations: 0 / 1.144 GB, free: 18.52 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02119/1.441, allocations: 5.006 MB / 1.149 GB, free: 15.7 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001879/1.441, allocations: 205.1 kB / 1.149 GB, free: 15.46 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.053/3.495, allocations: 4 kB / 1.149 GB, free: 15.46 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)