Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.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.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001633/0.001633, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001441/0.001441, allocations: 189.9 kB / 16.14 MB, free: 6.637 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.454/1.454, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002496/0.002496, allocations: 294.8 kB / 290.2 MB, free: 2.184 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.088/1.088, allocations: 178.6 MB / 0.5068 GB, free: 4.781 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002746/0.002746, allocations: 98.8 kB / 0.6057 GB, free: 25.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.1689, allocations: 89.15 MB / 0.6928 GB, free: 4.848 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002805/0.1717, allocations: 1.582 MB / 0.6943 GB, free: 3.258 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003885/0.1721, allocations: 129.1 kB / 0.6945 GB, free: 3.129 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.465e-05/0.1722, allocations: 0 / 0.6945 GB, free: 3.129 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.432e-05/0.1722, allocations: 1 kB / 0.6945 GB, free: 3.129 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.09e-05/0.1723, allocations: 0 / 0.6945 GB, free: 3.129 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001919/0.1725, allocations: 23.92 kB / 0.6945 GB, free: 3.105 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.106e-05/0.1725, allocations: 27.98 kB / 0.6945 GB, free: 3.078 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.962e-05/0.1726, allocations: 11.98 kB / 0.6945 GB, free: 3.066 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.731e-05/0.1727, allocations: 19.86 kB / 0.6945 GB, free: 3.047 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.514e-05/0.1727, allocations: 11.98 kB / 0.6945 GB, free: 3.035 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.267e-05/0.1728, allocations: 0 / 0.6945 GB, free: 3.035 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.598e-05/0.1728, allocations: 11.98 kB / 0.6946 GB, free: 3.023 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.342e-05/0.1728, allocations: 7.938 kB / 0.6946 GB, free: 3.016 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.44e-05/0.1729, allocations: 11.94 kB / 0.6946 GB, free: 3.004 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001052/0.173, allocations: 31.88 kB / 0.6946 GB, free: 2.973 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.173, allocations: 4 kB / 0.6946 GB, free: 2.969 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.173, allocations: 0 / 0.6946 GB, free: 2.969 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.778e-06/0.173, allocations: 0 / 0.6946 GB, free: 2.969 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005293/0.1735, allocations: 347.7 kB / 0.6949 GB, free: 2.578 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.1736, allocations: 8.031 kB / 0.6949 GB, free: 2.57 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.861e-05/0.1736, allocations: 4.938 kB / 0.695 GB, free: 2.566 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.1738, allocations: 164.4 kB / 0.6951 GB, free: 2.367 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.1738, allocations: 4.375 kB / 0.6951 GB, free: 2.363 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.1738, allocations: 384 / 0.6951 GB, free: 2.363 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001971/0.174, allocations: 62.23 kB / 0.6952 GB, free: 2.297 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.174, allocations: 192 / 0.6952 GB, free: 2.297 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.849e-05/0.1741, allocations: 3.938 kB / 0.6952 GB, free: 2.293 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.1741, allocations: 0 / 0.6952 GB, free: 2.293 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001958/0.1743, allocations: 43.89 kB / 0.6952 GB, free: 2.25 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004061/0.1747, allocations: 268.9 kB / 0.6955 GB, free: 1.938 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003372/0.175, allocations: 58.47 kB / 0.6955 GB, free: 1.871 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.1751, allocations: 24.91 kB / 0.6956 GB, free: 1.844 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001368/0.1753, allocations: 81.11 kB / 0.6956 GB, free: 1.746 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.1753, allocations: 50.48 kB / 0.6957 GB, free: 1.688 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.1753, allocations: 0 / 0.6957 GB, free: 1.688 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003905/0.1757, allocations: 85.64 kB / 0.6958 GB, free: 1.598 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.1758, allocations: 51.41 kB / 0.6958 GB, free: 1.535 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.509e-05/0.1759, allocations: 101.8 kB / 0.6959 GB, free: 1.426 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.1759, allocations: 25.7 kB / 0.6959 GB, free: 1.395 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.587e-05/0.176, allocations: 84.14 kB / 0.696 GB, free: 1.309 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.083e-05/0.176, allocations: 15.84 kB / 0.696 GB, free: 1.293 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.981e-05/0.176, allocations: 17.7 kB / 0.696 GB, free: 1.27 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1762, allocations: 322.7 kB / 0.6964 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.58e-05/0.1763, allocations: 15.98 kB / 0.6964 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.171e-05/0.1764, allocations: 27.91 kB / 0.6964 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.1766, allocations: 49.28 kB / 0.6964 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.1766, allocations: 3.938 kB / 0.6964 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002298/0.1768, allocations: 77.55 kB / 0.6965 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.1769, allocations: 4 kB / 0.6965 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.1769, allocations: 0 / 0.6965 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.1769, allocations: 0 / 0.6965 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.902e-05/0.177, allocations: 15.98 kB / 0.6965 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.177, allocations: 0 / 0.6965 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.687e-05/0.1771, allocations: 11.98 kB / 0.6965 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.1771, allocations: 0 / 0.6965 GB, free: 0.7344 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: 2 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 9.819e-05/0.1772, allocations: 117.7 kB / 0.6967 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.456e-05/0.1772, allocations: 0 / 0.6967 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002683/0.1775, allocations: 85.14 kB / 0.6967 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1775, allocations: 0 / 0.6967 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1775, allocations: 0 / 0.6967 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.1775, allocations: 4 kB / 0.6967 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001931/0.1777, allocations: 169.6 kB / 0.6969 GB, free: 308 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1777, allocations: 0 / 0.6969 GB, free: 308 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.326e-05/0.1778, allocations: 11.98 kB / 0.6969 GB, free: 296 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1778, allocations: 0 / 0.6969 GB, free: 296 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.1778, allocations: 0 / 0.6969 GB, free: 296 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1778, allocations: 0 / 0.6969 GB, free: 296 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1778, allocations: 0 / 0.6969 GB, free: 296 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002951/0.1781, allocations: 183.4 kB / 0.6971 GB, free: 96 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.289e-05/0.1782, allocations: 81.19 kB / 0.6972 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.1782, allocations: 4 kB / 0.6972 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.759e-05/0.1783, allocations: 3.984 kB / 0.6972 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.425e-05/0.1784, allocations: 4 kB / 0.6972 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/0.1784, allocations: 3.984 kB / 0.6972 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.013e-05/0.1785, allocations: 83.28 kB / 0.6973 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1785, allocations: 0 / 0.6973 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000229/0.1787, allocations: 12 kB / 0.6973 GB, free: 15.88 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: 2 (fac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001608/0.1789, allocations: 103.2 kB / 0.6974 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002538/0.1791, allocations: 47.89 kB / 0.6974 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1791, allocations: 0 / 0.6974 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001084/0.1793, allocations: 27.97 kB / 0.6974 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/0.1795, allocations: 13.19 kB / 0.6975 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003079/0.1799, allocations: 115.2 kB / 0.6976 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003582/0.1802, allocations: 0.677 MB / 0.6982 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.298e-05/0.1803, allocations: 4.453 kB / 0.6982 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.045e-05/0.1803, allocations: 15.44 kB / 0.6983 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of SimCode: time 4.81e-07/0.1803, allocations: 4 kB / 0.6983 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of Templates: time 0.003077/0.1834, allocations: 0.6276 MB / 0.6989 GB, free: 14.2 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)