Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests") translateModel(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 191.8 kB / 16.25 MB, free: 6.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002231/0.002231, allocations: 290.5 kB / 290.4 MB, free: 2.113 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9534/0.9534, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 91.56 kB / 0.5947 GB, free: 28.28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.144, allocations: 86.99 MB / 0.6796 GB, free: 1.074 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002601/0.1466, allocations: 1.526 MB / 0.6811 GB, free: 15.55 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007268/0.1473, allocations: 449.6 kB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.519e-05/0.1474, allocations: 4 kB / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.256e-05/0.1475, allocations: 8.453 kB / 0.6815 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.855e-05/0.1476, allocations: 11.92 kB / 0.6816 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001901/0.1478, allocations: 31.97 kB / 0.6816 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001457/0.1479, allocations: 99.7 kB / 0.6817 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.586e-05/0.1481, allocations: 28.14 kB / 0.6817 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001219/0.1482, allocations: 43.84 kB / 0.6818 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.248e-05/0.1483, allocations: 43.77 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.459e-05/0.1483, allocations: 8 kB / 0.6818 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.832e-05/0.1483, allocations: 8 kB / 0.6818 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.988e-05/0.1484, allocations: 19.92 kB / 0.6818 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.221e-05/0.1484, allocations: 39.84 kB / 0.6819 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001166/0.1486, allocations: 79.98 kB / 0.6819 GB, free: 14.69 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1486, allocations: 0 / 0.6819 GB, free: 14.69 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1486, allocations: 0 / 0.6819 GB, free: 14.69 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.1486, allocations: 4 kB / 0.6819 GB, free: 14.68 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006514/0.1493, allocations: 446.7 kB / 0.6824 GB, free: 14.19 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.975e-05/0.1493, allocations: 8.031 kB / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.489e-05/0.1493, allocations: 12.84 kB / 0.6824 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001634/0.1495, allocations: 192.2 kB / 0.6826 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.1495, allocations: 4.375 kB / 0.6826 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.098e-05/0.1496, allocations: 8.375 kB / 0.6826 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003021/0.1499, allocations: 121.7 kB / 0.6827 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.1499, allocations: 3.938 kB / 0.6827 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.1499, allocations: 3.984 kB / 0.6827 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.1499, allocations: 0 / 0.6827 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002872/0.1502, allocations: 87.92 kB / 0.6828 GB, free: 13.71 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004972/0.1507, allocations: 336.7 kB / 0.6831 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003006/0.151, allocations: 102.5 kB / 0.6832 GB, free: 13.22 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001819/0.1512, allocations: 68.94 kB / 0.6833 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.537e-05/0.1512, allocations: 7.938 kB / 0.6833 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003196/0.1516, allocations: 135.2 kB / 0.6834 GB, free: 13 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.603e-06/0.1516, allocations: 0 / 0.6834 GB, free: 13 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006729/0.1523, allocations: 267.2 kB / 0.6837 GB, free: 12.73 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.826e-05/0.1523, allocations: 89.09 kB / 0.6838 GB, free: 12.62 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.916e-05/0.1524, allocations: 135.8 kB / 0.6839 GB, free: 12.48 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.1525, allocations: 29.7 kB / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.747e-05/0.1525, allocations: 104 kB / 0.684 GB, free: 12.34 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.1526, allocations: 15.8 kB / 0.684 GB, free: 12.32 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.556e-05/0.1526, allocations: 29.7 kB / 0.6841 GB, free: 12.29 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.891e-05/0.1527, allocations: 326.8 kB / 0.6844 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001882/0.1529, allocations: 59.95 kB / 0.6844 GB, free: 11.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.1531, allocations: 71.95 kB / 0.6845 GB, free: 11.83 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003339/0.1535, allocations: 181.9 kB / 0.6847 GB, free: 11.63 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1535, allocations: 0 / 0.6847 GB, free: 11.63 MB / 494.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004839/0.154, allocations: 264.8 kB / 0.6849 GB, free: 11.36 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.249e-05/0.154, allocations: 67.41 kB / 0.685 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1541, allocations: 0 / 0.685 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.1541, allocations: 0 / 0.685 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.1542, allocations: 19.97 kB / 0.685 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.1542, allocations: 0 / 0.685 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/0.1544, allocations: 15.98 kB / 0.685 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.1544, allocations: 8 kB / 0.685 GB, free: 11.23 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,numReq.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * 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.0001135/0.1545, allocations: 160.1 kB / 0.6852 GB, free: 11.06 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.638e-05/0.1545, allocations: 11.84 kB / 0.6852 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.956e-05/0.1546, allocations: 8.375 kB / 0.6852 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.1546, allocations: 7.984 kB / 0.6852 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1546, allocations: 0 / 0.6852 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1546, allocations: 0 / 0.6852 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001392/0.1547, allocations: 201.5 kB / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1548, allocations: 0 / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.524e-05/0.1548, allocations: 11.98 kB / 0.6854 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1549, allocations: 0 / 0.6854 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.1549, allocations: 8 kB / 0.6854 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.1549, allocations: 0 / 0.6854 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1549, allocations: 0 / 0.6854 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004727/0.1554, allocations: 246.8 kB / 0.6857 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.72e-05/0.1554, allocations: 84.95 kB / 0.6857 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.1555, allocations: 8.062 kB / 0.6857 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.1556, allocations: 27.97 kB / 0.6858 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/0.1557, allocations: 31.95 kB / 0.6858 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/0.1558, allocations: 7.938 kB / 0.6858 GB, free: 10.33 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.64e-05/0.1558, allocations: 103.2 kB / 0.6859 GB, free: 10.23 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1558, allocations: 0 / 0.6859 GB, free: 10.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002198/0.1561, allocations: 31.94 kB / 0.6859 GB, free: 10.2 MB / 494.1 MB 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,numReq.y,pulse.T_start,pulse.count) * Number of discrete states: 2 (pulse.count,numReq.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * 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 9.597e-05/0.1562, allocations: 95.91 kB / 0.686 GB, free: 10.09 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0005163/0.1567, allocations: 274.7 kB / 0.6863 GB, free: 9.801 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1567, allocations: 0 / 0.6863 GB, free: 9.801 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00025/0.1569, allocations: 139.3 kB / 0.6864 GB, free: 9.652 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.1572, allocations: 17.67 kB / 0.6864 GB, free: 9.637 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004978/0.1577, allocations: 239.4 kB / 0.6867 GB, free: 9.375 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002176/0.1579, allocations: 0.6885 MB / 0.6873 GB, free: 8.66 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.528e-05/0.158, allocations: 15.98 kB / 0.6874 GB, free: 8.645 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.601e-05/0.158, allocations: 11.44 kB / 0.6874 GB, free: 8.633 MB / 494.1 MB Notification: Performance of SimCode: time 2.71e-07/0.158, allocations: 0 / 0.6874 GB, free: 8.633 MB / 494.1 MB Notification: Performance of Templates: time 0.003972/0.162, allocations: 1.685 MB / 0.689 GB, free: 6.969 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)