Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_maint_8_0_x_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/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.907/1.907, allocations: 288.2 MB / 303.2 MB, free: 8.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001088/0.001088, allocations: 183.7 kB / 371.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.588/1.588, allocations: 205.4 MB / 0.6305 GB, free: 10 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008013/0.0008013, allocations: 93.27 kB / 0.7439 GB, free: 5.945 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004612/0.0004613, allocations: 11.47 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2389, allocations: 115.3 MB / 0.9795 GB, free: 27.6 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001929/0.2409, allocations: 1.215 MB / 0.9807 GB, free: 26.37 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0008313/0.2417, allocations: 465 kB / 0.9811 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.321e-05/0.2418, allocations: 0 / 0.9811 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001153/0.2419, allocations: 15.92 kB / 0.9811 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.043e-05/0.242, allocations: 11.97 kB / 0.9811 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002413/0.2423, allocations: 15.98 kB / 0.9812 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001132/0.2424, allocations: 59.8 kB / 0.9812 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001528/0.2425, allocations: 12.17 kB / 0.9812 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001447/0.2427, allocations: 35.86 kB / 0.9813 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001044/0.2428, allocations: 43.81 kB / 0.9813 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.768e-05/0.2429, allocations: 4 kB / 0.9813 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.653e-05/0.2429, allocations: 0 / 0.9813 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.537e-05/0.2429, allocations: 7.938 kB / 0.9813 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.803e-05/0.243, allocations: 33.7 kB / 0.9813 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001073/0.2431, allocations: 56.11 kB / 0.9814 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2431, allocations: 0 / 0.9814 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.744e-06/0.2431, allocations: 0 / 0.9814 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.2431, allocations: 0 / 0.9814 GB, free: 25.61 MB / 0.6198 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.0007195/0.2438, allocations: 438.5 kB / 0.9818 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.2439, allocations: 8.031 kB / 0.9818 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.811e-05/0.2439, allocations: 42.5 kB / 0.9819 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.764e-05/0.244, allocations: 7.906 kB / 0.9819 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/0.2442, allocations: 190.8 kB / 0.9821 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.2442, allocations: 4 kB / 0.9821 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.955e-05/0.2442, allocations: 8 kB / 0.9821 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002861/0.2445, allocations: 101.6 kB / 0.9822 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.2445, allocations: 0 / 0.9822 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.2445, allocations: 0 / 0.9822 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2445, allocations: 3.938 kB / 0.9822 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002704/0.2448, allocations: 87.94 kB / 0.9823 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005476/0.2454, allocations: 340.7 kB / 0.9826 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002862/0.2457, allocations: 98.55 kB / 0.9827 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.2457, allocations: 4 kB / 0.9827 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003141/0.246, allocations: 115.5 kB / 0.9828 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.664e-06/0.246, allocations: 0 / 0.9828 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0006044/0.2467, allocations: 239.1 kB / 0.983 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.103e-05/0.2467, allocations: 81.11 kB / 0.9831 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.608e-05/0.2468, allocations: 144 kB / 0.9832 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.2468, allocations: 25.7 kB / 0.9833 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.129e-05/0.2469, allocations: 96.12 kB / 0.9833 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.79e-05/0.2469, allocations: 19.72 kB / 0.9834 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.184e-06/0.2469, allocations: 3.938 kB / 0.9834 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.349e-05/0.247, allocations: 322.8 kB / 0.9837 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.2472, allocations: 55.95 kB / 0.9837 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.2473, allocations: 55.97 kB / 0.9838 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000161/0.2475, allocations: 103.4 kB / 0.9839 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.2475, allocations: 0 / 0.9839 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004119/0.2479, allocations: 220.9 kB / 0.9841 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.613e-05/0.248, allocations: 73.27 kB / 0.9842 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.248, allocations: 0 / 0.9842 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.248, allocations: 0 / 0.9842 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.2481, allocations: 23.94 kB / 0.9842 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.2482, allocations: 3.938 kB / 0.9842 GB, free: 22.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.2483, allocations: 27.91 kB / 0.9842 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.2483, allocations: 0 / 0.9842 GB, free: 22.45 MB / 0.6198 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 9.846e-05/0.2484, allocations: 151.5 kB / 0.9844 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.584e-05/0.2484, allocations: 7.906 kB / 0.9844 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.054e-05/0.2485, allocations: 16.7 kB / 0.9844 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.2485, allocations: 3.984 kB / 0.9844 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.2485, allocations: 3.953 kB / 0.9844 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.2485, allocations: 0 / 0.9844 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004729/0.249, allocations: 444.2 kB / 0.9848 GB, free: 21.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.249, allocations: 0 / 0.9848 GB, free: 21.76 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.045e-05/0.2491, allocations: 19.92 kB / 0.9848 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.2491, allocations: 0 / 0.9848 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.2491, allocations: 8 kB / 0.9848 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2491, allocations: 4.234 kB / 0.9848 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2491, allocations: 0 / 0.9848 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003666/0.2495, allocations: 285.1 kB / 0.9851 GB, free: 21.43 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.14e-05/0.2495, allocations: 88.95 kB / 0.9852 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.614e-05/0.2496, allocations: 3.984 kB / 0.9852 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.2497, allocations: 23.98 kB / 0.9852 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.2499, allocations: 23.92 kB / 0.9853 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.2499, allocations: 7.938 kB / 0.9853 GB, free: 21.26 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.049e-05/0.2499, allocations: 103.8 kB / 0.9854 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2499, allocations: 0 / 0.9854 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002313/0.2502, allocations: 16 kB / 0.9854 GB, free: 21.14 MB / 0.6198 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.0005999/0.2508, allocations: 0.8199 MB / 0.9862 GB, free: 20.29 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003949/0.2512, allocations: 238.7 kB / 0.9864 GB, free: 20.03 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2512, allocations: 0 / 0.9864 GB, free: 20.03 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.2514, allocations: 111.5 kB / 0.9865 GB, free: 19.91 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002081/0.2516, allocations: 19.94 kB / 0.9865 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.2529, allocations: 0.7216 MB / 0.9872 GB, free: 19.12 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001448/0.253, allocations: 0.6982 MB / 0.9879 GB, free: 18.4 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.613e-05/0.2531, allocations: 11.98 kB / 0.9879 GB, free: 18.39 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.844e-05/0.2532, allocations: 23.42 kB / 0.9879 GB, free: 18.37 MB / 0.6198 GB Notification: Performance of SimCode: time 2.81e-07/0.2532, allocations: 0 / 0.9879 GB, free: 18.37 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01325/0.2664, allocations: 2.145 MB / 0.99 GB, free: 16.43 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002181/0.2667, allocations: 223.7 kB / 0.9903 GB, free: 16.19 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.639/1.905, allocations: 0 / 0.9903 GB, free: 16.19 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)