Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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.RequestCounter,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",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.27/2.27, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001016/0.001016, allocations: 196.5 kB / 487.4 MB, free: 5.023 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.444/1.444, allocations: 221.5 MB / 0.7824 GB, free: 0.9805 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009501/0.0009501, allocations: 95.58 kB / 0.9219 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.682e-05/1.685e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.2265, allocations: 142.4 MB / 1.206 GB, free: 43.84 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7483/0.9749, allocations: 150 MB / 1.353 GB, free: 18.17 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/0.9751, allocations: 96.5 kB / 1.353 GB, free: 18.16 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004884/0.98, allocations: 1.54 MB / 1.354 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.052e-06/0.9801, allocations: 0 / 1.354 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.094e-05/0.9801, allocations: 7.781 kB / 1.354 GB, free: 33.79 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000488/0.9806, allocations: 438 kB / 1.355 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.9806, allocations: 12.06 kB / 1.355 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.061e-05/0.9807, allocations: 7.766 kB / 1.355 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.9808, allocations: 194.3 kB / 1.355 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.9808, allocations: 3.844 kB / 1.355 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.018e-05/0.9809, allocations: 8.453 kB / 1.355 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001045/0.981, allocations: 30.53 kB / 1.355 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000114/0.9811, allocations: 73.56 kB / 1.355 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.884e-06/0.9811, allocations: 0 / 1.355 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.9811, allocations: 0.6094 kB / 1.355 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.9812, allocations: 0 / 1.355 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004882/0.9816, allocations: 326.8 kB / 1.355 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.527e-05/0.9817, allocations: 47.34 kB / 1.355 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.734e-05/0.9818, allocations: 29.7 kB / 1.355 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.9818, allocations: 3.75 kB / 1.355 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001368/0.982, allocations: 89.05 kB / 1.355 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.982, allocations: 0 / 1.355 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002109/0.9822, allocations: 97 kB / 1.355 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.908e-05/0.9822, allocations: 77.62 kB / 1.356 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.103e-05/0.9823, allocations: 118.3 kB / 1.356 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.9824, allocations: 29.58 kB / 1.356 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.325e-05/0.9824, allocations: 94.16 kB / 1.356 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.972e-05/0.9824, allocations: 24.55 kB / 1.356 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.065e-06/0.9825, allocations: 4 kB / 1.356 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.9826, allocations: 317.1 kB / 1.356 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.024e-05/0.9826, allocations: 31.39 kB / 1.356 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.177e-05/0.9827, allocations: 27.23 kB / 1.356 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.372e-05/0.9827, allocations: 22.19 kB / 1.356 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.9827, allocations: 3.781 kB / 1.356 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001616/0.9829, allocations: 101.2 kB / 1.356 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.078e-05/0.9829, allocations: 63.59 kB / 1.356 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.9829, allocations: 3.938 kB / 1.356 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.983, allocations: 3.703 kB / 1.356 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.9831, allocations: 30.83 kB / 1.356 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.9831, allocations: 0.6094 kB / 1.356 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001318/0.9832, allocations: 28.25 kB / 1.356 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.9833, allocations: 0.5156 kB / 1.356 GB, free: 31.98 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,reqCou.nInc,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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 7.758e-05/0.9834, allocations: 138.7 kB / 1.357 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001376/0.9835, allocations: 98.83 kB / 1.357 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.32e-05/0.9835, allocations: 15.66 kB / 1.357 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.859e-05/0.9836, allocations: 9.344 kB / 1.357 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.9836, allocations: 0 / 1.357 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.9836, allocations: 3.953 kB / 1.357 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.9836, allocations: 8.625 kB / 1.357 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000275/0.9839, allocations: 331 kB / 1.357 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.9839, allocations: 0.6094 kB / 1.357 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.994e-05/0.984, allocations: 19.64 kB / 1.357 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.984, allocations: 0.7031 kB / 1.357 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.984, allocations: 4.406 kB / 1.357 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.984, allocations: 3.953 kB / 1.357 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.984, allocations: 0.75 kB / 1.357 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001712/0.9842, allocations: 199.8 kB / 1.357 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.2e-05/0.9842, allocations: 85.61 kB / 1.357 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.46e-05/0.9843, allocations: 0.5625 kB / 1.357 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001525/0.9844, allocations: 24.86 kB / 1.357 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.605e-05/0.9845, allocations: 26.31 kB / 1.357 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.9845, allocations: 4.453 kB / 1.357 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.415e-05/0.9846, allocations: 102.8 kB / 1.357 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9846, allocations: 0 / 1.357 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002315/0.9849, allocations: 16.03 kB / 1.357 GB, free: 31.2 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: 4 ($whenCondition1,reqCou.nInc,act1.T_start,act1.count) * Number of discrete states: 2 (act1.count,reqCou.nInc) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.000456/0.9853, allocations: 0.7345 MB / 1.358 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000173/0.9855, allocations: 182.3 kB / 1.358 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.9855, allocations: 0 / 1.358 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.574e-05/0.9856, allocations: 87.05 kB / 1.358 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001959/0.9858, allocations: 11.81 kB / 1.358 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004434/0.9862, allocations: 172 kB / 1.359 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002673/0.9865, allocations: 0.6962 MB / 1.359 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.805e-05/0.9866, allocations: 12.02 kB / 1.359 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.696e-05/0.9866, allocations: 23.14 kB / 1.359 GB, free: 29.51 MB / 0.8386 GB Notification: Performance of SimCode: time 2.81e-07/0.9867, allocations: 0 / 1.359 GB, free: 29.51 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01845/1.005, allocations: 1.747 MB / 1.361 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001497/1.005, allocations: 171 kB / 1.361 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.559/2.564, allocations: 0 / 1.361 GB, free: 29.2 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat does not exist to compare? outputFormat=mat