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.006048/0.006048, allocations: 100.4 kB / 15.73 MB, free: 6.023 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.001236/0.001236, allocations: 192.9 kB / 16.67 MB, free: 5.957 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002013/0.002013, allocations: 286.5 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9381/0.9381, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 103.8 kB / 0.6815 GB, free: 15.48 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.163/0.1648, allocations: 86.97 MB / 0.7664 GB, free: 8.434 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002801/0.1676, allocations: 1.513 MB / 0.7679 GB, free: 6.91 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003392/0.168, allocations: 120.5 kB / 0.768 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.582e-05/0.168, allocations: 0 / 0.768 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.619e-05/0.1681, allocations: 7.938 kB / 0.768 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.717e-05/0.1681, allocations: 3.938 kB / 0.768 GB, free: 6.777 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002503/0.1684, allocations: 23.97 kB / 0.768 GB, free: 6.754 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.686e-05/0.1685, allocations: 31.91 kB / 0.7681 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.1686, allocations: 12 kB / 0.7681 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.974e-05/0.1687, allocations: 7.984 kB / 0.7681 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.775e-05/0.1687, allocations: 19.92 kB / 0.7681 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.632e-05/0.1688, allocations: 4 kB / 0.7681 GB, free: 6.68 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.863e-05/0.1688, allocations: 4 kB / 0.7681 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.146e-05/0.1689, allocations: 19.92 kB / 0.7681 GB, free: 6.656 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.463e-05/0.1689, allocations: 15.86 kB / 0.7681 GB, free: 6.641 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001372/0.1691, allocations: 35.89 kB / 0.7682 GB, free: 6.605 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1691, allocations: 0 / 0.7682 GB, free: 6.605 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.232e-06/0.1691, allocations: 0 / 0.7682 GB, free: 6.605 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.873e-06/0.1691, allocations: 0 / 0.7682 GB, free: 6.605 MB / 0.5606 GB 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.0006314/0.1697, allocations: 343.4 kB / 0.7685 GB, free: 6.219 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.1698, allocations: 8.031 kB / 0.7685 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.603e-05/0.1698, allocations: 4.938 kB / 0.7685 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.17, allocations: 176.2 kB / 0.7687 GB, free: 5.996 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.17, allocations: 4.375 kB / 0.7687 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.309e-05/0.17, allocations: 4.375 kB / 0.7687 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001983/0.1702, allocations: 54.22 kB / 0.7687 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.1702, allocations: 192 / 0.7687 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.1703, allocations: 11.94 kB / 0.7687 GB, free: 5.918 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1703, allocations: 0 / 0.7687 GB, free: 5.918 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.1705, allocations: 39.95 kB / 0.7688 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004769/0.1709, allocations: 272.8 kB / 0.769 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003209/0.1713, allocations: 58.47 kB / 0.7691 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.488e-05/0.1714, allocations: 28.89 kB / 0.7691 GB, free: 5.465 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001195/0.1715, allocations: 85.11 kB / 0.7692 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.171e-05/0.1716, allocations: 30.56 kB / 0.7692 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.343e-06/0.1716, allocations: 0 / 0.7692 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003684/0.1719, allocations: 97.56 kB / 0.7693 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.172, allocations: 55.41 kB / 0.7694 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.662e-05/0.1721, allocations: 101.8 kB / 0.7695 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.1721, allocations: 29.7 kB / 0.7695 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.005e-05/0.1722, allocations: 84.05 kB / 0.7696 GB, free: 4.926 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.811e-05/0.1722, allocations: 11.91 kB / 0.7696 GB, free: 4.914 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.549e-05/0.1722, allocations: 13.72 kB / 0.7696 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001297/0.1724, allocations: 318.8 kB / 0.7699 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.864e-05/0.1725, allocations: 15.98 kB / 0.7699 GB, free: 4.559 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.329e-05/0.1725, allocations: 27.91 kB / 0.77 GB, free: 4.531 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.1727, allocations: 48.83 kB / 0.77 GB, free: 4.48 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.1727, allocations: 3.938 kB / 0.77 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001999/0.1729, allocations: 73.58 kB / 0.7701 GB, free: 4.398 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.1729, allocations: 8 kB / 0.7701 GB, free: 4.391 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.173, allocations: 0 / 0.7701 GB, free: 4.391 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.173, allocations: 0 / 0.7701 GB, free: 4.391 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.457e-05/0.1731, allocations: 11.98 kB / 0.7701 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.1731, allocations: 4 kB / 0.7701 GB, free: 4.375 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.246e-05/0.1731, allocations: 8 kB / 0.7701 GB, free: 4.367 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.49e-06/0.1731, allocations: 0 / 0.7701 GB, free: 4.367 MB / 0.5606 GB 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 7.208e-05/0.1732, allocations: 122.4 kB / 0.7702 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.401e-05/0.1732, allocations: 0 / 0.7702 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002353/0.1735, allocations: 81.08 kB / 0.7703 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1735, allocations: 4 kB / 0.7703 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.1735, allocations: 4 kB / 0.7703 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1735, allocations: 0 / 0.7703 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001483/0.1737, allocations: 166.2 kB / 0.7705 GB, free: 3.934 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1737, allocations: 0 / 0.7705 GB, free: 3.934 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.938e-05/0.1737, allocations: 11.98 kB / 0.7705 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-05/0.1738, allocations: 0 / 0.7705 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.1738, allocations: 4 kB / 0.7705 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.1738, allocations: 4 kB / 0.7705 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1738, allocations: 0 / 0.7705 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002287/0.174, allocations: 183.3 kB / 0.7707 GB, free: 3.719 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.1742, allocations: 81.09 kB / 0.7707 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.309e-05/0.1742, allocations: 4 kB / 0.7707 GB, free: 3.617 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.792e-05/0.1743, allocations: 4 kB / 0.7707 GB, free: 3.613 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.446e-05/0.1743, allocations: 7.984 kB / 0.7708 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.1743, allocations: 0 / 0.7708 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.346e-05/0.1744, allocations: 87.28 kB / 0.7708 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1744, allocations: 0 / 0.7708 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002209/0.1746, allocations: 8 kB / 0.7708 GB, free: 3.512 MB / 0.5606 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.0001555/0.1748, allocations: 111.2 kB / 0.771 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002249/0.175, allocations: 43.95 kB / 0.771 GB, free: 3.348 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.175, allocations: 0 / 0.771 GB, free: 3.348 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.369e-05/0.1751, allocations: 35.91 kB / 0.771 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.1754, allocations: 3.938 kB / 0.771 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003411/0.1757, allocations: 115.4 kB / 0.7711 GB, free: 3.172 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/0.1761, allocations: 0.6806 MB / 0.7718 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.937e-05/0.1761, allocations: 4 kB / 0.7718 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.424e-05/0.1762, allocations: 11.44 kB / 0.7718 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of SimCode: time 3.41e-07/0.1762, allocations: 0 / 0.7718 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of Templates: time 0.002779/0.1789, allocations: 0.7337 MB / 0.7725 GB, free: 1.723 MB / 0.5606 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)