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.001236/0.001236, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001069/0.001069, allocations: 190.5 kB / 16.25 MB, free: 6.629 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.237/1.237, allocations: 205.1 MB / 222.1 MB, free: 4.727 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.577/1.577, allocations: 292.3 MB / 0.5486 GB, free: 13.6 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.001291/0.001291, allocations: 74.72 kB / 0.6711 GB, free: 26.15 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1658/0.1671, allocations: 114.6 MB / 0.783 GB, free: 13.8 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002439/0.1695, allocations: 1.588 MB / 0.7845 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0006601/0.1702, allocations: 487.8 kB / 0.785 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.028e-05/0.1703, allocations: 3.938 kB / 0.785 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 8.573e-05/0.1704, allocations: 4 kB / 0.785 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.26e-05/0.1704, allocations: 11.86 kB / 0.785 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000168/0.1706, allocations: 23.97 kB / 0.785 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001266/0.1707, allocations: 87.78 kB / 0.7851 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.306e-05/0.1708, allocations: 20.16 kB / 0.7851 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.171, allocations: 39.84 kB / 0.7852 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.572e-05/0.171, allocations: 39.84 kB / 0.7852 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.978e-05/0.1711, allocations: 4 kB / 0.7852 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.511e-05/0.1711, allocations: 12 kB / 0.7852 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.56e-05/0.1711, allocations: 11.98 kB / 0.7852 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.641e-05/0.1712, allocations: 39.78 kB / 0.7853 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.1713, allocations: 71.94 kB / 0.7854 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1713, allocations: 4 kB / 0.7854 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.362e-06/0.1713, allocations: 0 / 0.7854 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.558e-06/0.1713, allocations: 0 / 0.7854 GB, free: 11.35 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.0005835/0.1719, allocations: 438.6 kB / 0.7858 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.1719, allocations: 16.03 kB / 0.7858 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.788e-05/0.172, allocations: 34.75 kB / 0.7858 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.465e-05/0.172, allocations: 16.81 kB / 0.7858 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.1722, allocations: 188.2 kB / 0.786 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.1722, allocations: 8.312 kB / 0.786 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.483e-05/0.1722, allocations: 4.375 kB / 0.786 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000261/0.1725, allocations: 101.5 kB / 0.7861 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.1725, allocations: 0 / 0.7861 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.1725, allocations: 4 kB / 0.7861 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.1725, allocations: 7.938 kB / 0.7861 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002538/0.1728, allocations: 67.94 kB / 0.7862 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004825/0.1733, allocations: 336.6 kB / 0.7865 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002578/0.1735, allocations: 86.52 kB / 0.7866 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001459/0.1737, allocations: 52.94 kB / 0.7867 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.1737, allocations: 0 / 0.7867 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002596/0.174, allocations: 107.3 kB / 0.7868 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 2.796e-06/0.174, allocations: 96 / 0.7868 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0005536/0.1746, allocations: 211.1 kB / 0.787 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.1746, allocations: 81.11 kB / 0.787 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.963e-05/0.1747, allocations: 134 kB / 0.7872 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.958e-05/0.1747, allocations: 33.7 kB / 0.7872 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.803e-05/0.1748, allocations: 104 kB / 0.7873 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.649e-05/0.1748, allocations: 7.812 kB / 0.7873 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.546e-05/0.1749, allocations: 33.7 kB / 0.7873 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.723e-05/0.175, allocations: 322.8 kB / 0.7876 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.1751, allocations: 47.95 kB / 0.7877 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/0.1753, allocations: 51.89 kB / 0.7877 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002807/0.1756, allocations: 170 kB / 0.7879 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1756, allocations: 0 / 0.7879 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003843/0.1759, allocations: 212.9 kB / 0.7881 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.261e-05/0.176, allocations: 63.41 kB / 0.7882 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.176, allocations: 0 / 0.7882 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.566e-06/0.176, allocations: 0 / 0.7882 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.1761, allocations: 23.97 kB / 0.7882 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.1762, allocations: 0 / 0.7882 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/0.1763, allocations: 19.86 kB / 0.7882 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.1763, allocations: 8 kB / 0.7882 GB, free: 8.113 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 9.089e-05/0.1764, allocations: 151.5 kB / 0.7884 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.662e-05/0.1764, allocations: 7.906 kB / 0.7884 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.609e-05/0.1765, allocations: 8.719 kB / 0.7884 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.1765, allocations: 8 kB / 0.7884 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.1765, allocations: 0 / 0.7884 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.1765, allocations: 3.938 kB / 0.7884 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004831/0.177, allocations: 428.1 kB / 0.7888 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.177, allocations: 0 / 0.7888 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.34e-05/0.1771, allocations: 19.92 kB / 0.7888 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1771, allocations: 0 / 0.7888 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.1771, allocations: 7.984 kB / 0.7888 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.1771, allocations: 3.938 kB / 0.7888 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1771, allocations: 4 kB / 0.7888 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003773/0.1775, allocations: 269 kB / 0.7891 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.379e-05/0.1775, allocations: 85.02 kB / 0.7892 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.1776, allocations: 0 / 0.7892 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.1777, allocations: 23.92 kB / 0.7892 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.04e-05/0.1778, allocations: 23.97 kB / 0.7892 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.1778, allocations: 4 kB / 0.7892 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.981e-05/0.1779, allocations: 102.2 kB / 0.7893 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1779, allocations: 0 / 0.7893 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002224/0.1781, allocations: 16 kB / 0.7893 GB, free: 6.852 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.0006255/0.1787, allocations: 0.8077 MB / 0.7901 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003924/0.1791, allocations: 226.8 kB / 0.7903 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1792, allocations: 0 / 0.7903 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001874/0.1794, allocations: 119.3 kB / 0.7904 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002535/0.1796, allocations: 16.58 kB / 0.7905 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001878/0.1815, allocations: 1.721 MB / 0.7921 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002061/0.1817, allocations: 0.6962 MB / 0.7928 GB, free: 3.09 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.368e-05/0.1818, allocations: 15.77 kB / 0.7928 GB, free: 3.074 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.796e-05/0.1818, allocations: 23.42 kB / 0.7929 GB, free: 3.055 MB / 0.6075 GB Notification: Performance of SimCode: time 2.71e-07/0.1818, allocations: 4 kB / 0.7929 GB, free: 3.051 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6317/0.8135, allocations: 2.306 MB / 0.7951 GB, free: 0.9219 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00027/0.8138, allocations: 233.1 kB / 0.7953 GB, free: 0.6641 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.566/2.379, allocations: 7.938 kB / 0.7953 GB, free: 0.6562 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)