Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.973/1.973, allocations: 292.6 MB / 307.5 MB, free: 5.188 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001493/0.001493, allocations: 184 kB / 377.1 MB, free: 1.512 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.091/2.091, allocations: 205.4 MB / 0.6366 GB, free: 8.609 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009285/0.0009287, allocations: 93.28 kB / 0.7509 GB, free: 63.09 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005695/0.0005696, allocations: 8 kB / 0.8749 GB, free: 11.08 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3604/0.361, allocations: 116.3 MB / 0.9884 GB, free: 6.617 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.047/1.408, allocations: 140.5 MB / 1.126 GB, free: 34.41 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003682/1.409, allocations: 95.09 kB / 1.126 GB, free: 34.33 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.005461/1.414, allocations: 1.521 MB / 1.127 GB, free: 33.17 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.788e-06/1.414, allocations: 192 / 1.127 GB, free: 33.17 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.103e-05/1.414, allocations: 0 / 1.127 GB, free: 33.17 MB / 0.7292 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.0007399/1.415, allocations: 458 kB / 1.128 GB, free: 32.68 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 6.539e-05/1.415, allocations: 12.03 kB / 1.128 GB, free: 32.66 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.994e-05/1.415, allocations: 34.17 kB / 1.128 GB, free: 32.62 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.615e-05/1.415, allocations: 9.969 kB / 1.128 GB, free: 32.62 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002581/1.416, allocations: 189.3 kB / 1.128 GB, free: 32.4 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.218e-05/1.416, allocations: 8.938 kB / 1.128 GB, free: 32.39 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.346e-05/1.416, allocations: 7.438 kB / 1.128 GB, free: 32.39 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003386/1.416, allocations: 102.7 kB / 1.128 GB, free: 32.3 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/1.416, allocations: 0 / 1.128 GB, free: 32.3 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.181e-05/1.416, allocations: 8.031 kB / 1.128 GB, free: 32.29 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/1.416, allocations: 4 kB / 1.128 GB, free: 32.29 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003001/1.416, allocations: 84.12 kB / 1.128 GB, free: 32.22 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007385/1.417, allocations: 337.4 kB / 1.128 GB, free: 31.88 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003411/1.418, allocations: 99.97 kB / 1.129 GB, free: 31.79 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/1.418, allocations: 0 / 1.129 GB, free: 31.79 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002997/1.418, allocations: 112.3 kB / 1.129 GB, free: 31.69 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=7): time 3.987e-06/1.418, allocations: 0.7031 kB / 1.129 GB, free: 31.69 MB / 0.7292 GB Notification: Performance of matching and sorting (n=7): time 0.0007281/1.419, allocations: 234.6 kB / 1.129 GB, free: 31.48 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/1.419, allocations: 89.06 kB / 1.129 GB, free: 31.38 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/1.419, allocations: 122.5 kB / 1.129 GB, free: 31.25 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/1.419, allocations: 33.7 kB / 1.129 GB, free: 31.21 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 7.781e-05/1.419, allocations: 100.2 kB / 1.129 GB, free: 31.12 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.466e-05/1.419, allocations: 19.72 kB / 1.129 GB, free: 31.1 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.686e-06/1.419, allocations: 0 / 1.129 GB, free: 31.1 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001423/1.419, allocations: 321 kB / 1.13 GB, free: 30.78 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001786/1.419, allocations: 58.41 kB / 1.13 GB, free: 30.73 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/1.42, allocations: 59.06 kB / 1.13 GB, free: 30.69 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001823/1.42, allocations: 102.8 kB / 1.13 GB, free: 30.59 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/1.42, allocations: 0 / 1.13 GB, free: 30.59 MB / 0.7292 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004464/1.42, allocations: 226.9 kB / 1.13 GB, free: 30.37 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.403e-05/1.42, allocations: 63.02 kB / 1.13 GB, free: 30.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/1.42, allocations: 0.875 kB / 1.13 GB, free: 30.3 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.716e-05/1.42, allocations: 3.938 kB / 1.13 GB, free: 30.29 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/1.421, allocations: 23.47 kB / 1.13 GB, free: 30.27 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.375e-06/1.421, allocations: 0 / 1.13 GB, free: 30.27 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/1.421, allocations: 26.94 kB / 1.13 GB, free: 30.25 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/1.421, allocations: 4.562 kB / 1.13 GB, free: 30.25 MB / 0.7292 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.000112/1.421, allocations: 147 kB / 1.13 GB, free: 30.09 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.221e-05/1.421, allocations: 11.91 kB / 1.13 GB, free: 30.08 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.444e-05/1.421, allocations: 13.28 kB / 1.13 GB, free: 30.07 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/1.421, allocations: 1 kB / 1.13 GB, free: 30.07 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/1.421, allocations: 3.938 kB / 1.13 GB, free: 30.07 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/1.421, allocations: 1.031 kB / 1.13 GB, free: 30.07 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005943/1.422, allocations: 457.9 kB / 1.131 GB, free: 29.6 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/1.422, allocations: 0 / 1.131 GB, free: 29.6 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.379e-05/1.422, allocations: 16.08 kB / 1.131 GB, free: 29.59 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/1.422, allocations: 0 / 1.131 GB, free: 29.59 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/1.422, allocations: 8.5 kB / 1.131 GB, free: 29.58 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/1.422, allocations: 0 / 1.131 GB, free: 29.58 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/1.422, allocations: 7.469 kB / 1.131 GB, free: 29.58 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004253/1.422, allocations: 274 kB / 1.131 GB, free: 29.31 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.772e-05/1.422, allocations: 89.52 kB / 1.131 GB, free: 29.2 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.724e-05/1.422, allocations: 7.594 kB / 1.131 GB, free: 29.2 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/1.422, allocations: 24.5 kB / 1.131 GB, free: 29.18 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/1.423, allocations: 24.52 kB / 1.131 GB, free: 29.16 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/1.423, allocations: 8.109 kB / 1.131 GB, free: 29.16 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 5.582e-05/1.423, allocations: 102.9 kB / 1.131 GB, free: 29.06 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.8e-07/1.423, allocations: 0 / 1.131 GB, free: 29.06 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002486/1.423, allocations: 20 kB / 1.131 GB, free: 29.04 MB / 0.7292 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.000626/1.424, allocations: 0.8176 MB / 1.132 GB, free: 28.22 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.000428/1.424, allocations: 240.1 kB / 1.132 GB, free: 27.98 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/1.424, allocations: 0 / 1.132 GB, free: 27.98 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001858/1.424, allocations: 118 kB / 1.132 GB, free: 27.87 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002061/1.424, allocations: 4 kB / 1.132 GB, free: 27.86 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/1.426, allocations: 0.7315 MB / 1.133 GB, free: 27.17 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001416/1.426, allocations: 0.6951 MB / 1.134 GB, free: 26.46 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 5.68e-05/1.426, allocations: 15.47 kB / 1.134 GB, free: 26.45 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.144e-05/1.426, allocations: 26.95 kB / 1.134 GB, free: 26.42 MB / 0.7292 GB Notification: Performance of SimCode: time 2.504e-06/1.426, allocations: 0 / 1.134 GB, free: 26.42 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01507/1.441, allocations: 2.128 MB / 1.136 GB, free: 25.28 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001721/1.441, allocations: 204.4 kB / 1.136 GB, free: 25.04 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.88/3.321, allocations: 0.75 kB / 1.136 GB, free: 25.04 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)