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.001191/0.001192, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 196.4 kB / 16.53 MB, free: 6.664 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.191/1.191, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.482/1.482, allocations: 292.3 MB / 0.5489 GB, free: 12.8 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.001262/0.001262, allocations: 72.34 kB / 0.6716 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1576, allocations: 114.5 MB / 0.7835 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002316/0.16, allocations: 1.515 MB / 0.785 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0006674/0.1607, allocations: 0.4928 MB / 0.7854 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.096e-05/0.1607, allocations: 0 / 0.7854 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 7.538e-05/0.1608, allocations: 7.875 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.132e-05/0.1608, allocations: 15.86 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001589/0.161, allocations: 31.95 kB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001182/0.1611, allocations: 83.77 kB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.302e-05/0.1612, allocations: 16.19 kB / 0.7856 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.1613, allocations: 51.77 kB / 0.7856 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.573e-05/0.1614, allocations: 27.91 kB / 0.7857 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.202e-05/0.1614, allocations: 11.94 kB / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.602e-05/0.1615, allocations: 8 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.285e-05/0.1615, allocations: 7.984 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.326e-05/0.1616, allocations: 39.8 kB / 0.7857 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001075/0.1617, allocations: 79.98 kB / 0.7858 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.1617, allocations: 0 / 0.7858 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.303e-06/0.1617, allocations: 3.938 kB / 0.7858 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.988e-06/0.1617, allocations: 0 / 0.7858 GB, free: 10.95 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.0005555/0.1623, allocations: 442.6 kB / 0.7862 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.938e-05/0.1623, allocations: 8.031 kB / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.987e-05/0.1623, allocations: 38.73 kB / 0.7863 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.248e-05/0.1624, allocations: 12.84 kB / 0.7863 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000135/0.1625, allocations: 184.2 kB / 0.7865 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.1625, allocations: 4.312 kB / 0.7865 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.772e-05/0.1625, allocations: 12.38 kB / 0.7865 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002462/0.1628, allocations: 93.56 kB / 0.7866 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.1628, allocations: 0 / 0.7866 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.1628, allocations: 0 / 0.7866 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.1628, allocations: 4 kB / 0.7866 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002627/0.1631, allocations: 79.86 kB / 0.7867 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004562/0.1636, allocations: 336.6 kB / 0.787 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002662/0.1638, allocations: 86.52 kB / 0.7871 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001479/0.164, allocations: 48.94 kB / 0.7871 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.33e-05/0.164, allocations: 0 / 0.7871 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002503/0.1643, allocations: 107.4 kB / 0.7872 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.213e-06/0.1643, allocations: 0 / 0.7872 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0005338/0.1648, allocations: 211.2 kB / 0.7874 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.1649, allocations: 89.09 kB / 0.7875 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.825e-05/0.165, allocations: 134 kB / 0.7876 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.165, allocations: 25.7 kB / 0.7876 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.471e-05/0.165, allocations: 100 kB / 0.7877 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.1651, allocations: 19.81 kB / 0.7878 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/0.1651, allocations: 29.64 kB / 0.7878 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.189e-05/0.1652, allocations: 322.8 kB / 0.7881 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.1654, allocations: 47.95 kB / 0.7881 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.1655, allocations: 51.95 kB / 0.7882 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002938/0.1658, allocations: 166 kB / 0.7883 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1658, allocations: 0 / 0.7883 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003808/0.1662, allocations: 212.9 kB / 0.7886 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.55e-05/0.1663, allocations: 63.39 kB / 0.7886 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.1663, allocations: 0 / 0.7886 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.033e-05/0.1663, allocations: 4 kB / 0.7886 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.1664, allocations: 11.98 kB / 0.7886 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.938e-06/0.1664, allocations: 4 kB / 0.7886 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/0.1665, allocations: 23.86 kB / 0.7887 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.1666, allocations: 8 kB / 0.7887 GB, free: 7.727 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.66e-05/0.1667, allocations: 148.1 kB / 0.7888 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.678e-05/0.1667, allocations: 11.91 kB / 0.7888 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.53e-05/0.1667, allocations: 8.719 kB / 0.7888 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1667, allocations: 0 / 0.7888 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.1667, allocations: 0 / 0.7888 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.1667, allocations: 11.94 kB / 0.7888 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00048/0.1672, allocations: 424.2 kB / 0.7892 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1672, allocations: 4 kB / 0.7892 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.465e-05/0.1673, allocations: 19.91 kB / 0.7893 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.1673, allocations: 7.938 kB / 0.7893 GB, free: 7.023 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.1673, allocations: 4 kB / 0.7893 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.1674, allocations: 3.938 kB / 0.7893 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1674, allocations: 4 kB / 0.7893 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003722/0.1677, allocations: 261.1 kB / 0.7895 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.323e-05/0.1678, allocations: 85.02 kB / 0.7896 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.953e-05/0.1678, allocations: 0 / 0.7896 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.1679, allocations: 23.91 kB / 0.7896 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.586e-05/0.168, allocations: 23.98 kB / 0.7897 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.714e-06/0.168, allocations: 96 / 0.7897 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.274e-05/0.1681, allocations: 109.3 kB / 0.7898 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1681, allocations: 4 kB / 0.7898 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002152/0.1683, allocations: 16 kB / 0.7898 GB, free: 6.461 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.0005953/0.1689, allocations: 0.8116 MB / 0.7906 GB, free: 5.617 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003875/0.1693, allocations: 222.7 kB / 0.7908 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1693, allocations: 0 / 0.7908 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001877/0.1695, allocations: 107.4 kB / 0.7909 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002414/0.1698, allocations: 23.88 kB / 0.7909 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.1716, allocations: 1.702 MB / 0.7926 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001879/0.1718, allocations: 0.6947 MB / 0.7933 GB, free: 2.727 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.949e-05/0.1719, allocations: 19.7 kB / 0.7933 GB, free: 2.707 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.469e-05/0.1719, allocations: 27.42 kB / 0.7933 GB, free: 2.684 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.1719, allocations: 4 kB / 0.7933 GB, free: 2.68 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4139/0.5858, allocations: 2.495 MB / 0.7957 GB, free: 324 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.617/8.203, allocations: 5.562 kB / 0.7957 GB, free: 320 kB / 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)