Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.511/1.511, allocations: 249.3 MB / 261.8 MB, free: 5.895 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00112/0.00112, allocations: 176.8 kB / 321.3 MB, free: 14.67 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.793/1.793, allocations: 205.2 MB / 0.572 GB, free: 10.63 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.0008823/0.0008825, allocations: 86.47 kB / 0.6764 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.571e-05/3.573e-05, allocations: 0 / 0.788 GB, free: 97.02 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2609, allocations: 106.3 MB / 0.8919 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8551/1.116, allocations: 135.1 MB / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/1.116, allocations: 91.69 kB / 1.024 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.01244/1.129, allocations: 4.696 MB / 1.029 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.663e-06/1.129, allocations: 0 / 1.029 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.688e-05/1.129, allocations: 4 kB / 1.029 GB, free: 11.58 MB / 0.6511 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.0008403/1.13, allocations: 0.5467 MB / 1.029 GB, free: 11.01 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/1.13, allocations: 8.031 kB / 1.029 GB, free: 11 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.041e-05/1.13, allocations: 68.16 kB / 1.029 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.13e-05/1.13, allocations: 27.72 kB / 1.029 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/1.13, allocations: 280.2 kB / 1.029 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.891e-05/1.13, allocations: 23.28 kB / 1.029 GB, free: 10.62 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.282e-05/1.13, allocations: 36.75 kB / 1.029 GB, free: 10.59 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005601/1.131, allocations: 322.1 kB / 1.03 GB, free: 10.36 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/1.131, allocations: 0 / 1.03 GB, free: 10.36 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.316e-05/1.131, allocations: 15.45 kB / 1.03 GB, free: 10.36 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/1.131, allocations: 8 kB / 1.03 GB, free: 10.35 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003947/1.131, allocations: 213.3 kB / 1.03 GB, free: 10.22 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001491/1.133, allocations: 0.9506 MB / 1.031 GB, free: 9.434 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004532/1.133, allocations: 226.6 kB / 1.031 GB, free: 9.273 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000173/1.134, allocations: 114.7 kB / 1.031 GB, free: 9.199 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/1.134, allocations: 3.938 kB / 1.031 GB, free: 9.195 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002897/1.134, allocations: 154.6 kB / 1.031 GB, free: 9.066 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=32): time 1.763e-06/1.134, allocations: 0 / 1.031 GB, free: 9.066 MB / 0.6511 GB Notification: Performance of matching and sorting (n=32): time 0.0004558/1.134, allocations: 235.4 kB / 1.032 GB, free: 8.879 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.67e-05/1.134, allocations: 67.08 kB / 1.032 GB, free: 8.805 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001968/1.135, allocations: 182.2 kB / 1.032 GB, free: 8.641 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.035e-05/1.135, allocations: 43.58 kB / 1.032 GB, free: 8.602 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/1.135, allocations: 148.9 kB / 1.032 GB, free: 8.469 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 7.94e-05/1.135, allocations: 81.2 kB / 1.032 GB, free: 8.402 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.72e-05/1.135, allocations: 10.38 kB / 1.032 GB, free: 8.398 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001454/1.135, allocations: 337 kB / 1.032 GB, free: 8.07 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/1.135, allocations: 87.06 kB / 1.033 GB, free: 8.02 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/1.136, allocations: 150.4 kB / 1.033 GB, free: 7.898 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001794/1.136, allocations: 113.9 kB / 1.033 GB, free: 7.809 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/1.136, allocations: 4 kB / 1.033 GB, free: 7.805 MB / 0.6511 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000503/1.136, allocations: 335.5 kB / 1.033 GB, free: 7.535 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 4.713e-05/1.136, allocations: 29.7 kB / 1.033 GB, free: 7.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/1.136, allocations: 4 kB / 1.033 GB, free: 7.496 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.945e-05/1.136, allocations: 4 kB / 1.033 GB, free: 7.492 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/1.137, allocations: 51.11 kB / 1.033 GB, free: 7.445 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/1.137, allocations: 4 kB / 1.033 GB, free: 7.441 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002445/1.137, allocations: 50.84 kB / 1.033 GB, free: 7.398 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.592e-05/1.137, allocations: 19.67 kB / 1.033 GB, free: 7.383 MB / 0.6511 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.0001281/1.137, allocations: 130.6 kB / 1.033 GB, free: 7.254 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.883e-05/1.137, allocations: 27.72 kB / 1.033 GB, free: 7.227 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004721/1.138, allocations: 268.3 kB / 1.034 GB, free: 7.035 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/1.138, allocations: 4 kB / 1.034 GB, free: 7.031 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/1.138, allocations: 7.891 kB / 1.034 GB, free: 7.023 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.839e-06/1.138, allocations: 7.969 kB / 1.034 GB, free: 7.016 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009539/1.139, allocations: 0.7147 MB / 1.034 GB, free: 6.391 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/1.139, allocations: 8 kB / 1.034 GB, free: 6.383 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/1.139, allocations: 23.98 kB / 1.034 GB, free: 6.359 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/1.139, allocations: 11.89 kB / 1.034 GB, free: 6.348 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/1.139, allocations: 7.859 kB / 1.034 GB, free: 6.344 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/1.139, allocations: 0 / 1.034 GB, free: 6.344 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/1.139, allocations: 4 kB / 1.034 GB, free: 6.34 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004125/1.139, allocations: 336 kB / 1.035 GB, free: 6.051 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.639e-05/1.139, allocations: 100.8 kB / 1.035 GB, free: 5.934 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.826e-05/1.139, allocations: 14.64 kB / 1.035 GB, free: 5.926 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/1.14, allocations: 31.84 kB / 1.035 GB, free: 5.898 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/1.14, allocations: 42.92 kB / 1.035 GB, free: 5.863 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.367e-05/1.14, allocations: 11.06 kB / 1.035 GB, free: 5.855 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001113/1.14, allocations: 130.4 kB / 1.035 GB, free: 5.742 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.5e-07/1.14, allocations: 0 / 1.035 GB, free: 5.742 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003148/1.14, allocations: 62.75 kB / 1.035 GB, free: 5.691 MB / 0.6511 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.000838/1.141, allocations: 0.901 MB / 1.036 GB, free: 4.82 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004595/1.141, allocations: 303 kB / 1.036 GB, free: 4.582 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/1.141, allocations: 3.938 kB / 1.036 GB, free: 4.578 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001967/1.142, allocations: 116.7 kB / 1.036 GB, free: 4.496 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002847/1.142, allocations: 29.19 kB / 1.036 GB, free: 4.477 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008811/1.143, allocations: 385.5 kB / 1.037 GB, free: 4.129 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003878/1.143, allocations: 0.7674 MB / 1.038 GB, free: 3.336 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001206/1.143, allocations: 30.06 kB / 1.038 GB, free: 3.309 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001533/1.144, allocations: 90.45 kB / 1.038 GB, free: 3.27 MB / 0.6511 GB Notification: Performance of SimCode: time 3.727e-06/1.144, allocations: 0 / 1.038 GB, free: 3.27 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01829/1.162, allocations: 5.075 MB / 1.043 GB, free: 14.36 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002168/1.162, allocations: 186.1 kB / 1.043 GB, free: 14.13 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.976/3.138, allocations: 0 / 1.043 GB, free: 14.13 MB / 0.6667 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)