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/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 107.4 kB / 15.22 MB, free: 0.6562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 195.3 kB / 16.14 MB, free: 6.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.134/1.134, allocations: 205.1 MB / 222 MB, free: 4.738 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.464/1.464, allocations: 292.3 MB / 0.5484 GB, free: 13.67 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 66.44 kB / 0.6709 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.1532, allocations: 114.5 MB / 0.7828 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.00214/0.1553, allocations: 1.592 MB / 0.7844 GB, free: 12.31 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0006579/0.156, allocations: 495.7 kB / 0.7848 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.52e-05/0.1561, allocations: 4 kB / 0.7848 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 7.625e-05/0.1561, allocations: 7.922 kB / 0.7848 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.783e-05/0.1562, allocations: 3.938 kB / 0.7848 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001503/0.1563, allocations: 31.91 kB / 0.7849 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.705e-05/0.1564, allocations: 75.77 kB / 0.7849 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.197e-05/0.1565, allocations: 28.17 kB / 0.785 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.525e-05/0.1566, allocations: 27.86 kB / 0.785 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.693e-05/0.1567, allocations: 43.81 kB / 0.785 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.025e-05/0.1567, allocations: 4 kB / 0.785 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.551e-05/0.1567, allocations: 4 kB / 0.785 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.61e-05/0.1568, allocations: 8 kB / 0.7851 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.77e-05/0.1568, allocations: 31.8 kB / 0.7851 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.669e-05/0.1569, allocations: 75.98 kB / 0.7852 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1569, allocations: 0 / 0.7852 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of FrontEnd: time 5.81e-07/0.157, allocations: 0 / 0.7852 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.105e-06/0.157, allocations: 0 / 0.7852 GB, free: 11.48 MB / 0.6075 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.0005778/0.1575, allocations: 450.5 kB / 0.7856 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.084e-05/0.1576, allocations: 8.031 kB / 0.7856 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.265e-05/0.1576, allocations: 38.75 kB / 0.7856 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.134e-05/0.1577, allocations: 12.78 kB / 0.7856 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001326/0.1578, allocations: 188.2 kB / 0.7858 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.1578, allocations: 8.375 kB / 0.7858 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.948e-05/0.1578, allocations: 8.359 kB / 0.7858 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003143/0.1581, allocations: 93.58 kB / 0.7859 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.1582, allocations: 0 / 0.7859 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.1582, allocations: 0 / 0.7859 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.1582, allocations: 4 kB / 0.7859 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003433/0.1586, allocations: 75.86 kB / 0.786 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004606/0.159, allocations: 332.7 kB / 0.7863 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.1593, allocations: 82.61 kB / 0.7864 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000147/0.1595, allocations: 60.88 kB / 0.7865 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.255e-05/0.1595, allocations: 4 kB / 0.7865 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.1597, allocations: 99.34 kB / 0.7866 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.1598, allocations: 0 / 0.7866 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0005336/0.1603, allocations: 207.2 kB / 0.7868 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.665e-05/0.1603, allocations: 89.03 kB / 0.7868 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.696e-05/0.1604, allocations: 130.1 kB / 0.787 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.1605, allocations: 29.7 kB / 0.787 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.256e-05/0.1605, allocations: 96.03 kB / 0.7871 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.862e-05/0.1605, allocations: 19.8 kB / 0.7871 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.912e-05/0.1606, allocations: 33.7 kB / 0.7871 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.663e-05/0.1607, allocations: 326.8 kB / 0.7874 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.1608, allocations: 47.97 kB / 0.7875 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.161, allocations: 47.95 kB / 0.7875 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002864/0.1613, allocations: 170 kB / 0.7877 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1613, allocations: 4 kB / 0.7877 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003823/0.1617, allocations: 208.9 kB / 0.7879 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.353e-05/0.1617, allocations: 59.39 kB / 0.788 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.1617, allocations: 0 / 0.788 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.794e-06/0.1617, allocations: 4 kB / 0.788 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.1618, allocations: 19.92 kB / 0.788 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.1619, allocations: 4 kB / 0.788 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000122/0.162, allocations: 23.86 kB / 0.788 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.162, allocations: 7.984 kB / 0.788 GB, free: 8.246 MB / 0.6075 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 (act1.count,$PRE.act1.count,act1.T_start,$PRE.act1.T_start,reqCou.nInc,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.372e-05/0.1621, allocations: 148.1 kB / 0.7882 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.782e-05/0.1621, allocations: 11.91 kB / 0.7882 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.771e-05/0.1621, allocations: 16.7 kB / 0.7882 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.1622, allocations: 0 / 0.7882 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1622, allocations: 4 kB / 0.7882 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.1622, allocations: 3.938 kB / 0.7882 GB, free: 8.047 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004676/0.1626, allocations: 432.1 kB / 0.7886 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1626, allocations: 0 / 0.7886 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.054e-05/0.1627, allocations: 11.98 kB / 0.7886 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-06/0.1627, allocations: 4 kB / 0.7886 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/0.1628, allocations: 0 / 0.7886 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.1628, allocations: 3.938 kB / 0.7886 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1628, allocations: 0 / 0.7886 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003616/0.1631, allocations: 269.1 kB / 0.7889 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.304e-05/0.1632, allocations: 85.02 kB / 0.789 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.1632, allocations: 3.984 kB / 0.789 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.1633, allocations: 15.92 kB / 0.789 GB, free: 7.137 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.822e-05/0.1634, allocations: 27.95 kB / 0.789 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.1634, allocations: 8 kB / 0.789 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.269e-05/0.1635, allocations: 99.27 kB / 0.7891 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.774e-06/0.1635, allocations: 96 / 0.7891 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002216/0.1637, allocations: 27.88 kB / 0.7891 GB, free: 6.977 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000584/0.1643, allocations: 0.8004 MB / 0.7899 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003613/0.1647, allocations: 226.6 kB / 0.7901 GB, free: 5.898 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1647, allocations: 0 / 0.7901 GB, free: 5.898 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001806/0.1649, allocations: 107.4 kB / 0.7902 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002461/0.1651, allocations: 34.75 kB / 0.7903 GB, free: 5.75 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001771/0.1669, allocations: 1.708 MB / 0.7919 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001799/0.1671, allocations: 0.6926 MB / 0.7926 GB, free: 3.234 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.231e-05/0.1672, allocations: 15.77 kB / 0.7926 GB, free: 3.219 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.611e-05/0.1672, allocations: 22.19 kB / 0.7927 GB, free: 3.203 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.1672, allocations: 4 kB / 0.7927 GB, free: 3.199 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.49/3.657, allocations: 2.227 MB / 0.7948 GB, free: 1.129 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003198/3.658, allocations: 228.9 kB / 0.795 GB, free: 0.8789 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.558/5.216, allocations: 0 / 0.795 GB, free: 0.8789 MB / 0.6075 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/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)