Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.386/1.386, allocations: 252 MB / 267.6 MB, free: 10.94 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001733/0.001734, allocations: 181 kB / 327.3 MB, free: 2.199 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.984/1.984, allocations: 205.4 MB / 0.5783 GB, free: 20.23 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008206/0.0008204, allocations: 90.3 kB / 0.6829 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003728/0.0003728, allocations: 10.19 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2426, allocations: 106.3 MB / 0.9008 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001545/0.2442, allocations: 1.223 MB / 0.902 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006855/0.2449, allocations: 483.7 kB / 0.9025 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.524e-05/0.245, allocations: 0 / 0.9025 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 8.099e-05/0.2451, allocations: 3.938 kB / 0.9025 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.104e-05/0.2452, allocations: 15.91 kB / 0.9025 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001843/0.2454, allocations: 23.91 kB / 0.9025 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.162e-05/0.2455, allocations: 67.78 kB / 0.9026 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.983e-05/0.2456, allocations: 20.17 kB / 0.9026 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.2457, allocations: 27.91 kB / 0.9026 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.117e-05/0.2457, allocations: 39.83 kB / 0.9027 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.568e-05/0.2458, allocations: 0 / 0.9027 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.558e-05/0.2458, allocations: 4 kB / 0.9027 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.874e-05/0.2458, allocations: 15.88 kB / 0.9027 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.928e-05/0.2459, allocations: 29.7 kB / 0.9027 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.816e-05/0.246, allocations: 51.89 kB / 0.9028 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.246, allocations: 0 / 0.9028 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.854e-06/0.246, allocations: 0 / 0.9028 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.246, allocations: 4 kB / 0.9028 GB, free: 61.88 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.0005398/0.2465, allocations: 442.7 kB / 0.9032 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.2466, allocations: 8.031 kB / 0.9032 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.232e-05/0.2466, allocations: 7.906 kB / 0.9032 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.2468, allocations: 190.9 kB / 0.9034 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.2468, allocations: 8 kB / 0.9034 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.012e-05/0.2468, allocations: 8 kB / 0.9034 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002643/0.2471, allocations: 93.64 kB / 0.9035 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.2471, allocations: 0 / 0.9035 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.2471, allocations: 7.984 kB / 0.9035 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.2472, allocations: 4 kB / 0.9035 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002727/0.2474, allocations: 91.81 kB / 0.9036 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004808/0.2479, allocations: 344.7 kB / 0.9039 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002848/0.2482, allocations: 102.5 kB / 0.904 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.2484, allocations: 52.95 kB / 0.9041 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.2484, allocations: 4 kB / 0.9041 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003006/0.2487, allocations: 107.3 kB / 0.9042 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.2487, allocations: 0 / 0.9042 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0005883/0.2493, allocations: 243.1 kB / 0.9044 GB, free: 60 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/0.2494, allocations: 81.09 kB / 0.9045 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.559e-05/0.2494, allocations: 131.4 kB / 0.9046 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.2495, allocations: 29.7 kB / 0.9047 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.411e-05/0.2495, allocations: 96.05 kB / 0.9047 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.784e-05/0.2495, allocations: 27.72 kB / 0.9048 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.632e-06/0.2496, allocations: 4 kB / 0.9048 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.844e-05/0.2496, allocations: 314.8 kB / 0.9051 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.2498, allocations: 59.89 kB / 0.9051 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001435/0.2499, allocations: 59.95 kB / 0.9052 GB, free: 59.17 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001544/0.2501, allocations: 99.38 kB / 0.9053 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2501, allocations: 0 / 0.9053 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003821/0.2505, allocations: 232.9 kB / 0.9055 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.019e-05/0.2505, allocations: 59.41 kB / 0.9056 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.2505, allocations: 0 / 0.9056 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.2506, allocations: 3.953 kB / 0.9056 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.2507, allocations: 24.27 kB / 0.9056 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.2507, allocations: 7.922 kB / 0.9056 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.2508, allocations: 19.89 kB / 0.9056 GB, free: 58.69 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.644e-05/0.2509, allocations: 11.94 kB / 0.9056 GB, free: 58.68 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 8.809e-05/0.251, allocations: 143.5 kB / 0.9058 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.501e-05/0.251, allocations: 7.984 kB / 0.9058 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.656e-05/0.251, allocations: 12.72 kB / 0.9058 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.251, allocations: 7.953 kB / 0.9058 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.251, allocations: 0 / 0.9058 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.251, allocations: 0 / 0.9058 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004621/0.2515, allocations: 452 kB / 0.9062 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2515, allocations: 3.938 kB / 0.9062 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.287e-05/0.2516, allocations: 15.98 kB / 0.9062 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2516, allocations: 0 / 0.9062 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.2516, allocations: 11.95 kB / 0.9063 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.2516, allocations: 7.984 kB / 0.9063 GB, free: 57.95 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2517, allocations: 0 / 0.9063 GB, free: 57.95 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003591/0.252, allocations: 277.5 kB / 0.9065 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.834e-05/0.2521, allocations: 92.98 kB / 0.9066 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.252e-05/0.2521, allocations: 0 / 0.9066 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.2522, allocations: 31.94 kB / 0.9066 GB, free: 57.52 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.685e-05/0.2523, allocations: 19.97 kB / 0.9067 GB, free: 57.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.257e-06/0.2524, allocations: 0 / 0.9067 GB, free: 57.5 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.137e-05/0.2524, allocations: 108.5 kB / 0.9068 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2524, allocations: 0 / 0.9068 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002173/0.2526, allocations: 16 kB / 0.9068 GB, free: 57.38 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.000106/0.2527, allocations: 111.2 kB / 0.9069 GB, free: 57.26 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004005/0.2532, allocations: 226.7 kB / 0.9071 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.2532, allocations: 3.938 kB / 0.9071 GB, free: 57.01 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001824/0.2534, allocations: 123.3 kB / 0.9072 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.2536, allocations: 17.97 kB / 0.9072 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004855/0.2541, allocations: 250.7 kB / 0.9075 GB, free: 56.58 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001501/0.2543, allocations: 0.6993 MB / 0.9082 GB, free: 55.86 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.044e-05/0.2543, allocations: 11.44 kB / 0.9082 GB, free: 55.85 MB / 0.6042 GB Notification: Performance of SimCode: time 2.2e-07/0.2543, allocations: 0 / 0.9082 GB, free: 55.85 MB / 0.6042 GB Notification: Performance of Templates: time 0.002484/0.2568, allocations: 1.24 MB / 0.9094 GB, free: 54.62 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)