Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_8_0_0_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_0_0_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.0.0/package.mo): time 2.453/2.453, allocations: 284.7 MB / 297.2 MB, free: 6.371 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.001526/0.001526, allocations: 176.9 kB / 365.6 MB, free: 2.637 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.068/2.068, allocations: 205.1 MB / 0.624 GB, free: 8.266 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.001076/0.001076, allocations: 89.23 kB / 0.7371 GB, free: 40.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.378e-05/3.397e-05, allocations: 4 kB / 0.8574 GB, free: 13.69 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7929/0.7929, allocations: 115.2 MB / 0.97 GB, free: 78.16 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2534/1.046, allocations: 141.2 MB / 1.108 GB, free: 11.25 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003817/1.047, allocations: 93.67 kB / 1.108 GB, free: 11.16 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.02074/1.068, allocations: 4.698 MB / 1.113 GB, free: 6.504 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.913e-06/1.068, allocations: 0.875 kB / 1.113 GB, free: 6.504 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.315e-05/1.068, allocations: 7.094 kB / 1.113 GB, free: 6.5 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.001227/1.069, allocations: 0.5467 MB / 1.113 GB, free: 5.902 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/1.069, allocations: 8.031 kB / 1.113 GB, free: 5.895 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001229/1.069, allocations: 70.53 kB / 1.113 GB, free: 5.816 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/1.069, allocations: 35.56 kB / 1.113 GB, free: 5.781 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004571/1.07, allocations: 254.7 kB / 1.113 GB, free: 5.492 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.001e-05/1.07, allocations: 28.78 kB / 1.113 GB, free: 5.461 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.051e-05/1.07, allocations: 31.98 kB / 1.114 GB, free: 5.43 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008463/1.071, allocations: 318.5 kB / 1.114 GB, free: 5.109 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/1.071, allocations: 0 / 1.114 GB, free: 5.109 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.426e-05/1.071, allocations: 15.95 kB / 1.114 GB, free: 5.094 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/1.071, allocations: 11.94 kB / 1.114 GB, free: 5.082 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006847/1.072, allocations: 214.2 kB / 1.114 GB, free: 4.871 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002485/1.074, allocations: 0.9497 MB / 1.115 GB, free: 3.871 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007987/1.075, allocations: 245.6 kB / 1.115 GB, free: 3.625 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002932/1.075, allocations: 101.6 kB / 1.115 GB, free: 3.523 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.854e-05/1.075, allocations: 4 kB / 1.115 GB, free: 3.52 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004846/1.076, allocations: 159.2 kB / 1.115 GB, free: 3.352 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=32): time 3.587e-06/1.076, allocations: 0 / 1.115 GB, free: 3.352 MB / 0.7136 GB Notification: Performance of matching and sorting (n=32): time 0.0007644/1.077, allocations: 229.4 kB / 1.116 GB, free: 3.121 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.511e-05/1.077, allocations: 63.33 kB / 1.116 GB, free: 3.047 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003305/1.077, allocations: 186.4 kB / 1.116 GB, free: 2.852 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.466e-05/1.077, allocations: 45.69 kB / 1.116 GB, free: 2.801 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/1.077, allocations: 152.5 kB / 1.116 GB, free: 2.648 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/1.077, allocations: 79.05 kB / 1.116 GB, free: 2.57 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/1.078, allocations: 8 kB / 1.116 GB, free: 2.562 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001775/1.078, allocations: 334.8 kB / 1.117 GB, free: 2.227 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002961/1.078, allocations: 84.88 kB / 1.117 GB, free: 2.145 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003603/1.078, allocations: 153.5 kB / 1.117 GB, free: 1.977 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003199/1.079, allocations: 106.7 kB / 1.117 GB, free: 1.867 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/1.079, allocations: 4 kB / 1.117 GB, free: 1.863 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00093/1.08, allocations: 338.6 kB / 1.117 GB, free: 1.52 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.712e-05/1.08, allocations: 30.92 kB / 1.117 GB, free: 1.484 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/1.08, allocations: 4 kB / 1.117 GB, free: 1.48 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.927e-05/1.08, allocations: 4 kB / 1.117 GB, free: 1.477 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004093/1.08, allocations: 55.36 kB / 1.117 GB, free: 1.426 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.897e-05/1.08, allocations: 4 kB / 1.117 GB, free: 1.422 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004807/1.081, allocations: 67.78 kB / 1.117 GB, free: 1.355 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.678e-05/1.081, allocations: 12 kB / 1.117 GB, free: 1.344 MB / 0.7136 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.0002223/1.081, allocations: 136.3 kB / 1.117 GB, free: 1.207 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.157e-05/1.081, allocations: 19.81 kB / 1.117 GB, free: 1.188 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008342/1.082, allocations: 267.3 kB / 1.118 GB, free: 0.9219 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/1.082, allocations: 4 kB / 1.118 GB, free: 0.918 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/1.082, allocations: 3.953 kB / 1.118 GB, free: 0.9141 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/1.082, allocations: 0 / 1.118 GB, free: 0.9141 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001729/1.084, allocations: 0.7229 MB / 1.118 GB, free: 140 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/1.084, allocations: 0 / 1.118 GB, free: 140 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000279/1.084, allocations: 27.97 kB / 1.118 GB, free: 112 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.444e-05/1.084, allocations: 11.89 kB / 1.118 GB, free: 100 kB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.114e-05/1.084, allocations: 4 kB / 1.118 GB, free: 96 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.018e-05/1.084, allocations: 4 kB / 1.118 GB, free: 92 kB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/1.084, allocations: 0 / 1.118 GB, free: 92 kB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007807/1.085, allocations: 339.1 kB / 1.119 GB, free: 15.74 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 9.971e-05/1.085, allocations: 92.92 kB / 1.119 GB, free: 15.63 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.579e-05/1.085, allocations: 11.95 kB / 1.119 GB, free: 15.62 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000438/1.086, allocations: 35.95 kB / 1.119 GB, free: 15.59 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/1.086, allocations: 43.92 kB / 1.119 GB, free: 15.54 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.725e-05/1.086, allocations: 12.59 kB / 1.119 GB, free: 15.54 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001864/1.086, allocations: 135.8 kB / 1.119 GB, free: 15.4 MB / 0.7292 GB Notification: Performance of sort global known variables: time 5.31e-07/1.086, allocations: 0 / 1.119 GB, free: 15.4 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0005357/1.087, allocations: 67.92 kB / 1.119 GB, free: 15.34 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.001267/1.088, allocations: 0.8946 MB / 1.12 GB, free: 14.42 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0008656/1.089, allocations: 296.3 kB / 1.12 GB, free: 14.12 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 9.689e-06/1.089, allocations: 0 / 1.12 GB, free: 14.12 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.00034/1.089, allocations: 127.9 kB / 1.12 GB, free: 13.99 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004374/1.09, allocations: 26.53 kB / 1.12 GB, free: 13.97 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001436/1.091, allocations: 407.4 kB / 1.121 GB, free: 13.54 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004775/1.092, allocations: 0.7603 MB / 1.122 GB, free: 12.75 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0002295/1.092, allocations: 30.06 kB / 1.122 GB, free: 12.72 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002368/1.092, allocations: 83.41 kB / 1.122 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of SimCode: time 1.162e-06/1.092, allocations: 0 / 1.122 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02915/1.121, allocations: 5.054 MB / 1.127 GB, free: 7.879 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003647/1.122, allocations: 191.1 kB / 1.127 GB, free: 7.652 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.602/3.724, allocations: 1.5 kB / 1.127 GB, free: 7.652 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)