Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_9_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.001035/0.001035, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001333/0.001333, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 223.2 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.293/2.293, allocations: 390.4 MB / 0.6655 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003031/0.0003031, allocations: 8 kB / 0.8149 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5923/0.5926, allocations: 142.3 MB / 0.9539 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002159/0.5948, allocations: 1.701 MB / 0.9555 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001133/0.596, allocations: 0.6554 MB / 0.9562 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001576/0.5962, allocations: 8.125 kB / 0.9562 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001136/0.5963, allocations: 19.2 kB / 0.9562 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.501e-05/0.5964, allocations: 31.53 kB / 0.9562 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003242/0.5967, allocations: 112.4 kB / 0.9563 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003211/0.597, allocations: 339.9 kB / 0.9566 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002718/0.5973, allocations: 197.2 kB / 0.9568 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001479/0.5975, allocations: 96.16 kB / 0.9569 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001203/0.5976, allocations: 119.9 kB / 0.957 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.42e-05/0.5977, allocations: 13.81 kB / 0.9571 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.581e-05/0.5977, allocations: 16.22 kB / 0.9571 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.524e-05/0.5978, allocations: 62.94 kB / 0.9571 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.941e-05/0.5978, allocations: 69.64 kB / 0.9572 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002262/0.5981, allocations: 307.9 kB / 0.9575 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.5981, allocations: 0 / 0.9575 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.433e-06/0.5981, allocations: 0 / 0.9575 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.08e-06/0.5981, allocations: 1.344 kB / 0.9575 GB, free: 5.336 MB / 0.7169 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.000674/0.5988, allocations: 0.5499 MB / 0.958 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.5988, allocations: 9.938 kB / 0.958 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.616e-05/0.5989, allocations: 67.78 kB / 0.9581 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.826e-05/0.5989, allocations: 31.81 kB / 0.9581 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002232/0.5992, allocations: 265.7 kB / 0.9584 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.118e-05/0.5992, allocations: 26.91 kB / 0.9584 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.471e-05/0.5993, allocations: 30.81 kB / 0.9584 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005733/0.5998, allocations: 337.6 kB / 0.9588 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.5999, allocations: 0 / 0.9588 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.867e-05/0.5999, allocations: 22.14 kB / 0.9588 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.5999, allocations: 7.562 kB / 0.9588 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000534/0.6005, allocations: 265.6 kB / 0.959 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.6016, allocations: 0.9444 MB / 0.96 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005422/0.6022, allocations: 273.6 kB / 0.9602 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002207/0.6024, allocations: 133.4 kB / 0.9604 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.734e-05/0.6024, allocations: 8.109 kB / 0.9604 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003602/0.6028, allocations: 181.6 kB / 0.9605 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=32): time 2.835e-06/0.6028, allocations: 1 kB / 0.9605 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of matching and sorting (n=32): time 0.0007602/0.6036, allocations: 379.1 kB / 0.9609 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.803e-05/0.6036, allocations: 56.34 kB / 0.961 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.6038, allocations: 203 kB / 0.9611 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.195e-05/0.6038, allocations: 42.89 kB / 0.9612 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.952e-05/0.6039, allocations: 149.7 kB / 0.9613 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.359e-05/0.6039, allocations: 86.55 kB / 0.9614 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.701e-05/0.604, allocations: 6.938 kB / 0.9614 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.242e-05/0.604, allocations: 336.1 kB / 0.9617 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002461/0.6043, allocations: 112.2 kB / 0.9618 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002591/0.6045, allocations: 169 kB / 0.962 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000239/0.6048, allocations: 132 kB / 0.9621 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.6048, allocations: 0 / 0.9621 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006413/0.6055, allocations: 383.2 kB / 0.9625 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.646e-05/0.6055, allocations: 35.19 kB / 0.9625 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.6055, allocations: 5.25 kB / 0.9625 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.6055, allocations: 7.547 kB / 0.9625 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001965/0.6057, allocations: 46.91 kB / 0.9626 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.6057, allocations: 2.719 kB / 0.9626 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.606, allocations: 62.91 kB / 0.9627 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.217e-05/0.606, allocations: 10.72 kB / 0.9627 GB, free: 1.383 MB / 0.7169 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.0001332/0.6061, allocations: 175.9 kB / 0.9628 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3e-05/0.6062, allocations: 22.16 kB / 0.9628 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005706/0.6068, allocations: 311 kB / 0.9631 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.6068, allocations: 3.688 kB / 0.9632 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.6068, allocations: 3.953 kB / 0.9632 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.6068, allocations: 0 / 0.9632 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000937/0.6077, allocations: 0.764 MB / 0.9639 GB, free: 460 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.6078, allocations: 0 / 0.9639 GB, free: 460 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001262/0.6079, allocations: 40.88 kB / 0.9639 GB, free: 444 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.6079, allocations: 0 / 0.9639 GB, free: 444 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.6079, allocations: 11.83 kB / 0.964 GB, free: 436 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.6079, allocations: 0 / 0.964 GB, free: 436 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.6079, allocations: 0 / 0.964 GB, free: 436 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004766/0.6084, allocations: 379.8 kB / 0.9643 GB, free: 188 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.147e-05/0.6085, allocations: 110.4 kB / 0.9644 GB, free: 64 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.789e-05/0.6085, allocations: 14.98 kB / 0.9644 GB, free: 52 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002173/0.6087, allocations: 45.33 kB / 0.9645 GB, free: 28 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.521e-05/0.6088, allocations: 41.38 kB / 0.9645 GB, free: 4 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.096e-05/0.6089, allocations: 6.812 kB / 0.9645 GB, free: 4 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001152/0.609, allocations: 126.3 kB / 0.9646 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.609, allocations: 0 / 0.9646 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003297/0.6093, allocations: 72.86 kB / 0.9647 GB, free: 15.88 MB / 0.7325 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.0009584/0.6103, allocations: 0.9333 MB / 0.9656 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006376/0.6109, allocations: 349.7 kB / 0.966 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.6109, allocations: 0 / 0.966 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002881/0.6112, allocations: 140.5 kB / 0.9661 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003461/0.6116, allocations: 41.19 kB / 0.9661 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002341/0.6139, allocations: 1.43 MB / 0.9675 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.6143, allocations: 0.7567 MB / 0.9683 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001189/0.6144, allocations: 30.94 kB / 0.9683 GB, free: 13.1 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.6145, allocations: 88.11 kB / 0.9684 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of SimCode: time 4.11e-07/0.6145, allocations: 0 / 0.9684 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01678/0.6313, allocations: 5.087 MB / 0.9733 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002697/0.6317, allocations: 212.2 kB / 0.9735 GB, free: 10.44 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.797/2.429, allocations: 0 / 0.9735 GB, free: 10.44 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat does not exist to compare? outputFormat=mat