Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.327/2.327, allocations: 390.3 MB / 402.8 MB, free: 6.715 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.001089/0.001089, allocations: 184.8 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.613/1.613, allocations: 221.3 MB / 0.7915 GB, free: 5.465 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.001224/0.001224, allocations: 91.75 kB / 0.9317 GB, free: 5.777 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.134e-05/4.164e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3571, allocations: 143 MB / 1.219 GB, free: 13.42 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.173/1.53, allocations: 151.5 MB / 1.367 GB, free: 2.543 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/1.531, allocations: 89.66 kB / 1.367 GB, free: 2.492 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005446/1.536, allocations: 1.546 MB / 1.368 GB, free: 1.145 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.874e-06/1.536, allocations: 0 / 1.368 GB, free: 1.145 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.61e-05/1.536, allocations: 0 / 1.368 GB, free: 1.145 MB / 0.823 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.0007273/1.537, allocations: 448.8 kB / 1.369 GB, free: 0.6562 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 6.18e-05/1.537, allocations: 8.906 kB / 1.369 GB, free: 0.6484 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.642e-05/1.537, allocations: 42.12 kB / 1.369 GB, free: 0.6016 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.994e-05/1.537, allocations: 11.86 kB / 1.369 GB, free: 0.5898 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/1.537, allocations: 187 kB / 1.369 GB, free: 380 kB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/1.537, allocations: 7.438 kB / 1.369 GB, free: 376 kB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.948e-05/1.537, allocations: 4 kB / 1.369 GB, free: 372 kB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002308/1.538, allocations: 76.17 kB / 1.369 GB, free: 304 kB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/1.538, allocations: 3.938 kB / 1.369 GB, free: 300 kB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/1.538, allocations: 0 / 1.369 GB, free: 300 kB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/1.538, allocations: 3.984 kB / 1.369 GB, free: 296 kB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001057/1.538, allocations: 34.12 kB / 1.369 GB, free: 272 kB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000735/1.539, allocations: 347.3 kB / 1.37 GB, free: 15.9 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/1.539, allocations: 52.2 kB / 1.37 GB, free: 15.86 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.842e-05/1.539, allocations: 35.41 kB / 1.37 GB, free: 15.82 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/1.539, allocations: 3.984 kB / 1.37 GB, free: 15.82 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001979/1.539, allocations: 86.44 kB / 1.37 GB, free: 15.73 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 2.976e-06/1.539, allocations: 0 / 1.37 GB, free: 15.73 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0003313/1.539, allocations: 139.9 kB / 1.37 GB, free: 15.6 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.431e-05/1.54, allocations: 81.11 kB / 1.37 GB, free: 15.5 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/1.54, allocations: 121.7 kB / 1.37 GB, free: 15.39 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/1.54, allocations: 25.7 kB / 1.37 GB, free: 15.36 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.006e-05/1.54, allocations: 98.78 kB / 1.37 GB, free: 15.26 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.693e-05/1.54, allocations: 19.62 kB / 1.37 GB, free: 15.25 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.173e-06/1.54, allocations: 0 / 1.37 GB, free: 15.25 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001466/1.54, allocations: 330 kB / 1.37 GB, free: 14.92 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.551e-05/1.54, allocations: 22.81 kB / 1.37 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.811e-05/1.54, allocations: 35.3 kB / 1.371 GB, free: 14.88 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.655e-05/1.54, allocations: 73.83 kB / 1.371 GB, free: 14.8 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/1.54, allocations: 0 / 1.371 GB, free: 14.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002692/1.54, allocations: 175.3 kB / 1.371 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.548e-05/1.541, allocations: 59.41 kB / 1.371 GB, free: 14.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/1.541, allocations: 0 / 1.371 GB, free: 14.57 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/1.541, allocations: 3.953 kB / 1.371 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/1.541, allocations: 36.12 kB / 1.371 GB, free: 14.53 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/1.541, allocations: 0.875 kB / 1.371 GB, free: 14.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000136/1.541, allocations: 23.77 kB / 1.371 GB, free: 14.51 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/1.541, allocations: 7.938 kB / 1.371 GB, free: 14.5 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 0.0001261/1.541, allocations: 135.1 kB / 1.371 GB, free: 14.36 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.544e-05/1.541, allocations: 11.91 kB / 1.371 GB, free: 14.35 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.423e-05/1.541, allocations: 16.55 kB / 1.371 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/1.541, allocations: 3.953 kB / 1.371 GB, free: 14.33 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/1.541, allocations: 0 / 1.371 GB, free: 14.33 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/1.541, allocations: 0 / 1.371 GB, free: 14.33 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004168/1.542, allocations: 401.2 kB / 1.371 GB, free: 13.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/1.542, allocations: 0 / 1.371 GB, free: 13.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.936e-05/1.542, allocations: 15.98 kB / 1.371 GB, free: 13.89 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/1.542, allocations: 4 kB / 1.371 GB, free: 13.89 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/1.542, allocations: 10.7 kB / 1.371 GB, free: 13.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/1.542, allocations: 0 / 1.371 GB, free: 13.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/1.542, allocations: 0 / 1.371 GB, free: 13.88 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002783/1.542, allocations: 222.3 kB / 1.372 GB, free: 13.66 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.882e-05/1.542, allocations: 92.81 kB / 1.372 GB, free: 13.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.461e-05/1.542, allocations: 0 / 1.372 GB, free: 13.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/1.542, allocations: 23.94 kB / 1.372 GB, free: 13.53 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/1.542, allocations: 23.84 kB / 1.372 GB, free: 13.51 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/1.543, allocations: 7.969 kB / 1.372 GB, free: 13.5 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.897e-05/1.543, allocations: 105.4 kB / 1.372 GB, free: 13.41 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.61e-07/1.543, allocations: 3.938 kB / 1.372 GB, free: 13.4 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002495/1.543, allocations: 19.62 kB / 1.372 GB, free: 13.39 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.0007138/1.544, allocations: 0.7689 MB / 1.373 GB, free: 12.61 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004051/1.544, allocations: 182.9 kB / 1.373 GB, free: 12.42 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/1.544, allocations: 0 / 1.373 GB, free: 12.42 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001483/1.544, allocations: 99.88 kB / 1.373 GB, free: 12.32 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002614/1.544, allocations: 16.28 kB / 1.373 GB, free: 12.31 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006542/1.545, allocations: 161.8 kB / 1.373 GB, free: 12.14 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003659/1.546, allocations: 0.7004 MB / 1.374 GB, free: 11.41 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.366e-05/1.546, allocations: 19.7 kB / 1.374 GB, free: 11.39 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.281e-05/1.546, allocations: 20.42 kB / 1.374 GB, free: 11.38 MB / 0.8386 GB Notification: Performance of SimCode: time 6.21e-07/1.546, allocations: 0 / 1.374 GB, free: 11.38 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01929/1.565, allocations: 2.14 MB / 1.376 GB, free: 9.426 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002278/1.565, allocations: 194.5 kB / 1.376 GB, free: 9.195 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.812/3.377, allocations: 2.391 kB / 1.376 GB, free: 9.195 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat does not exist to compare? outputFormat=mat