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.227/2.227, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001126/0.001126, allocations: 177.7 kB / 498.1 MB, free: 5.734 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.465/1.465, allocations: 223.1 MB / 0.7948 GB, free: 17.9 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.0008887/0.0008887, allocations: 96.31 kB / 0.9346 GB, free: 6.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000337/0.0003371, allocations: 8.312 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2436, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1716/0.4152, allocations: 152.6 MB / 1.372 GB, free: 9.32 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002943/0.4156, allocations: 99.86 kB / 1.372 GB, free: 9.223 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01339/0.429, allocations: 4.748 MB / 1.377 GB, free: 4.438 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.544e-06/0.4291, allocations: 3.938 kB / 1.377 GB, free: 4.434 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.151e-05/0.4291, allocations: 4 kB / 1.377 GB, free: 4.43 MB / 0.8698 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.0009641/0.4301, allocations: 0.5642 MB / 1.377 GB, free: 3.812 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.4301, allocations: 8.031 kB / 1.377 GB, free: 3.805 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001007/0.4302, allocations: 62.53 kB / 1.377 GB, free: 3.734 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.465e-05/0.4303, allocations: 43.56 kB / 1.377 GB, free: 3.691 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003436/0.4307, allocations: 254.8 kB / 1.378 GB, free: 3.402 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.361e-05/0.4307, allocations: 28.59 kB / 1.378 GB, free: 3.375 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.265e-05/0.4308, allocations: 36 kB / 1.378 GB, free: 3.34 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007386/0.4315, allocations: 332.8 kB / 1.378 GB, free: 3 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.4316, allocations: 3.953 kB / 1.378 GB, free: 2.996 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.538e-05/0.4316, allocations: 16 kB / 1.378 GB, free: 2.98 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.4316, allocations: 8 kB / 1.378 GB, free: 2.973 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006066/0.4322, allocations: 258.1 kB / 1.378 GB, free: 2.723 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001569/0.4338, allocations: 0.9552 MB / 1.379 GB, free: 1.711 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006797/0.4345, allocations: 273.4 kB / 1.379 GB, free: 1.438 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.4345, allocations: 4 kB / 1.379 GB, free: 1.434 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004029/0.4349, allocations: 179.2 kB / 1.38 GB, free: 1.246 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=32): time 2.675e-06/0.435, allocations: 0 / 1.38 GB, free: 1.246 MB / 0.8698 GB Notification: Performance of matching and sorting (n=32): time 0.0008788/0.4358, allocations: 377.1 kB / 1.38 GB, free: 0.8711 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.188e-05/0.4359, allocations: 63.41 kB / 1.38 GB, free: 0.7969 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001667/0.4361, allocations: 190.4 kB / 1.38 GB, free: 0.5977 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 4.871e-05/0.4361, allocations: 41.7 kB / 1.38 GB, free: 0.5508 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 9.476e-05/0.4362, allocations: 156.5 kB / 1.38 GB, free: 404 kB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 6.8e-05/0.4363, allocations: 79 kB / 1.381 GB, free: 324 kB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.635e-05/0.4363, allocations: 4 kB / 1.381 GB, free: 320 kB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.4365, allocations: 338.8 kB / 1.381 GB, free: 15.97 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000264/0.4367, allocations: 112.8 kB / 1.381 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/0.437, allocations: 166.5 kB / 1.381 GB, free: 15.68 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002885/0.4373, allocations: 141.6 kB / 1.381 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.4373, allocations: 0 / 1.381 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007098/0.4381, allocations: 378.9 kB / 1.382 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.236e-05/0.4381, allocations: 29.7 kB / 1.382 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.4381, allocations: 4 kB / 1.382 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.4382, allocations: 3.953 kB / 1.382 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/0.4384, allocations: 43.91 kB / 1.382 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.669e-06/0.4384, allocations: 4 kB / 1.382 GB, free: 15.06 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.4387, allocations: 59.73 kB / 1.382 GB, free: 15 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.982e-05/0.4387, allocations: 16 kB / 1.382 GB, free: 14.99 MB / 0.8855 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.0001875/0.4389, allocations: 174.1 kB / 1.382 GB, free: 14.81 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.84e-05/0.439, allocations: 19.81 kB / 1.382 GB, free: 14.79 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007078/0.4397, allocations: 307.2 kB / 1.382 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.4397, allocations: 4 kB / 1.382 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.4397, allocations: 3.953 kB / 1.382 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.4397, allocations: 3.984 kB / 1.382 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001249/0.441, allocations: 0.7531 MB / 1.383 GB, free: 13.67 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.441, allocations: 4 kB / 1.383 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/0.4411, allocations: 39.86 kB / 1.383 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-06/0.4412, allocations: 4 kB / 1.383 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.4412, allocations: 4 kB / 1.383 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.4412, allocations: 0 / 1.383 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.4412, allocations: 4 kB / 1.383 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006349/0.4418, allocations: 383.3 kB / 1.383 GB, free: 13.22 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 7.481e-05/0.4419, allocations: 96.8 kB / 1.384 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.235e-05/0.442, allocations: 19.94 kB / 1.384 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002493/0.4422, allocations: 35.97 kB / 1.384 GB, free: 13.05 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.4424, allocations: 39.94 kB / 1.384 GB, free: 13.02 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.42e-05/0.4424, allocations: 11.98 kB / 1.384 GB, free: 13 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001126/0.4425, allocations: 127.2 kB / 1.384 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4425, allocations: 0 / 1.384 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003428/0.4429, allocations: 60 kB / 1.384 GB, free: 12.82 MB / 0.8855 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.001098/0.444, allocations: 0.9492 MB / 1.385 GB, free: 11.84 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0007135/0.4447, allocations: 339.1 kB / 1.385 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4447, allocations: 0 / 1.385 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003024/0.445, allocations: 140.2 kB / 1.385 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.4453, allocations: 36.06 kB / 1.385 GB, free: 11.32 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003108/0.4484, allocations: 2.188 MB / 1.387 GB, free: 9.062 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003966/0.4488, allocations: 0.7681 MB / 1.388 GB, free: 8.27 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001333/0.449, allocations: 34.27 kB / 1.388 GB, free: 8.23 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001694/0.4492, allocations: 87.39 kB / 1.388 GB, free: 8.145 MB / 0.8855 GB Notification: Performance of SimCode: time 4.7e-07/0.4492, allocations: 4 kB / 1.388 GB, free: 8.141 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01801/0.4672, allocations: 5.008 MB / 1.393 GB, free: 3.32 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001911/0.4674, allocations: 204.7 kB / 1.393 GB, free: 3.078 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.719/2.186, allocations: 0.625 kB / 1.393 GB, free: 3.078 MB / 0.8855 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