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.417/1.417, allocations: 249.5 MB / 257 MB, free: 6.867 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.001063/0.001062, allocations: 187.4 kB / 316.3 MB, free: 3.254 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.695/1.695, allocations: 205.3 MB / 0.5671 GB, free: 15.9 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.0008356/0.0008355, allocations: 94.39 kB / 0.6714 GB, free: 5.016 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.825e-05/1.827e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2189/0.219, allocations: 106.3 MB / 0.8853 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7596/0.9786, allocations: 135.4 MB / 1.018 GB, free: 2.336 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002632/0.9789, allocations: 98.02 kB / 1.018 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.0122/0.9911, allocations: 4.633 MB / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.563e-06/0.9912, allocations: 0 / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.747e-05/0.9912, allocations: 4 kB / 1.022 GB, free: 14.41 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.0008406/0.992, allocations: 0.5453 MB / 1.023 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.9921, allocations: 8.031 kB / 1.023 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.906e-05/0.9922, allocations: 27.72 kB / 1.023 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003304/0.9925, allocations: 266.4 kB / 1.023 GB, free: 13.53 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.058e-05/0.9926, allocations: 19.36 kB / 1.023 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.01e-05/0.9926, allocations: 20 kB / 1.023 GB, free: 13.49 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003996/0.993, allocations: 196.8 kB / 1.023 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004558/0.9935, allocations: 278.5 kB / 1.023 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.9935, allocations: 0 / 1.023 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.881e-05/0.9936, allocations: 7.891 kB / 1.023 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.9936, allocations: 8 kB / 1.023 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001432/0.995, allocations: 0.8845 MB / 1.024 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004141/0.9954, allocations: 218.5 kB / 1.025 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001495/0.9956, allocations: 101.5 kB / 1.025 GB, free: 12.2 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.9956, allocations: 4 kB / 1.025 GB, free: 12.2 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002776/0.9959, allocations: 153.2 kB / 1.025 GB, free: 12.07 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=32): time 1.763e-06/0.9959, allocations: 0 / 1.025 GB, free: 12.07 MB / 0.6511 GB Notification: Performance of matching and sorting (n=32): time 0.0004355/0.9964, allocations: 200.8 kB / 1.025 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.413e-05/0.9964, allocations: 67.36 kB / 1.025 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000154/0.9966, allocations: 160.7 kB / 1.025 GB, free: 11.69 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.214e-05/0.9966, allocations: 36.27 kB / 1.025 GB, free: 11.65 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.9968, allocations: 156.9 kB / 1.025 GB, free: 11.51 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 7.33e-05/0.9969, allocations: 78.33 kB / 1.025 GB, free: 11.44 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.507e-05/0.9969, allocations: 3.938 kB / 1.025 GB, free: 11.44 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001342/0.997, allocations: 330 kB / 1.026 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001446/0.9972, allocations: 85.36 kB / 1.026 GB, free: 11.07 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.9973, allocations: 133.6 kB / 1.026 GB, free: 10.96 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001378/0.9975, allocations: 83.81 kB / 1.026 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.9975, allocations: 0 / 1.026 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004165/0.9979, allocations: 275.2 kB / 1.026 GB, free: 10.69 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.967e-05/0.998, allocations: 36.77 kB / 1.026 GB, free: 10.65 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.998, allocations: 0 / 1.026 GB, free: 10.65 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.998, allocations: 4 kB / 1.026 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.9982, allocations: 47.84 kB / 1.026 GB, free: 10.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.9982, allocations: 0 / 1.026 GB, free: 10.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002423/0.9985, allocations: 51.91 kB / 1.026 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.196e-05/0.9985, allocations: 15.38 kB / 1.026 GB, free: 10.54 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.0001261/0.9987, allocations: 133.2 kB / 1.027 GB, free: 10.41 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002934/0.999, allocations: 200.9 kB / 1.027 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.024e-05/0.999, allocations: 27.66 kB / 1.027 GB, free: 10.22 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004481/0.9995, allocations: 241.3 kB / 1.027 GB, free: 10.04 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.299e-06/0.9995, allocations: 0 / 1.027 GB, free: 10.04 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.9995, allocations: 11.89 kB / 1.027 GB, free: 10.03 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.9995, allocations: 3.984 kB / 1.027 GB, free: 10.02 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008433/1, allocations: 0.6305 MB / 1.028 GB, free: 9.473 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/1, allocations: 4 kB / 1.028 GB, free: 9.469 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001435/1.001, allocations: 31.23 kB / 1.028 GB, free: 9.441 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/1.001, allocations: 7.953 kB / 1.028 GB, free: 9.434 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.001e-05/1.001, allocations: 3.984 kB / 1.028 GB, free: 9.43 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/1.001, allocations: 4 kB / 1.028 GB, free: 9.426 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.001, allocations: 0 / 1.028 GB, free: 9.426 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003706/1.001, allocations: 321.2 kB / 1.028 GB, free: 9.145 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.176e-05/1.001, allocations: 100.9 kB / 1.028 GB, free: 9.027 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.737e-05/1.001, allocations: 7.938 kB / 1.028 GB, free: 9.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002249/1.001, allocations: 27.97 kB / 1.028 GB, free: 8.992 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/1.001, allocations: 46.31 kB / 1.028 GB, free: 8.957 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/1.001, allocations: 11.48 kB / 1.028 GB, free: 8.949 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 8.847e-05/1.002, allocations: 118.8 kB / 1.028 GB, free: 8.844 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.1e-07/1.002, allocations: 0 / 1.028 GB, free: 8.844 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003276/1.002, allocations: 59.84 kB / 1.028 GB, free: 8.785 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.0007285/1.003, allocations: 0.8594 MB / 1.029 GB, free: 7.949 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004322/1.003, allocations: 282.7 kB / 1.03 GB, free: 7.73 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/1.003, allocations: 0 / 1.03 GB, free: 7.73 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000177/1.003, allocations: 120.4 kB / 1.03 GB, free: 7.645 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002834/1.004, allocations: 25.2 kB / 1.03 GB, free: 7.629 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008065/1.004, allocations: 366.1 kB / 1.03 GB, free: 7.289 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/1.005, allocations: 0.7648 MB / 1.031 GB, free: 6.5 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001135/1.005, allocations: 26.08 kB / 1.031 GB, free: 6.477 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/1.005, allocations: 88.77 kB / 1.031 GB, free: 6.441 MB / 0.6511 GB Notification: Performance of SimCode: time 5.61e-07/1.005, allocations: 0 / 1.031 GB, free: 6.441 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0221/1.027, allocations: 4.494 MB / 1.035 GB, free: 1.969 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002284/1.027, allocations: 180.6 kB / 1.035 GB, free: 1.773 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.744/2.772, allocations: 4 kB / 1.035 GB, free: 1.77 MB / 0.6511 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)