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.446/1.446, allocations: 288.4 MB / 303.6 MB, free: 8.082 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.0009034/0.0009035, allocations: 189.4 kB / 372.3 MB, free: 10.1 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.123/1.123, allocations: 205.4 MB / 0.631 GB, free: 9.887 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.0006684/0.0006683, allocations: 96.7 kB / 0.7444 GB, free: 5.801 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003195/0.0003195, allocations: 15.64 kB / 0.8676 GB, free: 141.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1466/0.1469, allocations: 115.3 MB / 0.9802 GB, free: 27.23 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001184/0.1481, allocations: 1.226 MB / 0.9814 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0005313/0.1487, allocations: 472.7 kB / 0.9818 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.544e-05/0.1487, allocations: 0 / 0.9818 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 6.681e-05/0.1488, allocations: 7.922 kB / 0.9818 GB, free: 25.51 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 4.303e-05/0.1488, allocations: 15.92 kB / 0.9819 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001429/0.149, allocations: 19.97 kB / 0.9819 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.392e-05/0.1491, allocations: 71.72 kB / 0.982 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.178e-05/0.1491, allocations: 20.17 kB / 0.982 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.17e-05/0.1492, allocations: 31.89 kB / 0.982 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.882e-05/0.1493, allocations: 35.84 kB / 0.982 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.879e-05/0.1493, allocations: 4 kB / 0.982 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.267e-05/0.1493, allocations: 4 kB / 0.982 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.536e-05/0.1494, allocations: 7.922 kB / 0.9821 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.685e-05/0.1494, allocations: 61.55 kB / 0.9821 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 6.452e-05/0.1495, allocations: 44.14 kB / 0.9822 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1495, allocations: 4 kB / 0.9822 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.373e-06/0.1495, allocations: 0 / 0.9822 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.427e-06/0.1495, allocations: 0 / 0.9822 GB, free: 25.19 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.0004777/0.15, allocations: 437 kB / 0.9826 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.051e-05/0.15, allocations: 12.03 kB / 0.9826 GB, free: 24.69 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.867e-05/0.1501, allocations: 38.75 kB / 0.9826 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.87e-05/0.1501, allocations: 12.83 kB / 0.9826 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001042/0.1502, allocations: 189.5 kB / 0.9828 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.287e-06/0.1502, allocations: 384 / 0.9828 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.459e-05/0.1503, allocations: 12.36 kB / 0.9828 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000234/0.1505, allocations: 109.6 kB / 0.9829 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.1505, allocations: 0 / 0.9829 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.1505, allocations: 0 / 0.9829 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.466e-06/0.1505, allocations: 0 / 0.9829 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002521/0.1508, allocations: 95.81 kB / 0.983 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004136/0.1512, allocations: 340.6 kB / 0.9833 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002486/0.1515, allocations: 98.45 kB / 0.9834 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001419/0.1516, allocations: 69.03 kB / 0.9835 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.162e-05/0.1516, allocations: 3.938 kB / 0.9835 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002492/0.1519, allocations: 107.3 kB / 0.9836 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.1519, allocations: 0 / 0.9836 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0005094/0.1524, allocations: 231.2 kB / 0.9838 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.613e-05/0.1525, allocations: 85.11 kB / 0.9839 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.332e-05/0.1525, allocations: 140.8 kB / 0.984 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.1525, allocations: 25.7 kB / 0.9841 GB, free: 23 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 2.893e-05/0.1526, allocations: 100 kB / 0.9842 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.505e-05/0.1526, allocations: 15.81 kB / 0.9842 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.542e-06/0.1526, allocations: 0 / 0.9842 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.447e-05/0.1527, allocations: 326.8 kB / 0.9845 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.1528, allocations: 55.97 kB / 0.9845 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.153, allocations: 59.95 kB / 0.9846 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002607/0.1532, allocations: 185.9 kB / 0.9848 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1532, allocations: 0 / 0.9848 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003444/0.1536, allocations: 225.1 kB / 0.985 GB, free: 22 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.1536, allocations: 59.39 kB / 0.9851 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.606e-06/0.1536, allocations: 96 / 0.9851 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.747e-06/0.1536, allocations: 7.938 kB / 0.9851 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.1538, allocations: 19.98 kB / 0.9851 GB, free: 21.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.1538, allocations: 0 / 0.9851 GB, free: 21.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.1539, allocations: 39.77 kB / 0.9851 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.457e-05/0.1539, allocations: 11.92 kB / 0.9851 GB, free: 21.85 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 6.617e-05/0.154, allocations: 143.5 kB / 0.9853 GB, free: 21.69 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.359e-05/0.154, allocations: 7.906 kB / 0.9853 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.144e-05/0.154, allocations: 12.7 kB / 0.9853 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-06/0.154, allocations: 0 / 0.9853 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.154, allocations: 8 kB / 0.9853 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.1541, allocations: 3.938 kB / 0.9853 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004136/0.1545, allocations: 440.2 kB / 0.9857 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1545, allocations: 4 kB / 0.9857 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.975e-05/0.1546, allocations: 23.92 kB / 0.9857 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1546, allocations: 0 / 0.9857 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.1546, allocations: 0 / 0.9857 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1546, allocations: 7.875 kB / 0.9858 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1546, allocations: 400 / 0.9858 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003311/0.1549, allocations: 285.1 kB / 0.986 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.86e-05/0.155, allocations: 85.02 kB / 0.9861 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.952e-05/0.155, allocations: 4 kB / 0.9861 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.1551, allocations: 27.91 kB / 0.9861 GB, free: 20.7 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.228e-05/0.1552, allocations: 19.97 kB / 0.9862 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.1552, allocations: 4 kB / 0.9862 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.392e-05/0.1553, allocations: 99.27 kB / 0.9863 GB, free: 20.58 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1553, allocations: 0 / 0.9863 GB, free: 20.58 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002002/0.1555, allocations: 20 kB / 0.9863 GB, free: 20.56 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.0004838/0.156, allocations: 0.8233 MB / 0.9871 GB, free: 19.7 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003356/0.1563, allocations: 234.7 kB / 0.9873 GB, free: 19.45 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1563, allocations: 4 kB / 0.9873 GB, free: 19.45 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001658/0.1565, allocations: 115.4 kB / 0.9874 GB, free: 19.32 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002301/0.1567, allocations: 19.86 kB / 0.9874 GB, free: 19.3 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001032/0.1578, allocations: 0.7212 MB / 0.9881 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.71e-05/0.1579, allocations: 0.6966 MB / 0.9888 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.646e-05/0.1579, allocations: 11.97 kB / 0.9888 GB, free: 17.8 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.249e-05/0.158, allocations: 31.38 kB / 0.9889 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of SimCode: time 2.91e-07/0.158, allocations: 0 / 0.9889 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1059/0.2639, allocations: 2.139 MB / 0.9909 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001363/0.2641, allocations: 225.5 kB / 0.9912 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.535/1.8, allocations: 0 / 0.9912 GB, free: 15.61 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)