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.0008106/0.0008105, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008202/0.0008203, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001645/0.001645, allocations: 275 kB / 291.4 MB, free: 1.973 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9295/0.9295, allocations: 169.5 MB / 0.5 GB, free: 14.22 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004319/0.000432, allocations: 14.78 kB / 0.598 GB, free: 28.17 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1589/0.1593, allocations: 88.55 MB / 0.6845 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.001341/0.1607, allocations: 1.179 MB / 0.6856 GB, free: 14.28 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005976/0.1613, allocations: 425.9 kB / 0.686 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.111e-05/0.1614, allocations: 3.938 kB / 0.686 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 6.729e-05/0.1615, allocations: 0.625 kB / 0.686 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.666e-05/0.1615, allocations: 12.42 kB / 0.686 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001695/0.1617, allocations: 36.98 kB / 0.6861 GB, free: 13.81 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001042/0.1618, allocations: 79.77 kB / 0.6862 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.157e-05/0.1619, allocations: 13.66 kB / 0.6862 GB, free: 13.72 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.162, allocations: 46.38 kB / 0.6862 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.993e-05/0.1621, allocations: 35.88 kB / 0.6863 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.975e-05/0.1621, allocations: 4 kB / 0.6863 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.395e-05/0.1621, allocations: 4 kB / 0.6863 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.352e-05/0.1622, allocations: 15.92 kB / 0.6863 GB, free: 13.62 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.842e-05/0.1622, allocations: 33.7 kB / 0.6863 GB, free: 13.58 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.403e-05/0.1623, allocations: 56.61 kB / 0.6864 GB, free: 13.53 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1623, allocations: 0 / 0.6864 GB, free: 13.53 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1623, allocations: 1.188 kB / 0.6864 GB, free: 13.53 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.1624, allocations: 0 / 0.6864 GB, free: 13.53 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.0005654/0.1629, allocations: 445.7 kB / 0.6868 GB, free: 13.04 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.962e-05/0.163, allocations: 8.031 kB / 0.6868 GB, free: 13.03 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.993e-05/0.163, allocations: 7.906 kB / 0.6868 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001598/0.1632, allocations: 183 kB / 0.687 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.1632, allocations: 8.969 kB / 0.687 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.1632, allocations: 11.98 kB / 0.687 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002879/0.1635, allocations: 121.1 kB / 0.6871 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.742e-06/0.1635, allocations: 0 / 0.6871 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/0.1636, allocations: 0 / 0.6871 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.1636, allocations: 4 kB / 0.6871 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002856/0.1639, allocations: 106.8 kB / 0.6872 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004904/0.1644, allocations: 339.8 kB / 0.6875 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002933/0.1647, allocations: 121.1 kB / 0.6877 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.1648, allocations: 83.38 kB / 0.6877 GB, free: 11.97 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.1649, allocations: 4.078 kB / 0.6877 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002981/0.1652, allocations: 136.8 kB / 0.6879 GB, free: 11.82 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.553e-06/0.1652, allocations: 4.531 kB / 0.6879 GB, free: 11.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006655/0.1659, allocations: 301.4 kB / 0.6882 GB, free: 11.51 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.604e-05/0.1659, allocations: 81.11 kB / 0.6882 GB, free: 11.41 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.723e-05/0.166, allocations: 132.1 kB / 0.6884 GB, free: 11.28 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.166, allocations: 29.7 kB / 0.6884 GB, free: 11.24 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.657e-05/0.1661, allocations: 99.98 kB / 0.6885 GB, free: 11.14 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.078e-05/0.1661, allocations: 15.89 kB / 0.6885 GB, free: 11.12 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.119e-05/0.1662, allocations: 4 kB / 0.6885 GB, free: 11.12 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.215e-05/0.1663, allocations: 314.8 kB / 0.6888 GB, free: 10.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/0.1664, allocations: 79.94 kB / 0.6889 GB, free: 10.73 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.1666, allocations: 79.88 kB / 0.689 GB, free: 10.65 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001846/0.1668, allocations: 111.4 kB / 0.6891 GB, free: 10.53 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1668, allocations: 0 / 0.6891 GB, free: 10.53 MB / 494.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004693/0.1673, allocations: 268.9 kB / 0.6893 GB, free: 10.25 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.58e-05/0.1674, allocations: 67.39 kB / 0.6894 GB, free: 10.17 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1674, allocations: 8 kB / 0.6894 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.1674, allocations: 4 kB / 0.6894 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.1675, allocations: 23.94 kB / 0.6894 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1675, allocations: 0 / 0.6894 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001463/0.1677, allocations: 31.88 kB / 0.6895 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.928e-05/0.1677, allocations: 8 kB / 0.6895 GB, free: 10.09 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 ($whenCondition1,numReq.y,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001066/0.1678, allocations: 148.2 kB / 0.6896 GB, free: 9.934 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.198e-05/0.1678, allocations: 15.89 kB / 0.6896 GB, free: 9.918 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.598e-05/0.1679, allocations: 8.375 kB / 0.6896 GB, free: 9.91 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1679, allocations: 4.094 kB / 0.6896 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.1679, allocations: 7.891 kB / 0.6896 GB, free: 9.898 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.1679, allocations: 0 / 0.6896 GB, free: 9.898 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001349/0.168, allocations: 197.5 kB / 0.6898 GB, free: 9.656 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.168, allocations: 0 / 0.6898 GB, free: 9.656 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.575e-05/0.1681, allocations: 15.98 kB / 0.6898 GB, free: 9.641 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.1681, allocations: 0 / 0.6898 GB, free: 9.641 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.1682, allocations: 7.938 kB / 0.6898 GB, free: 9.633 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1682, allocations: 0 / 0.6898 GB, free: 9.633 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1682, allocations: 4 kB / 0.6899 GB, free: 9.629 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004524/0.1686, allocations: 266.5 kB / 0.6901 GB, free: 9.344 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.456e-05/0.1687, allocations: 81.09 kB / 0.6902 GB, free: 9.246 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.61e-05/0.1687, allocations: 4 kB / 0.6902 GB, free: 9.242 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001387/0.1689, allocations: 31.97 kB / 0.6902 GB, free: 9.211 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.169, allocations: 35.94 kB / 0.6903 GB, free: 9.176 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.169, allocations: 8 kB / 0.6903 GB, free: 9.168 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.344e-05/0.1691, allocations: 101.2 kB / 0.6904 GB, free: 9.07 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1691, allocations: 0 / 0.6904 GB, free: 9.07 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002116/0.1693, allocations: 31.86 kB / 0.6904 GB, free: 9.039 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 (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 9.044e-05/0.1694, allocations: 99.25 kB / 0.6905 GB, free: 8.934 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004588/0.1698, allocations: 282.6 kB / 0.6907 GB, free: 8.633 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.1699, allocations: 0 / 0.6907 GB, free: 8.633 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000234/0.1701, allocations: 151.3 kB / 0.6909 GB, free: 8.473 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002009/0.1703, allocations: 17.89 kB / 0.6909 GB, free: 8.457 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004615/0.1708, allocations: 233.4 kB / 0.6911 GB, free: 8.195 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002018/0.171, allocations: 0.6926 MB / 0.6918 GB, free: 7.477 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.194e-05/0.1711, allocations: 12.17 kB / 0.6918 GB, free: 7.465 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.18e-05/0.1711, allocations: 7.438 kB / 0.6918 GB, free: 7.457 MB / 494.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1711, allocations: 0 / 0.6918 GB, free: 7.457 MB / 494.1 MB Notification: Performance of Templates: time 0.003499/0.1746, allocations: 1.538 MB / 0.6933 GB, free: 5.934 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)