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.752/1.752, allocations: 289.7 MB / 302.2 MB, free: 2.16 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.001193/0.001193, allocations: 183.5 kB / 371.6 MB, free: 3.391 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.871/1.871, allocations: 205.1 MB / 0.6309 GB, free: 11.77 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.0009871/0.0009868, allocations: 93.81 kB / 0.745 GB, free: 54.48 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.068e-05/4.07e-05, allocations: 4 kB / 0.8663 GB, free: 14.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3382/0.3382, allocations: 116.3 MB / 0.9799 GB, free: 10.52 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.136/1.474, allocations: 142.4 MB / 1.119 GB, free: 42.16 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002611/1.474, allocations: 99.06 kB / 1.119 GB, free: 42.12 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.01166/1.486, allocations: 4.692 MB / 1.124 GB, free: 39.59 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.755e-06/1.486, allocations: 7.516 kB / 1.124 GB, free: 39.58 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.791e-05/1.486, allocations: 8 kB / 1.124 GB, free: 39.57 MB / 0.7448 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.000764/1.487, allocations: 0.5349 MB / 1.124 GB, free: 39.06 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 6.246e-05/1.487, allocations: 8.031 kB / 1.124 GB, free: 39.05 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.003e-05/1.487, allocations: 68.45 kB / 1.124 GB, free: 39 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.13e-05/1.487, allocations: 39.95 kB / 1.124 GB, free: 38.96 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003115/1.487, allocations: 266.2 kB / 1.125 GB, free: 38.72 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.854e-05/1.487, allocations: 29.53 kB / 1.125 GB, free: 38.71 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.757e-05/1.488, allocations: 33.5 kB / 1.125 GB, free: 38.68 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005273/1.488, allocations: 311.3 kB / 1.125 GB, free: 38.5 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/1.488, allocations: 0.6094 kB / 1.125 GB, free: 38.5 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.113e-05/1.488, allocations: 7.125 kB / 1.125 GB, free: 38.5 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/1.488, allocations: 11.95 kB / 1.125 GB, free: 38.49 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003742/1.489, allocations: 224.6 kB / 1.125 GB, free: 38.36 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001347/1.49, allocations: 0.944 MB / 1.126 GB, free: 37.76 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000424/1.49, allocations: 233.6 kB / 1.126 GB, free: 37.61 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/1.491, allocations: 101.6 kB / 1.126 GB, free: 37.55 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/1.491, allocations: 4 kB / 1.126 GB, free: 37.54 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002727/1.491, allocations: 174 kB / 1.127 GB, free: 37.42 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=32): time 1.914e-06/1.491, allocations: 0 / 1.127 GB, free: 37.42 MB / 0.7448 GB Notification: Performance of matching and sorting (n=32): time 0.0004283/1.491, allocations: 229 kB / 1.127 GB, free: 37.25 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/1.491, allocations: 66.36 kB / 1.127 GB, free: 37.18 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/1.491, allocations: 179.2 kB / 1.127 GB, free: 37.03 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.938e-05/1.492, allocations: 41.02 kB / 1.127 GB, free: 37 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 8.589e-05/1.492, allocations: 164.1 kB / 1.127 GB, free: 36.86 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 5.964e-05/1.492, allocations: 73.66 kB / 1.127 GB, free: 36.81 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.536e-05/1.492, allocations: 3.938 kB / 1.127 GB, free: 36.81 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.296e-05/1.492, allocations: 340.7 kB / 1.128 GB, free: 36.49 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/1.492, allocations: 87.44 kB / 1.128 GB, free: 36.44 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/1.492, allocations: 151.4 kB / 1.128 GB, free: 36.32 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/1.492, allocations: 111.3 kB / 1.128 GB, free: 36.24 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/1.492, allocations: 0 / 1.128 GB, free: 36.24 MB / 0.7448 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004303/1.493, allocations: 329 kB / 1.128 GB, free: 36 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 4.074e-05/1.493, allocations: 33.7 kB / 1.128 GB, free: 35.96 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/1.493, allocations: 160 / 1.128 GB, free: 35.96 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/1.493, allocations: 11.38 kB / 1.128 GB, free: 35.96 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/1.493, allocations: 47.58 kB / 1.128 GB, free: 35.92 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.505e-05/1.493, allocations: 12.44 kB / 1.128 GB, free: 35.91 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002331/1.493, allocations: 49.62 kB / 1.128 GB, free: 35.88 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.852e-05/1.493, allocations: 16 kB / 1.128 GB, free: 35.86 MB / 0.7448 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.0001154/1.494, allocations: 144.2 kB / 1.128 GB, free: 35.74 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.251e-05/1.494, allocations: 23.72 kB / 1.129 GB, free: 35.71 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004615/1.494, allocations: 257.2 kB / 1.129 GB, free: 35.56 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/1.494, allocations: 4 kB / 1.129 GB, free: 35.55 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/1.494, allocations: 0 / 1.129 GB, free: 35.55 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/1.494, allocations: 12.7 kB / 1.129 GB, free: 35.54 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008363/1.495, allocations: 0.7161 MB / 1.129 GB, free: 35.01 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/1.495, allocations: 0 / 1.129 GB, free: 35.01 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001354/1.495, allocations: 38.69 kB / 1.13 GB, free: 34.98 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/1.495, allocations: 0 / 1.13 GB, free: 34.98 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.532e-05/1.495, allocations: 19.48 kB / 1.13 GB, free: 34.97 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/1.495, allocations: 0 / 1.13 GB, free: 34.97 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/1.495, allocations: 0 / 1.13 GB, free: 34.97 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003443/1.495, allocations: 331.2 kB / 1.13 GB, free: 34.7 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.259e-05/1.496, allocations: 98.05 kB / 1.13 GB, free: 34.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.631e-05/1.496, allocations: 8.344 kB / 1.13 GB, free: 34.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/1.496, allocations: 45.52 kB / 1.13 GB, free: 34.56 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/1.496, allocations: 40.89 kB / 1.13 GB, free: 34.54 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/1.496, allocations: 14.95 kB / 1.13 GB, free: 34.54 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 7.778e-05/1.496, allocations: 126.8 kB / 1.13 GB, free: 34.43 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.4e-07/1.496, allocations: 0 / 1.13 GB, free: 34.43 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002933/1.496, allocations: 63.19 kB / 1.13 GB, free: 34.38 MB / 0.7448 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.0006769/1.497, allocations: 0.9055 MB / 1.131 GB, free: 33.53 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0004311/1.498, allocations: 293.5 kB / 1.131 GB, free: 33.3 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/1.498, allocations: 3.938 kB / 1.131 GB, free: 33.3 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001939/1.498, allocations: 126.2 kB / 1.132 GB, free: 33.21 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/1.498, allocations: 34.09 kB / 1.132 GB, free: 33.19 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008172/1.499, allocations: 393.6 kB / 1.132 GB, free: 32.88 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/1.499, allocations: 0.7664 MB / 1.133 GB, free: 32.11 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.000114/1.499, allocations: 28.84 kB / 1.133 GB, free: 32.09 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/1.499, allocations: 84.25 kB / 1.133 GB, free: 32.07 MB / 0.7448 GB Notification: Performance of SimCode: time 2.41e-07/1.499, allocations: 0 / 1.133 GB, free: 32.07 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01839/1.518, allocations: 5.066 MB / 1.138 GB, free: 29.21 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002102/1.518, allocations: 186.3 kB / 1.138 GB, free: 28.97 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.092/3.61, allocations: 2.531 kB / 1.138 GB, free: 28.97 MB / 0.7448 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)