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.001824/0.001824, 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.001945/0.001945, allocations: 201.7 kB / 16.26 MB, free: 6.621 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.49/1.49, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002582/0.002582, allocations: 298.8 kB / 290.4 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.076/1.076, allocations: 178.6 MB / 0.507 GB, free: 4.707 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002799/0.002799, allocations: 97.33 kB / 0.6059 GB, free: 25.13 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.161/0.1638, allocations: 89.15 MB / 0.693 GB, free: 4.695 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002851/0.1667, allocations: 1.537 MB / 0.6945 GB, free: 3.156 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008173/0.1675, allocations: 452.3 kB / 0.6949 GB, free: 2.711 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.787e-05/0.1676, allocations: 4.625 kB / 0.6949 GB, free: 2.707 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.45e-05/0.1677, allocations: 3.984 kB / 0.6949 GB, free: 2.703 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.685e-05/0.1678, allocations: 15.25 kB / 0.6949 GB, free: 2.691 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002029/0.168, allocations: 39.95 kB / 0.695 GB, free: 2.652 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001705/0.1682, allocations: 99.7 kB / 0.6951 GB, free: 2.555 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.1683, allocations: 16.95 kB / 0.6951 GB, free: 2.539 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001274/0.1684, allocations: 47.89 kB / 0.6951 GB, free: 2.492 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.106e-05/0.1685, allocations: 39.83 kB / 0.6952 GB, free: 2.453 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.956e-05/0.1685, allocations: 8 kB / 0.6952 GB, free: 2.445 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.858e-05/0.1686, allocations: 8 kB / 0.6952 GB, free: 2.438 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.979e-05/0.1686, allocations: 19.86 kB / 0.6952 GB, free: 2.418 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.733e-05/0.1687, allocations: 35.86 kB / 0.6952 GB, free: 2.383 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001498/0.1688, allocations: 87.97 kB / 0.6953 GB, free: 2.297 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1689, allocations: 0 / 0.6953 GB, free: 2.297 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1689, allocations: 0 / 0.6953 GB, free: 2.297 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.1689, allocations: 8 kB / 0.6953 GB, free: 2.289 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.0007662/0.1696, allocations: 442.6 kB / 0.6957 GB, free: 1.797 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.1697, allocations: 8.031 kB / 0.6957 GB, free: 1.789 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.943e-05/0.1698, allocations: 12.84 kB / 0.6958 GB, free: 1.777 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002173/0.17, allocations: 188.2 kB / 0.6959 GB, free: 1.555 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.17, allocations: 8.375 kB / 0.6959 GB, free: 1.547 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.508e-05/0.17, allocations: 4.375 kB / 0.6959 GB, free: 1.543 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003461/0.1704, allocations: 125.7 kB / 0.6961 GB, free: 1.414 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.1704, allocations: 0 / 0.6961 GB, free: 1.414 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.672e-05/0.1704, allocations: 4 kB / 0.6961 GB, free: 1.41 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.126e-06/0.1704, allocations: 7.984 kB / 0.6961 GB, free: 1.402 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003119/0.1708, allocations: 87.86 kB / 0.6962 GB, free: 1.316 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005846/0.1713, allocations: 328.8 kB / 0.6965 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003298/0.1717, allocations: 102.5 kB / 0.6966 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002018/0.1719, allocations: 68.94 kB / 0.6966 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/0.1719, allocations: 4 kB / 0.6966 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003468/0.1723, allocations: 131.2 kB / 0.6968 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.462e-06/0.1723, allocations: 0 / 0.6968 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007544/0.1731, allocations: 275.2 kB / 0.697 GB, free: 348 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.799e-05/0.1732, allocations: 81.11 kB / 0.6971 GB, free: 248 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.1733, allocations: 135.2 kB / 0.6972 GB, free: 104 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.1733, allocations: 29.7 kB / 0.6973 GB, free: 68 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.859e-05/0.1734, allocations: 104 kB / 0.6974 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.79e-05/0.1735, allocations: 15.81 kB / 0.6974 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.669e-05/0.1735, allocations: 33.64 kB / 0.6974 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1737, allocations: 318.8 kB / 0.6977 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.1739, allocations: 71.94 kB / 0.6978 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001881/0.1741, allocations: 67.89 kB / 0.6978 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000377/0.1745, allocations: 182.1 kB / 0.698 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1745, allocations: 0 / 0.698 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005436/0.1751, allocations: 268.9 kB / 0.6983 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.136e-05/0.1751, allocations: 67.41 kB / 0.6983 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.1752, allocations: 0 / 0.6983 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.1752, allocations: 0 / 0.6983 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.1753, allocations: 19.97 kB / 0.6984 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.1753, allocations: 0 / 0.6984 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.1755, allocations: 19.98 kB / 0.6984 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.023e-05/0.1755, allocations: 4 kB / 0.6984 GB, free: 14.85 MB / 0.4981 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 (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.0001494/0.1757, allocations: 163.5 kB / 0.6985 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.208e-05/0.1757, allocations: 7.906 kB / 0.6985 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.016e-05/0.1757, allocations: 8.375 kB / 0.6986 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1758, allocations: 4 kB / 0.6986 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.1758, allocations: 3.984 kB / 0.6986 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.1758, allocations: 3.938 kB / 0.6986 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001809/0.176, allocations: 189.6 kB / 0.6987 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.176, allocations: 3.984 kB / 0.6988 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.008e-05/0.1761, allocations: 11.98 kB / 0.6988 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.1761, allocations: 0 / 0.6988 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.1761, allocations: 8 kB / 0.6988 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1761, allocations: 0 / 0.6988 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1761, allocations: 0 / 0.6988 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005286/0.1766, allocations: 250.6 kB / 0.699 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.241e-05/0.1767, allocations: 88.98 kB / 0.6991 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.1767, allocations: 11.94 kB / 0.6991 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001541/0.1769, allocations: 23.97 kB / 0.6991 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.1771, allocations: 39.95 kB / 0.6992 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.23e-05/0.1771, allocations: 0 / 0.6992 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.976e-05/0.1771, allocations: 97.09 kB / 0.6993 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.154e-06/0.1772, allocations: 0 / 0.6993 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002233/0.1774, allocations: 35.88 kB / 0.6993 GB, free: 13.81 MB / 0.4981 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,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 0.0001225/0.1775, allocations: 95.25 kB / 0.6994 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005593/0.1781, allocations: 270.7 kB / 0.6996 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1781, allocations: 0 / 0.6996 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002768/0.1784, allocations: 143.3 kB / 0.6998 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.1786, allocations: 16.17 kB / 0.6998 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000553/0.1792, allocations: 235.4 kB / 0.7 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.1795, allocations: 0.6924 MB / 0.7007 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.797e-05/0.1796, allocations: 11.98 kB / 0.7007 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.737e-05/0.1796, allocations: 11.44 kB / 0.7007 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1796, allocations: 0 / 0.7007 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of Templates: time 0.004679/0.1843, allocations: 1.696 MB / 0.7024 GB, free: 10.57 MB / 0.4981 GB 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)