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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.174/3.174, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 3.071/3.071, allocations: 292.6 MB / 0.5497 GB, free: 14.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000943/0.0009431, allocations: 21.03 kB / 0.6737 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4646/0.4655, allocations: 116.3 MB / 0.7872 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003568/0.4692, allocations: 1.692 MB / 0.7889 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002221/0.4715, allocations: 0.7144 MB / 0.7896 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002407/0.4718, allocations: 7.938 kB / 0.7896 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.472, allocations: 19.8 kB / 0.7896 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001573/0.4721, allocations: 31.88 kB / 0.7896 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007275/0.4729, allocations: 111.8 kB / 0.7898 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005522/0.4734, allocations: 223.6 kB / 0.79 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005293/0.474, allocations: 194.5 kB / 0.7902 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002216/0.4742, allocations: 99.62 kB / 0.7902 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002468/0.4745, allocations: 115.4 kB / 0.7904 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.021e-05/0.4745, allocations: 12 kB / 0.7904 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001133/0.4747, allocations: 16 kB / 0.7904 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.4748, allocations: 55.81 kB / 0.7904 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001287/0.4749, allocations: 65.58 kB / 0.7905 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0007855/0.4757, allocations: 311.4 kB / 0.7908 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4757, allocations: 4 kB / 0.7908 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of FrontEnd: time 4.077e-06/0.4758, allocations: 0 / 0.7908 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.335e-05/0.4758, allocations: 4 kB / 0.7908 GB, free: 8.191 MB / 0.6075 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.00155/0.4773, allocations: 0.5442 MB / 0.7913 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.64e-05/0.4774, allocations: 8.031 kB / 0.7913 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001267/0.4776, allocations: 74.53 kB / 0.7914 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.4777, allocations: 35.58 kB / 0.7914 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004618/0.4781, allocations: 266.6 kB / 0.7917 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.971e-05/0.4782, allocations: 20.66 kB / 0.7917 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-05/0.4783, allocations: 36 kB / 0.7918 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.4796, allocations: 328.8 kB / 0.7921 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.4796, allocations: 8 kB / 0.7921 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.071e-05/0.4797, allocations: 8 kB / 0.7921 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.4797, allocations: 8 kB / 0.7921 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009358/0.4806, allocations: 270 kB / 0.7924 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002455/0.4831, allocations: 0.955 MB / 0.7933 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009311/0.4841, allocations: 275 kB / 0.7935 GB, free: 5.207 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.409e-05/0.4841, allocations: 4 kB / 0.7935 GB, free: 5.203 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006774/0.4848, allocations: 191.2 kB / 0.7937 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 5.69e-06/0.4848, allocations: 0 / 0.7937 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of matching and sorting (n=32): time 0.001563/0.4864, allocations: 359.4 kB / 0.7941 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.4865, allocations: 67.34 kB / 0.7941 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004273/0.487, allocations: 199.3 kB / 0.7943 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001193/0.4871, allocations: 41.7 kB / 0.7944 GB, free: 4.316 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002718/0.4874, allocations: 152.6 kB / 0.7945 GB, free: 4.16 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.4876, allocations: 86.83 kB / 0.7946 GB, free: 4.074 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.633e-05/0.4876, allocations: 12 kB / 0.7946 GB, free: 4.062 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000345/0.488, allocations: 334.8 kB / 0.7949 GB, free: 3.727 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004581/0.4884, allocations: 112.8 kB / 0.795 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005555/0.489, allocations: 169.5 kB / 0.7952 GB, free: 3.434 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005504/0.4896, allocations: 133.6 kB / 0.7953 GB, free: 3.297 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.269e-06/0.4896, allocations: 0 / 0.7953 GB, free: 3.297 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001151/0.4907, allocations: 374.8 kB / 0.7957 GB, free: 2.918 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.813e-05/0.4908, allocations: 32.36 kB / 0.7957 GB, free: 2.883 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.4908, allocations: 4 kB / 0.7957 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.4909, allocations: 7.984 kB / 0.7957 GB, free: 2.871 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003114/0.4912, allocations: 52 kB / 0.7958 GB, free: 2.82 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.572e-05/0.4912, allocations: 4 kB / 0.7958 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004009/0.4916, allocations: 55.66 kB / 0.7958 GB, free: 2.762 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.734e-05/0.4917, allocations: 23.94 kB / 0.7959 GB, free: 2.738 MB / 0.6075 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.condition,wseCon.T1.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.on.active,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.T2.condition,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,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.0003212/0.4921, allocations: 169.8 kB / 0.796 GB, free: 2.562 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.935e-05/0.4921, allocations: 23.72 kB / 0.796 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001124/0.4933, allocations: 312.6 kB / 0.7963 GB, free: 2.234 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.757e-06/0.4933, allocations: 4 kB / 0.7963 GB, free: 2.23 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/0.4933, allocations: 0 / 0.7963 GB, free: 2.23 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.4933, allocations: 4 kB / 0.7963 GB, free: 2.227 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00184/0.4952, allocations: 0.7641 MB / 0.7971 GB, free: 1.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.4952, allocations: 0 / 0.7971 GB, free: 1.406 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002046/0.4954, allocations: 31.91 kB / 0.7971 GB, free: 1.375 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.417e-06/0.4954, allocations: 4 kB / 0.7971 GB, free: 1.371 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.807e-05/0.4955, allocations: 4 kB / 0.7971 GB, free: 1.367 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.048e-05/0.4955, allocations: 7.953 kB / 0.7971 GB, free: 1.359 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.4955, allocations: 0 / 0.7971 GB, free: 1.359 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000966/0.4965, allocations: 379.1 kB / 0.7975 GB, free: 0.9727 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.4966, allocations: 96.77 kB / 0.7976 GB, free: 0.8594 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.211e-05/0.4967, allocations: 19.92 kB / 0.7976 GB, free: 0.8398 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004125/0.4971, allocations: 43.95 kB / 0.7976 GB, free: 0.7969 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/0.4973, allocations: 43.89 kB / 0.7977 GB, free: 0.7539 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.573e-05/0.4974, allocations: 4 kB / 0.7977 GB, free: 0.75 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001976/0.4976, allocations: 139.7 kB / 0.7978 GB, free: 0.6133 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.01e-07/0.4976, allocations: 3.938 kB / 0.7978 GB, free: 0.6094 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0006542/0.4983, allocations: 79.78 kB / 0.7979 GB, free: 0.5312 MB / 0.6075 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.condition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.active,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.condition,wseCon.T2.fire,wseCon.T2.t_start,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.001534/0.4998, allocations: 0.9251 MB / 0.7988 GB, free: 15.58 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001057/0.5009, allocations: 340.4 kB / 0.7991 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.5009, allocations: 4.062 kB / 0.7991 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004616/0.5014, allocations: 141 kB / 0.7993 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005274/0.5019, allocations: 28.12 kB / 0.7993 GB, free: 15.07 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005127/0.5071, allocations: 2.18 MB / 0.8014 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006435/0.5078, allocations: 0.772 MB / 0.8022 GB, free: 12.02 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000212/0.508, allocations: 30.28 kB / 0.8022 GB, free: 11.99 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002571/0.5083, allocations: 83.41 kB / 0.8023 GB, free: 11.91 MB / 0.6231 GB Notification: Performance of SimCode: time 1.653e-06/0.5083, allocations: 0 / 0.8023 GB, free: 11.91 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03102/0.5393, allocations: 5.061 MB / 0.8072 GB, free: 7.035 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004267/0.5399, allocations: 198.2 kB / 0.8074 GB, free: 6.801 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.24/3.78, allocations: 1.25 kB / 0.8074 GB, free: 6.801 MB / 0.6231 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) Environment - environmentSimulation: