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.001043/0.001043, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007869/0.00787, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.25/1.25, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.596/1.596, allocations: 292.7 MB / 0.5502 GB, free: 14.44 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.0005107/0.0005107, allocations: 18.25 kB / 0.6744 GB, free: 25.8 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1718/0.1723, allocations: 116.3 MB / 0.788 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.00149/0.1739, allocations: 1.25 MB / 0.7892 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007249/0.1746, allocations: 487.8 kB / 0.7897 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.696e-05/0.1747, allocations: 0 / 0.7897 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 7.984e-05/0.1747, allocations: 3.938 kB / 0.7897 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.349e-05/0.1748, allocations: 15.91 kB / 0.7897 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001673/0.175, allocations: 35.92 kB / 0.7897 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.807e-05/0.1751, allocations: 75.77 kB / 0.7898 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.545e-05/0.1752, allocations: 12.19 kB / 0.7898 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000107/0.1753, allocations: 39.77 kB / 0.7899 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.724e-05/0.1754, allocations: 31.91 kB / 0.7899 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.106e-05/0.1754, allocations: 8 kB / 0.7899 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.209e-05/0.1754, allocations: 3.938 kB / 0.7899 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.499e-05/0.1755, allocations: 7.984 kB / 0.7899 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.814e-05/0.1755, allocations: 57.5 kB / 0.79 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001018/0.1756, allocations: 71.97 kB / 0.79 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1757, allocations: 0 / 0.79 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.223e-06/0.1757, allocations: 0 / 0.79 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.537e-06/0.1757, allocations: 0 / 0.79 GB, free: 9.355 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.0005661/0.1762, allocations: 438.7 kB / 0.7905 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.1763, allocations: 8.031 kB / 0.7905 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.602e-05/0.1763, allocations: 34.73 kB / 0.7905 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.399e-05/0.1764, allocations: 12.84 kB / 0.7905 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001482/0.1765, allocations: 192.1 kB / 0.7907 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.036e-05/0.1765, allocations: 4.375 kB / 0.7907 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.786e-05/0.1766, allocations: 4.375 kB / 0.7907 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002802/0.1768, allocations: 105.6 kB / 0.7908 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.1769, allocations: 0 / 0.7908 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.1769, allocations: 8 kB / 0.7908 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.1769, allocations: 0 / 0.7908 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002965/0.1772, allocations: 95.86 kB / 0.7909 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005034/0.1777, allocations: 340.6 kB / 0.7912 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002933/0.178, allocations: 90.52 kB / 0.7913 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001718/0.1782, allocations: 68.97 kB / 0.7914 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/0.1782, allocations: 4 kB / 0.7914 GB, free: 7.805 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002771/0.1785, allocations: 107.3 kB / 0.7915 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.1785, allocations: 0 / 0.7915 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.000626/0.1791, allocations: 235.2 kB / 0.7917 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/0.1792, allocations: 81.11 kB / 0.7918 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.935e-05/0.1793, allocations: 140.9 kB / 0.7919 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/0.1793, allocations: 29.7 kB / 0.7919 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.046e-05/0.1794, allocations: 100 kB / 0.792 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.1794, allocations: 15.75 kB / 0.7921 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.258e-05/0.1794, allocations: 21.7 kB / 0.7921 GB, free: 7.023 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.454e-05/0.1795, allocations: 322.8 kB / 0.7924 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001737/0.1797, allocations: 55.95 kB / 0.7924 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.1799, allocations: 55.95 kB / 0.7925 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003208/0.1802, allocations: 181.9 kB / 0.7927 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1802, allocations: 0 / 0.7927 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004323/0.1807, allocations: 228.9 kB / 0.7929 GB, free: 6.148 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.486e-05/0.1807, allocations: 59.41 kB / 0.7929 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1807, allocations: 3.984 kB / 0.7929 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.138e-06/0.1807, allocations: 0 / 0.7929 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.1809, allocations: 27.98 kB / 0.793 GB, free: 6.047 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.1809, allocations: 0 / 0.793 GB, free: 6.047 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.181, allocations: 31.7 kB / 0.793 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.344e-05/0.181, allocations: 4 kB / 0.793 GB, free: 6.012 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.871e-05/0.1811, allocations: 151.5 kB / 0.7931 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.084e-05/0.1812, allocations: 11.91 kB / 0.7932 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.019e-05/0.1812, allocations: 20.7 kB / 0.7932 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.1812, allocations: 0 / 0.7932 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.1812, allocations: 0 / 0.7932 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1812, allocations: 3.938 kB / 0.7932 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005409/0.1818, allocations: 444.5 kB / 0.7936 GB, free: 5.312 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.1818, allocations: 0 / 0.7936 GB, free: 5.312 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.639e-05/0.1819, allocations: 27.91 kB / 0.7936 GB, free: 5.285 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.155e-06/0.1819, allocations: 3.938 kB / 0.7936 GB, free: 5.281 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.1819, allocations: 7.938 kB / 0.7936 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.1819, allocations: 3.938 kB / 0.7936 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1819, allocations: 0 / 0.7936 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004261/0.1824, allocations: 285.5 kB / 0.7939 GB, free: 4.969 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.593e-05/0.1824, allocations: 85.02 kB / 0.794 GB, free: 4.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.1824, allocations: 4 kB / 0.794 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.1826, allocations: 23.92 kB / 0.794 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.651e-05/0.1827, allocations: 19.97 kB / 0.794 GB, free: 4.82 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.1827, allocations: 8 kB / 0.7941 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.377e-05/0.1828, allocations: 99.25 kB / 0.7941 GB, free: 4.715 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1828, allocations: 0 / 0.7941 GB, free: 4.715 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002304/0.183, allocations: 20 kB / 0.7942 GB, free: 4.695 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.0007057/0.1837, allocations: 0.8261 MB / 0.795 GB, free: 3.84 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004262/0.1842, allocations: 234.7 kB / 0.7952 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1842, allocations: 8 kB / 0.7952 GB, free: 3.578 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002093/0.1844, allocations: 111.4 kB / 0.7953 GB, free: 3.457 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.1847, allocations: 19.88 kB / 0.7953 GB, free: 3.438 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002091/0.1868, allocations: 1.755 MB / 0.797 GB, free: 1.586 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002181/0.187, allocations: 0.7004 MB / 0.7977 GB, free: 0.8594 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.474e-05/0.1871, allocations: 11.77 kB / 0.7977 GB, free: 0.8477 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.012e-05/0.1871, allocations: 20.06 kB / 0.7978 GB, free: 0.832 MB / 0.6075 GB Notification: Performance of SimCode: time 3.01e-07/0.1871, allocations: 0 / 0.7978 GB, free: 0.832 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.283/1.47, allocations: 2.171 MB / 0.7999 GB, free: 14.85 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000201/1.471, allocations: 228.3 kB / 0.8001 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.973/3.443, allocations: 3.094 kB / 0.8001 GB, free: 14.59 MB / 0.6231 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)