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.411/2.411, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001155/0.001155, allocations: 183.3 kB / 498.1 MB, free: 5.719 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.535/1.535, allocations: 223.1 MB / 0.7948 GB, free: 18.83 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.001047/0.001047, allocations: 98.33 kB / 0.9346 GB, free: 7.133 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003784/0.0003786, allocations: 8.469 kB / 1.084 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2313, allocations: 142.4 MB / 1.223 GB, free: 89.45 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1807/0.4121, allocations: 150.7 MB / 1.37 GB, free: 2.527 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002896/0.4125, allocations: 95.94 kB / 1.37 GB, free: 2.434 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00528/0.4178, allocations: 1.573 MB / 1.372 GB, free: 0.8594 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.134e-06/0.4178, allocations: 0 / 1.372 GB, free: 0.8594 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.099e-05/0.4178, allocations: 0 / 1.372 GB, free: 0.8594 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006223/0.4185, allocations: 450.4 kB / 1.372 GB, free: 368 kB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.4185, allocations: 8.031 kB / 1.372 GB, free: 360 kB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.771e-05/0.4186, allocations: 42.56 kB / 1.372 GB, free: 308 kB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.161e-05/0.4186, allocations: 11.86 kB / 1.372 GB, free: 296 kB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002063/0.4188, allocations: 186.9 kB / 1.372 GB, free: 68 kB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.4188, allocations: 4 kB / 1.372 GB, free: 64 kB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.4189, allocations: 4 kB / 1.372 GB, free: 60 kB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003093/0.4192, allocations: 109.5 kB / 1.373 GB, free: 15.95 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.4192, allocations: 4 kB / 1.373 GB, free: 15.94 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.4192, allocations: 0 / 1.373 GB, free: 15.94 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.4192, allocations: 0 / 1.373 GB, free: 15.94 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002938/0.4195, allocations: 83.94 kB / 1.373 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00058/0.4201, allocations: 348.6 kB / 1.373 GB, free: 15.47 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003029/0.4204, allocations: 98.52 kB / 1.373 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/0.4205, allocations: 128 / 1.373 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002714/0.4207, allocations: 119.4 kB / 1.373 GB, free: 15.23 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 2.024e-06/0.4208, allocations: 0 / 1.373 GB, free: 15.23 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0006689/0.4214, allocations: 235.1 kB / 1.373 GB, free: 14.99 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.4215, allocations: 85.09 kB / 1.373 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.285e-05/0.4216, allocations: 120.1 kB / 1.374 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.4216, allocations: 33.7 kB / 1.374 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 4.923e-05/0.4217, allocations: 88.05 kB / 1.374 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.372e-05/0.4217, allocations: 27.73 kB / 1.374 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.387e-06/0.4217, allocations: 4 kB / 1.374 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.81e-05/0.4218, allocations: 318.8 kB / 1.374 GB, free: 14.29 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/0.422, allocations: 59.91 kB / 1.374 GB, free: 14.23 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001609/0.4222, allocations: 59.89 kB / 1.374 GB, free: 14.17 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001861/0.4224, allocations: 103.4 kB / 1.374 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.4224, allocations: 0 / 1.374 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004569/0.4229, allocations: 228.9 kB / 1.374 GB, free: 13.81 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.372e-05/0.4229, allocations: 59.69 kB / 1.375 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.4229, allocations: 0 / 1.375 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.423, allocations: 3.953 kB / 1.375 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.4231, allocations: 23.91 kB / 1.375 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.4231, allocations: 8 kB / 1.375 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001429/0.4233, allocations: 19.98 kB / 1.375 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.801e-05/0.4233, allocations: 4 kB / 1.375 GB, free: 13.68 MB / 0.8855 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 () * Number of clocked 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.0001077/0.4234, allocations: 147.5 kB / 1.375 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.987e-05/0.4234, allocations: 7.906 kB / 1.375 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.068e-05/0.4235, allocations: 8.719 kB / 1.375 GB, free: 13.5 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.4235, allocations: 8 kB / 1.375 GB, free: 13.5 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.4235, allocations: 3.953 kB / 1.375 GB, free: 13.49 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.4235, allocations: 0 / 1.375 GB, free: 13.49 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005893/0.4241, allocations: 448.1 kB / 1.375 GB, free: 12.99 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4241, allocations: 0 / 1.375 GB, free: 12.99 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.901e-05/0.4242, allocations: 19.98 kB / 1.375 GB, free: 12.97 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.4242, allocations: 0 / 1.375 GB, free: 12.97 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.4243, allocations: 7.938 kB / 1.375 GB, free: 12.96 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.4243, allocations: 0 / 1.375 GB, free: 12.96 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.4243, allocations: 7.984 kB / 1.375 GB, free: 12.96 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004465/0.4247, allocations: 281 kB / 1.375 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.434e-05/0.4248, allocations: 81.02 kB / 1.376 GB, free: 12.56 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.669e-05/0.4248, allocations: 8 kB / 1.376 GB, free: 12.55 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.425, allocations: 23.94 kB / 1.376 GB, free: 12.53 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.765e-05/0.4251, allocations: 27.91 kB / 1.376 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.4251, allocations: 3.984 kB / 1.376 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.303e-05/0.4252, allocations: 103.2 kB / 1.376 GB, free: 12.4 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4252, allocations: 0 / 1.376 GB, free: 12.4 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002487/0.4255, allocations: 20 kB / 1.376 GB, free: 12.38 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: 4 ($whenCondition1,reqCou.nInc,act1.T_start,act1.count) * Number of discrete states: 2 (act1.count,reqCou.nInc) * Number of clocked states: 0 () * 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.0007597/0.4262, allocations: 0.8353 MB / 1.377 GB, free: 11.51 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0004641/0.4267, allocations: 226.7 kB / 1.377 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.4267, allocations: 0 / 1.377 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000232/0.427, allocations: 123.3 kB / 1.377 GB, free: 11.13 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00022/0.4272, allocations: 16.64 kB / 1.377 GB, free: 11.12 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001458/0.4287, allocations: 0.7089 MB / 1.378 GB, free: 10.36 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002408/0.4289, allocations: 0.7004 MB / 1.378 GB, free: 9.633 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 6.909e-05/0.429, allocations: 19.95 kB / 1.378 GB, free: 9.613 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.616e-05/0.4291, allocations: 19.44 kB / 1.378 GB, free: 9.594 MB / 0.8855 GB Notification: Performance of SimCode: time 3.6e-07/0.4291, allocations: 7.938 kB / 1.378 GB, free: 9.586 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01417/0.4432, allocations: 2.114 MB / 1.38 GB, free: 7.645 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000195/0.4435, allocations: 213.7 kB / 1.381 GB, free: 7.402 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.55/1.993, allocations: 4 kB / 1.381 GB, free: 7.398 MB / 0.8855 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