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.619/1.619, allocations: 251.9 MB / 266.9 MB, free: 10.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001285/0.001285, allocations: 188.4 kB / 326.5 MB, free: 2.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.199/2.199, allocations: 205.4 MB / 0.5775 GB, free: 20.22 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.0009961/0.0009962, allocations: 88 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004486/0.0004487, allocations: 8.875 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2854/0.2858, allocations: 106.3 MB / 0.9002 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1933/0.4792, allocations: 135.2 MB / 1.032 GB, free: 8.473 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003157/0.4796, allocations: 91.94 kB / 1.032 GB, free: 8.383 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01388/0.4935, allocations: 4.715 MB / 1.037 GB, free: 3.633 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.404e-06/0.4935, allocations: 0 / 1.037 GB, free: 3.633 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.031e-05/0.4936, allocations: 11.94 kB / 1.037 GB, free: 3.621 MB / 0.6823 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.001203/0.4948, allocations: 0.5532 MB / 1.037 GB, free: 3.008 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.4949, allocations: 12.03 kB / 1.037 GB, free: 2.996 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001363/0.495, allocations: 66.53 kB / 1.037 GB, free: 2.922 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.4951, allocations: 31.62 kB / 1.038 GB, free: 2.891 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000415/0.4955, allocations: 273.5 kB / 1.038 GB, free: 2.586 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.156e-05/0.4956, allocations: 24.66 kB / 1.038 GB, free: 2.562 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.781e-05/0.4957, allocations: 36 kB / 1.038 GB, free: 2.527 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007308/0.4964, allocations: 340.8 kB / 1.038 GB, free: 2.184 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.4964, allocations: 0 / 1.038 GB, free: 2.184 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.41e-05/0.4965, allocations: 15.95 kB / 1.038 GB, free: 2.168 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.4965, allocations: 4 kB / 1.038 GB, free: 2.164 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000636/0.4971, allocations: 266.1 kB / 1.038 GB, free: 1.902 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.4989, allocations: 0.9592 MB / 1.039 GB, free: 0.8867 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006552/0.4996, allocations: 271.1 kB / 1.04 GB, free: 0.6133 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/0.4996, allocations: 4 kB / 1.04 GB, free: 0.6094 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004049/0.5, allocations: 179.3 kB / 1.04 GB, free: 432 kB / 0.6823 GB Notification: Performance of pre-optimization done (n=32): time 2.685e-06/0.5, allocations: 0 / 1.04 GB, free: 432 kB / 0.6823 GB Notification: Performance of matching and sorting (n=32): time 0.0008863/0.5009, allocations: 385.7 kB / 1.04 GB, free: 40 kB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.342e-05/0.501, allocations: 59.34 kB / 1.04 GB, free: 15.97 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002047/0.5012, allocations: 183.3 kB / 1.04 GB, free: 15.78 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.714e-05/0.5013, allocations: 37.7 kB / 1.04 GB, free: 15.73 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.5014, allocations: 152.6 kB / 1.041 GB, free: 15.58 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.603e-05/0.5015, allocations: 82.94 kB / 1.041 GB, free: 15.5 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.927e-05/0.5015, allocations: 12 kB / 1.041 GB, free: 15.49 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001472/0.5017, allocations: 330.8 kB / 1.041 GB, free: 15.16 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002847/0.502, allocations: 120.8 kB / 1.041 GB, free: 15.04 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002964/0.5023, allocations: 169.5 kB / 1.041 GB, free: 14.86 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003011/0.5026, allocations: 129.6 kB / 1.041 GB, free: 14.73 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.828e-06/0.5026, allocations: 0 / 1.041 GB, free: 14.73 MB / 0.698 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007343/0.5033, allocations: 382.6 kB / 1.042 GB, free: 14.34 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 4.874e-05/0.5034, allocations: 40.66 kB / 1.042 GB, free: 14.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.5034, allocations: 0 / 1.042 GB, free: 14.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.5034, allocations: 4 kB / 1.042 GB, free: 14.29 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002196/0.5037, allocations: 52 kB / 1.042 GB, free: 14.24 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.5037, allocations: 7.953 kB / 1.042 GB, free: 14.23 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002896/0.504, allocations: 51.81 kB / 1.042 GB, free: 14.18 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.113e-05/0.504, allocations: 8 kB / 1.042 GB, free: 14.18 MB / 0.698 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.0002266/0.5043, allocations: 177.8 kB / 1.042 GB, free: 13.99 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.036e-05/0.5043, allocations: 19.72 kB / 1.042 GB, free: 13.97 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006646/0.505, allocations: 307.4 kB / 1.042 GB, free: 13.67 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.216e-06/0.505, allocations: 11.98 kB / 1.042 GB, free: 13.66 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.505, allocations: 0 / 1.042 GB, free: 13.66 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.505, allocations: 3.953 kB / 1.042 GB, free: 13.66 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001248/0.5063, allocations: 0.7518 MB / 1.043 GB, free: 12.85 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.5063, allocations: 0 / 1.043 GB, free: 12.85 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001721/0.5065, allocations: 31.98 kB / 1.043 GB, free: 12.82 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/0.5065, allocations: 11.88 kB / 1.043 GB, free: 12.8 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.411e-05/0.5065, allocations: 8 kB / 1.043 GB, free: 12.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.5066, allocations: 0 / 1.043 GB, free: 12.8 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.5066, allocations: 0 / 1.043 GB, free: 12.8 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005924/0.5072, allocations: 387.6 kB / 1.044 GB, free: 12.4 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.732e-05/0.5072, allocations: 96.83 kB / 1.044 GB, free: 12.29 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.943e-05/0.5073, allocations: 11.95 kB / 1.044 GB, free: 12.28 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000246/0.5075, allocations: 43.95 kB / 1.044 GB, free: 12.23 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.5077, allocations: 43.88 kB / 1.044 GB, free: 12.19 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.282e-05/0.5077, allocations: 12 kB / 1.044 GB, free: 12.18 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001068/0.5078, allocations: 123.2 kB / 1.044 GB, free: 12.06 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5078, allocations: 4 kB / 1.044 GB, free: 12.05 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003387/0.5082, allocations: 55.98 kB / 1.044 GB, free: 12 MB / 0.698 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.0009456/0.5091, allocations: 0.9379 MB / 1.045 GB, free: 11.04 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006495/0.5098, allocations: 347.4 kB / 1.045 GB, free: 10.69 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5098, allocations: 320 / 1.045 GB, free: 10.69 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002678/0.5101, allocations: 139.9 kB / 1.045 GB, free: 10.55 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.5103, allocations: 40.95 kB / 1.045 GB, free: 10.52 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002633/0.513, allocations: 2.184 MB / 1.047 GB, free: 8.25 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.5134, allocations: 0.7681 MB / 1.048 GB, free: 7.457 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001263/0.5135, allocations: 26.28 kB / 1.048 GB, free: 7.43 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001518/0.5136, allocations: 87.41 kB / 1.048 GB, free: 7.344 MB / 0.698 GB Notification: Performance of SimCode: time 8.12e-07/0.5137, allocations: 0 / 1.048 GB, free: 7.344 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.019/0.5327, allocations: 5 MB / 1.053 GB, free: 2.535 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002295/0.533, allocations: 213.5 kB / 1.053 GB, free: 2.297 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.905/2.438, allocations: 0 / 1.053 GB, free: 2.297 MB / 0.698 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)