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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 105.4 kB / 15.7 MB, free: 28 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.001088/0.001088, allocations: 192.8 kB / 16.64 MB, free: 6.453 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.48/1.48, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.714/1.714, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.002042/0.002042, allocations: 75.91 kB / 0.6723 GB, free: 25.93 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2281/0.2302, allocations: 114.6 MB / 0.7841 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.003228/0.2335, allocations: 1.521 MB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009426/0.2344, allocations: 492.7 kB / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.422e-05/0.2345, allocations: 4 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.2346, allocations: 7.922 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.799e-05/0.2347, allocations: 11.81 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002264/0.2349, allocations: 27.97 kB / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001797/0.2351, allocations: 99.69 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.2352, allocations: 16.17 kB / 0.7863 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.2354, allocations: 35.91 kB / 0.7863 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.425e-05/0.2355, allocations: 39.83 kB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/0.2355, allocations: 11.94 kB / 0.7863 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.858e-05/0.2355, allocations: 8 kB / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.304e-05/0.2356, allocations: 19.92 kB / 0.7864 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.022e-05/0.2357, allocations: 27.86 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001454/0.2358, allocations: 71.72 kB / 0.7865 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.804e-06/0.2358, allocations: 0 / 0.7865 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.633e-06/0.2358, allocations: 3.938 kB / 0.7865 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.133e-06/0.2358, allocations: 4 kB / 0.7865 GB, free: 10.34 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.0006841/0.2365, allocations: 446.6 kB / 0.7869 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.2366, allocations: 12.03 kB / 0.7869 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.423e-05/0.2366, allocations: 8.844 kB / 0.7869 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001689/0.2368, allocations: 184.2 kB / 0.7871 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.2368, allocations: 384 / 0.7871 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.175e-05/0.2369, allocations: 12.36 kB / 0.7871 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000275/0.2371, allocations: 97.7 kB / 0.7872 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.2371, allocations: 0 / 0.7872 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.2372, allocations: 0 / 0.7872 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.2372, allocations: 11.98 kB / 0.7872 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002679/0.2375, allocations: 71.92 kB / 0.7873 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005631/0.238, allocations: 340.5 kB / 0.7876 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002996/0.2383, allocations: 82.52 kB / 0.7877 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.2385, allocations: 52.94 kB / 0.7877 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.2385, allocations: 0 / 0.7877 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003126/0.2389, allocations: 107.4 kB / 0.7878 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.522e-06/0.2389, allocations: 4 kB / 0.7878 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0006196/0.2395, allocations: 203.2 kB / 0.788 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/0.2396, allocations: 85.09 kB / 0.7881 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.2397, allocations: 130.1 kB / 0.7882 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.2397, allocations: 29.7 kB / 0.7883 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.333e-05/0.2398, allocations: 92.12 kB / 0.7884 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.372e-05/0.2398, allocations: 27.7 kB / 0.7884 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.855e-05/0.2399, allocations: 29.7 kB / 0.7884 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.24, allocations: 326.8 kB / 0.7887 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001735/0.2402, allocations: 47.91 kB / 0.7888 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.2404, allocations: 47.95 kB / 0.7888 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002966/0.2407, allocations: 169.9 kB / 0.789 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2407, allocations: 0 / 0.789 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000396/0.2411, allocations: 208.9 kB / 0.7892 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.748e-05/0.2411, allocations: 68.27 kB / 0.7892 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2411, allocations: 288 / 0.7892 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.2412, allocations: 4 kB / 0.7892 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.2413, allocations: 11.98 kB / 0.7893 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.2413, allocations: 7.938 kB / 0.7893 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000125/0.2414, allocations: 19.92 kB / 0.7893 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.859e-05/0.2415, allocations: 11.92 kB / 0.7893 GB, free: 7.152 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 0.000104/0.2416, allocations: 151.4 kB / 0.7894 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.854e-05/0.2416, allocations: 11.91 kB / 0.7894 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.099e-05/0.2416, allocations: 12.7 kB / 0.7895 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.2416, allocations: 0 / 0.7895 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2416, allocations: 4 kB / 0.7895 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2417, allocations: 0 / 0.7895 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005298/0.2422, allocations: 436.4 kB / 0.7899 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2422, allocations: 0 / 0.7899 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.202e-05/0.2423, allocations: 11.98 kB / 0.7899 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2423, allocations: 0 / 0.7899 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.2423, allocations: 8 kB / 0.7899 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.2423, allocations: 3.938 kB / 0.7899 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2423, allocations: 7.938 kB / 0.7899 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004373/0.2428, allocations: 265.1 kB / 0.7902 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.948e-05/0.2428, allocations: 85.02 kB / 0.7902 GB, free: 6.055 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.683e-05/0.2429, allocations: 3.984 kB / 0.7902 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/0.243, allocations: 19.92 kB / 0.7903 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.2432, allocations: 27.97 kB / 0.7903 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.437e-06/0.2432, allocations: 0 / 0.7903 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.432e-05/0.2433, allocations: 102.4 kB / 0.7904 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2433, allocations: 4 kB / 0.7904 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002486/0.2435, allocations: 16 kB / 0.7904 GB, free: 5.887 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.0001322/0.2437, allocations: 103.2 kB / 0.7905 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004384/0.2441, allocations: 222.7 kB / 0.7907 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2441, allocations: 0 / 0.7907 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002071/0.2443, allocations: 111.4 kB / 0.7908 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002834/0.2446, allocations: 15.92 kB / 0.7908 GB, free: 5.398 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004983/0.2451, allocations: 210.8 kB / 0.791 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003251/0.2455, allocations: 0.6924 MB / 0.7917 GB, free: 4.445 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.311e-05/0.2455, allocations: 19.7 kB / 0.7917 GB, free: 4.426 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.727e-05/0.2456, allocations: 15.42 kB / 0.7918 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of SimCode: time 2.21e-07/0.2456, allocations: 0 / 0.7918 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of Templates: time 0.003721/0.2493, allocations: 1.316 MB / 0.793 GB, free: 3.109 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (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 & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)