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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.309/2.309, allocations: 387.1 MB / 399.7 MB, free: 9.465 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 174.4 kB / 492.3 MB, free: 0.6367 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 221.3 MB / 0.7871 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009048/0.0009049, allocations: 87.94 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.985e-05/2.997e-05, allocations: 5.719 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2609, allocations: 142.3 MB / 1.212 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8999/1.161, allocations: 152.6 MB / 1.361 GB, free: 19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/1.161, allocations: 94.17 kB / 1.362 GB, free: 19 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01238/1.174, allocations: 4.717 MB / 1.366 GB, free: 34.38 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.563e-06/1.174, allocations: 0 / 1.366 GB, free: 34.38 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.608e-05/1.174, allocations: 11.66 kB / 1.366 GB, free: 34.38 MB / 0.8386 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.0008299/1.174, allocations: 0.5473 MB / 1.367 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/1.174, allocations: 7.75 kB / 1.367 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001161/1.175, allocations: 66.92 kB / 1.367 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.839e-05/1.175, allocations: 31 kB / 1.367 GB, free: 33.88 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/1.175, allocations: 268.3 kB / 1.367 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.01e-05/1.175, allocations: 26.19 kB / 1.367 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.83e-05/1.175, allocations: 33.59 kB / 1.367 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005255/1.176, allocations: 311.8 kB / 1.367 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/1.176, allocations: 4 kB / 1.367 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.292e-05/1.176, allocations: 18.08 kB / 1.367 GB, free: 33.58 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/1.176, allocations: 7.688 kB / 1.367 GB, free: 33.58 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003907/1.176, allocations: 218.2 kB / 1.368 GB, free: 33.58 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001368/1.178, allocations: 0.956 MB / 1.369 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004298/1.178, allocations: 231.4 kB / 1.369 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/1.178, allocations: 105.4 kB / 1.369 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/1.178, allocations: 3.812 kB / 1.369 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002701/1.178, allocations: 161.5 kB / 1.369 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=32): time 2.995e-06/1.178, allocations: 0 / 1.369 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of matching and sorting (n=32): time 0.0004443/1.179, allocations: 234.3 kB / 1.369 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/1.179, allocations: 62.66 kB / 1.369 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/1.179, allocations: 184.2 kB / 1.37 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.956e-05/1.179, allocations: 40.11 kB / 1.37 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.814e-05/1.179, allocations: 159 kB / 1.37 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.681e-05/1.179, allocations: 80.16 kB / 1.37 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.682e-05/1.179, allocations: 6.625 kB / 1.37 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.221e-05/1.179, allocations: 338.4 kB / 1.37 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/1.18, allocations: 87.97 kB / 1.37 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001657/1.18, allocations: 149.2 kB / 1.37 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001641/1.18, allocations: 112.9 kB / 1.37 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/1.18, allocations: 0 / 1.37 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004499/1.18, allocations: 334.3 kB / 1.371 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.083e-05/1.18, allocations: 33.52 kB / 1.371 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/1.18, allocations: 0 / 1.371 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/1.181, allocations: 3.812 kB / 1.371 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000211/1.181, allocations: 51.02 kB / 1.371 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/1.181, allocations: 3.875 kB / 1.371 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002551/1.181, allocations: 57.06 kB / 1.371 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.087e-05/1.181, allocations: 16.23 kB / 1.371 GB, free: 32.1 MB / 0.8386 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.0001137/1.181, allocations: 135 kB / 1.371 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.187e-05/1.181, allocations: 21.22 kB / 1.371 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004257/1.182, allocations: 272 kB / 1.371 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/1.182, allocations: 3.844 kB / 1.371 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/1.182, allocations: 3.953 kB / 1.371 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/1.182, allocations: 6.984 kB / 1.371 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008351/1.183, allocations: 0.7069 MB / 1.372 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/1.183, allocations: 0 / 1.372 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001653/1.183, allocations: 36.83 kB / 1.372 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/1.183, allocations: 3.953 kB / 1.372 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/1.183, allocations: 8.938 kB / 1.372 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/1.183, allocations: 3.844 kB / 1.372 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/1.183, allocations: 4 kB / 1.372 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003549/1.183, allocations: 338 kB / 1.372 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.069e-05/1.183, allocations: 100.5 kB / 1.373 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.589e-05/1.183, allocations: 14.02 kB / 1.373 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/1.183, allocations: 35.48 kB / 1.373 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/1.184, allocations: 40.8 kB / 1.373 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/1.184, allocations: 14.05 kB / 1.373 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 9.424e-05/1.184, allocations: 127.8 kB / 1.373 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.51e-07/1.184, allocations: 4 kB / 1.373 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003081/1.184, allocations: 55.94 kB / 1.373 GB, free: 31.25 MB / 0.8386 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.000642/1.185, allocations: 0.9051 MB / 1.374 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004307/1.185, allocations: 309.7 kB / 1.374 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/1.185, allocations: 0 / 1.374 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001692/1.185, allocations: 120.8 kB / 1.374 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002582/1.186, allocations: 27.36 kB / 1.374 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000833/1.186, allocations: 397.2 kB / 1.375 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003242/1.187, allocations: 0.7661 MB / 1.375 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001252/1.187, allocations: 31.09 kB / 1.375 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/1.187, allocations: 83.56 kB / 1.375 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of SimCode: time 3.21e-07/1.187, allocations: 0 / 1.375 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01773/1.205, allocations: 5.067 MB / 1.38 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/1.205, allocations: 180.5 kB / 1.381 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.894/3.099, allocations: 0 / 1.381 GB, free: 28.93 MB / 0.8386 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