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.182/2.182, allocations: 387.1 MB / 399.7 MB, free: 9.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.001183/0.001182, allocations: 179.9 kB / 492.3 MB, free: 0.6328 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.51/1.51, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.0009816/0.0009816, allocations: 95.91 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.499e-05/3.512e-05, allocations: 0 / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2434, allocations: 142.3 MB / 1.212 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8067/1.05, allocations: 150.7 MB / 1.36 GB, free: 19.15 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/1.05, allocations: 90.44 kB / 1.36 GB, free: 19.15 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004867/1.055, allocations: 1.549 MB / 1.361 GB, free: 34.77 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.743e-06/1.055, allocations: 0 / 1.361 GB, free: 34.77 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.061e-05/1.055, allocations: 1.75 kB / 1.361 GB, free: 34.77 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.0004341/1.056, allocations: 442.8 kB / 1.362 GB, free: 34.34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/1.056, allocations: 7.375 kB / 1.362 GB, free: 34.34 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.559e-05/1.056, allocations: 44.88 kB / 1.362 GB, free: 34.3 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.271e-05/1.056, allocations: 7.781 kB / 1.362 GB, free: 34.29 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/1.056, allocations: 197.4 kB / 1.362 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/1.056, allocations: 0 / 1.362 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/1.056, allocations: 6.656 kB / 1.362 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001915/1.056, allocations: 80.47 kB / 1.362 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/1.056, allocations: 2.906 kB / 1.362 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/1.056, allocations: 3.438 kB / 1.362 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/1.056, allocations: 0 / 1.362 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.478e-05/1.056, allocations: 38.78 kB / 1.362 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004894/1.057, allocations: 341.3 kB / 1.362 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.819e-05/1.057, allocations: 49.98 kB / 1.362 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.505e-05/1.057, allocations: 39.22 kB / 1.362 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.284e-05/1.057, allocations: 0 / 1.362 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001325/1.057, allocations: 84.56 kB / 1.363 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/1.057, allocations: 0 / 1.363 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002296/1.058, allocations: 139.2 kB / 1.363 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.517e-05/1.058, allocations: 77.11 kB / 1.363 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.286e-05/1.058, allocations: 127.8 kB / 1.363 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/1.058, allocations: 29.58 kB / 1.363 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.52e-05/1.058, allocations: 93.27 kB / 1.363 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/1.058, allocations: 24.36 kB / 1.363 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.163e-06/1.058, allocations: 0 / 1.363 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 4.499e-05/1.058, allocations: 318.1 kB / 1.363 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.659e-05/1.058, allocations: 30.27 kB / 1.363 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.857e-05/1.058, allocations: 35.97 kB / 1.363 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.183e-05/1.058, allocations: 81.11 kB / 1.363 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/1.058, allocations: 4 kB / 1.363 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001902/1.058, allocations: 173.5 kB / 1.364 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/1.058, allocations: 60.58 kB / 1.364 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/1.058, allocations: 0 / 1.364 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/1.058, allocations: 0 / 1.364 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/1.058, allocations: 27.77 kB / 1.364 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/1.058, allocations: 0 / 1.364 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001269/1.059, allocations: 27.16 kB / 1.364 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.668e-05/1.059, allocations: 5.859 kB / 1.364 GB, free: 32.73 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 6.052e-05/1.059, allocations: 137.9 kB / 1.364 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.583e-05/1.059, allocations: 7.781 kB / 1.364 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.932e-05/1.059, allocations: 14.06 kB / 1.364 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/1.059, allocations: 0 / 1.364 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/1.059, allocations: 3.953 kB / 1.364 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/1.059, allocations: 1.125 kB / 1.364 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002703/1.059, allocations: 400.4 kB / 1.364 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/1.059, allocations: 0 / 1.364 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.446e-05/1.059, allocations: 19.23 kB / 1.364 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/1.059, allocations: 0 / 1.364 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/1.059, allocations: 1.172 kB / 1.364 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/1.059, allocations: 3.953 kB / 1.364 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/1.059, allocations: 160 / 1.364 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001871/1.059, allocations: 237.5 kB / 1.365 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.722e-05/1.059, allocations: 90.09 kB / 1.365 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.291e-05/1.059, allocations: 0 / 1.365 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001505/1.06, allocations: 20.56 kB / 1.365 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.379e-05/1.06, allocations: 34.7 kB / 1.365 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/1.06, allocations: 5.312 kB / 1.365 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.336e-05/1.06, allocations: 104.6 kB / 1.365 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.06, allocations: 4 kB / 1.365 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002151/1.06, allocations: 16.81 kB / 1.365 GB, free: 31.88 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.000461/1.06, allocations: 0.7629 MB / 1.366 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001945/1.061, allocations: 183.8 kB / 1.366 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/1.061, allocations: 0 / 1.366 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.822e-05/1.061, allocations: 97.19 kB / 1.366 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001857/1.061, allocations: 12.02 kB / 1.366 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004512/1.061, allocations: 178.7 kB / 1.366 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002592/1.062, allocations: 0.6953 MB / 1.367 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.808e-05/1.062, allocations: 19.08 kB / 1.367 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.576e-05/1.062, allocations: 18.62 kB / 1.367 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of SimCode: time 2.7e-07/1.062, allocations: 0 / 1.367 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01162/1.073, allocations: 2.13 MB / 1.369 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001369/1.074, allocations: 185.7 kB / 1.369 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.543/2.616, allocations: 0 / 1.369 GB, free: 29.75 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