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.524/2.524, allocations: 393.5 MB / 408.4 MB, free: 11.1 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.001171/0.001171, allocations: 172 kB / 0.4901 GB, free: 2.258 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.96/1.96, allocations: 223.1 MB / 0.7992 GB, free: 14.61 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.001241/0.00124, allocations: 96.31 kB / 0.9396 GB, free: 1.844 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004514/0.0004515, allocations: 9.438 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3798/0.3802, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2315/0.6118, allocations: 151.5 MB / 1.377 GB, free: 1.875 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.6122, allocations: 91.94 kB / 1.377 GB, free: 1.785 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.005395/0.6176, allocations: 1.571 MB / 1.379 GB, free: 216 kB / 0.8698 GB Notification: Performance of FrontEnd: time 3.266e-06/0.6176, allocations: 0 / 1.379 GB, free: 216 kB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.597e-05/0.6176, allocations: 4 kB / 1.379 GB, free: 212 kB / 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.0007194/0.6184, allocations: 454.6 kB / 1.379 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.363e-05/0.6184, allocations: 11.97 kB / 1.379 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.136e-05/0.6185, allocations: 30.56 kB / 1.379 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.452e-05/0.6185, allocations: 15.86 kB / 1.379 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002339/0.6188, allocations: 183 kB / 1.38 GB, free: 15.42 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.6188, allocations: 4 kB / 1.38 GB, free: 15.41 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.361e-05/0.6188, allocations: 8 kB / 1.38 GB, free: 15.41 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003101/0.6191, allocations: 101.6 kB / 1.38 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.6192, allocations: 0 / 1.38 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.6192, allocations: 8 kB / 1.38 GB, free: 15.29 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.6192, allocations: 0 / 1.38 GB, free: 15.29 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003164/0.6195, allocations: 87.94 kB / 1.38 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006455/0.6202, allocations: 344.6 kB / 1.38 GB, free: 14.82 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003244/0.6205, allocations: 100.4 kB / 1.38 GB, free: 14.71 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/0.6206, allocations: 4 kB / 1.38 GB, free: 14.71 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003056/0.6209, allocations: 107.5 kB / 1.38 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 8.977e-06/0.6209, allocations: 4 kB / 1.38 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0007/0.6216, allocations: 243.1 kB / 1.381 GB, free: 14.34 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.541e-05/0.6217, allocations: 81.11 kB / 1.381 GB, free: 14.24 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.6218, allocations: 125.2 kB / 1.381 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.6219, allocations: 29.7 kB / 1.381 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.213e-05/0.6219, allocations: 92.14 kB / 1.381 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.631e-05/0.622, allocations: 23.7 kB / 1.381 GB, free: 13.96 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-06/0.622, allocations: 0 / 1.381 GB, free: 13.96 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001404/0.6221, allocations: 322.8 kB / 1.381 GB, free: 13.63 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001706/0.6223, allocations: 51.97 kB / 1.381 GB, free: 13.58 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001576/0.6225, allocations: 59.95 kB / 1.381 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.6227, allocations: 107.3 kB / 1.381 GB, free: 13.41 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.6227, allocations: 0 / 1.381 GB, free: 13.41 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004411/0.6231, allocations: 220.9 kB / 1.382 GB, free: 13.17 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.989e-05/0.6232, allocations: 59.41 kB / 1.382 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.6232, allocations: 0 / 1.382 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.6232, allocations: 3.953 kB / 1.382 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.6234, allocations: 31.91 kB / 1.382 GB, free: 13.07 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.6234, allocations: 0 / 1.382 GB, free: 13.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001694/0.6236, allocations: 27.92 kB / 1.382 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.6236, allocations: 4 kB / 1.382 GB, free: 13.04 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.0001227/0.6237, allocations: 144.6 kB / 1.382 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.269e-05/0.6238, allocations: 15.89 kB / 1.382 GB, free: 12.86 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.15e-05/0.6238, allocations: 12.72 kB / 1.382 GB, free: 12.85 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.6238, allocations: 7.938 kB / 1.382 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.6238, allocations: 3.953 kB / 1.382 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.6238, allocations: 0 / 1.382 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005956/0.6244, allocations: 448.1 kB / 1.382 GB, free: 12.34 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.6244, allocations: 3.938 kB / 1.382 GB, free: 12.33 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.242e-05/0.6245, allocations: 15.98 kB / 1.382 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.6246, allocations: 4 kB / 1.382 GB, free: 12.31 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.203e-05/0.6246, allocations: 15.92 kB / 1.382 GB, free: 12.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.6246, allocations: 0 / 1.382 GB, free: 12.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-06/0.6246, allocations: 4 kB / 1.382 GB, free: 12.29 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004495/0.6251, allocations: 273.5 kB / 1.383 GB, free: 12 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.356e-05/0.6251, allocations: 89 kB / 1.383 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.901e-05/0.6252, allocations: 4 kB / 1.383 GB, free: 11.89 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.6253, allocations: 23.94 kB / 1.383 GB, free: 11.87 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.6254, allocations: 23.91 kB / 1.383 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.6255, allocations: 7.984 kB / 1.383 GB, free: 11.84 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.607e-05/0.6256, allocations: 101.7 kB / 1.383 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.1e-07/0.6256, allocations: 0 / 1.383 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002449/0.6258, allocations: 20 kB / 1.383 GB, free: 11.72 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.0007998/0.6266, allocations: 0.8195 MB / 1.384 GB, free: 10.87 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.00048/0.6271, allocations: 238.7 kB / 1.384 GB, free: 10.61 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.6271, allocations: 4 kB / 1.384 GB, free: 10.61 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002205/0.6274, allocations: 115.4 kB / 1.384 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002289/0.6276, allocations: 8.641 kB / 1.384 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.6291, allocations: 0.7362 MB / 1.385 GB, free: 9.688 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003412/0.6295, allocations: 0.7025 MB / 1.385 GB, free: 8.961 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.25e-05/0.6296, allocations: 15.62 kB / 1.385 GB, free: 8.945 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.653e-05/0.6296, allocations: 23.44 kB / 1.385 GB, free: 8.922 MB / 0.8855 GB Notification: Performance of SimCode: time 8.52e-07/0.6296, allocations: 0 / 1.385 GB, free: 8.922 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01907/0.6487, allocations: 2.13 MB / 1.388 GB, free: 6.977 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002241/0.649, allocations: 213.9 kB / 1.388 GB, free: 6.738 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.846/2.495, allocations: 0 / 1.388 GB, free: 6.738 MB / 0.8855 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