Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.33/2.33, allocations: 251.1 MB / 266.1 MB, free: 11.64 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001578/0.001578, allocations: 182.3 kB / 325.6 MB, free: 2.855 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.471/2.471, allocations: 205.4 MB / 0.5766 GB, free: 20.75 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001161/0.001161, allocations: 92.17 kB / 0.6811 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000474/0.000474, allocations: 11 kB / 0.7951 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2244, allocations: 106.3 MB / 0.8989 GB, free: 65.49 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001959/0.2264, allocations: 1.215 MB / 0.9001 GB, free: 64.26 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009003/0.2274, allocations: 480.8 kB / 0.9005 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.42e-05/0.2274, allocations: 0 / 0.9005 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 9.23e-05/0.2275, allocations: 7.922 kB / 0.9005 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.091e-05/0.2276, allocations: 11.92 kB / 0.9006 GB, free: 63.77 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002025/0.2278, allocations: 27.91 kB / 0.9006 GB, free: 63.74 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001074/0.228, allocations: 55.92 kB / 0.9006 GB, free: 63.68 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.2281, allocations: 4.188 kB / 0.9006 GB, free: 63.68 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.2282, allocations: 39.89 kB / 0.9007 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 8.522e-05/0.2283, allocations: 27.84 kB / 0.9007 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.431e-05/0.2284, allocations: 4 kB / 0.9007 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.036e-05/0.2284, allocations: 4 kB / 0.9007 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.471e-05/0.2284, allocations: 15.92 kB / 0.9007 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.969e-05/0.2285, allocations: 37.7 kB / 0.9008 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.873e-05/0.2286, allocations: 43.91 kB / 0.9008 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.2286, allocations: 0 / 0.9008 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.633e-06/0.2286, allocations: 0 / 0.9008 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.581e-06/0.2286, allocations: 0 / 0.9008 GB, free: 63.5 MB / 0.6042 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.0007249/0.2294, allocations: 446.7 kB / 0.9012 GB, free: 63.01 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.2294, allocations: 15.97 kB / 0.9012 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.113e-05/0.2295, allocations: 11.89 kB / 0.9013 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.2297, allocations: 183 kB / 0.9014 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.2297, allocations: 0 / 0.9014 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.824e-05/0.2298, allocations: 4 kB / 0.9014 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003928/0.2302, allocations: 101.6 kB / 0.9015 GB, free: 62.65 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.2302, allocations: 7.938 kB / 0.9015 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/0.2302, allocations: 4 kB / 0.9015 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.2302, allocations: 3.938 kB / 0.9016 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004661/0.2307, allocations: 83.94 kB / 0.9016 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006865/0.2314, allocations: 348.6 kB / 0.902 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004554/0.2319, allocations: 98.55 kB / 0.9021 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.2319, allocations: 0 / 0.9021 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003894/0.2323, allocations: 111.5 kB / 0.9022 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 2.174e-06/0.2323, allocations: 0 / 0.9022 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0009447/0.2333, allocations: 243.1 kB / 0.9024 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.94e-05/0.2334, allocations: 77.11 kB / 0.9025 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001382/0.2335, allocations: 131.2 kB / 0.9026 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.617e-05/0.2336, allocations: 29.7 kB / 0.9026 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 8.471e-05/0.2337, allocations: 100 kB / 0.9027 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.463e-05/0.2337, allocations: 19.75 kB / 0.9027 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.443e-05/0.2337, allocations: 4 kB / 0.9027 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.864e-05/0.2338, allocations: 318.8 kB / 0.903 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003317/0.2342, allocations: 59.95 kB / 0.9031 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002832/0.2345, allocations: 51.97 kB / 0.9032 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002729/0.2348, allocations: 103.4 kB / 0.9032 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2348, allocations: 0 / 0.9032 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0006701/0.2355, allocations: 232.9 kB / 0.9035 GB, free: 60.51 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.648e-05/0.2355, allocations: 59.41 kB / 0.9035 GB, free: 60.44 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.2355, allocations: 4.547 kB / 0.9035 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.2356, allocations: 0 / 0.9035 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.2358, allocations: 19.98 kB / 0.9036 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.2358, allocations: 11.88 kB / 0.9036 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003475/0.2362, allocations: 23.97 kB / 0.9036 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.184e-05/0.2362, allocations: 7.984 kB / 0.9036 GB, free: 60.37 MB / 0.6042 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.000232/0.2365, allocations: 143.5 kB / 0.9037 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.698e-05/0.2365, allocations: 11.84 kB / 0.9037 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.884e-05/0.2366, allocations: 12.7 kB / 0.9038 GB, free: 60.19 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.2367, allocations: 11.95 kB / 0.9038 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.2367, allocations: 0 / 0.9038 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.2367, allocations: 0 / 0.9038 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.2379, allocations: 452.1 kB / 0.9042 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.2379, allocations: 0 / 0.9042 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001602/0.2381, allocations: 23.92 kB / 0.9042 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.604e-06/0.2381, allocations: 3.953 kB / 0.9042 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.894e-05/0.2381, allocations: 4 kB / 0.9042 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.2381, allocations: 0 / 0.9042 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.2381, allocations: 0 / 0.9042 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006433/0.2388, allocations: 281.1 kB / 0.9045 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.832e-05/0.2389, allocations: 85.05 kB / 0.9046 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.544e-05/0.2389, allocations: 11.94 kB / 0.9046 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002481/0.2392, allocations: 19.98 kB / 0.9046 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/0.2393, allocations: 23.97 kB / 0.9046 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.2393, allocations: 0 / 0.9046 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.991e-05/0.2394, allocations: 105.7 kB / 0.9047 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of sort global known variables: time 6.41e-07/0.2394, allocations: 0 / 0.9047 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003354/0.2398, allocations: 19.91 kB / 0.9047 GB, free: 59.07 MB / 0.6042 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.0001239/0.2399, allocations: 111.2 kB / 0.9049 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0006616/0.2406, allocations: 234.7 kB / 0.9051 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.2406, allocations: 0 / 0.9051 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003132/0.2409, allocations: 115.3 kB / 0.9052 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.2412, allocations: 19.92 kB / 0.9052 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000687/0.2419, allocations: 225 kB / 0.9054 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001693/0.2421, allocations: 0.7004 MB / 0.9061 GB, free: 57.58 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 9.537e-05/0.2422, allocations: 7.984 kB / 0.9061 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.988e-05/0.2423, allocations: 11.44 kB / 0.9061 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of SimCode: time 1.022e-06/0.2423, allocations: 4 kB / 0.9061 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of Templates: time 0.004526/0.2468, allocations: 1.093 MB / 0.9072 GB, free: 56.48 MB / 0.6042 GB