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.00462/0.00462, allocations: 101.6 kB / 15.73 MB, free: 6.059 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.001092/0.001092, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.318/1.318, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002145/0.002145, allocations: 274.8 kB / 290.8 MB, free: 1.781 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.973/0.973, allocations: 169.3 MB / 0.4983 GB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001596, allocations: 99.83 kB / 0.6815 GB, free: 15.46 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1649/0.1665, allocations: 86.96 MB / 0.7664 GB, free: 8.426 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002385/0.1689, allocations: 1.519 MB / 0.7679 GB, free: 6.895 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003265/0.1693, allocations: 124.5 kB / 0.768 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.387e-05/0.1693, allocations: 0 / 0.768 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.891e-05/0.1694, allocations: 3.938 kB / 0.768 GB, free: 6.766 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.9e-05/0.1694, allocations: 7.938 kB / 0.768 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002239/0.1697, allocations: 23.97 kB / 0.768 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.847e-05/0.1697, allocations: 31.91 kB / 0.768 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.451e-05/0.1698, allocations: 8 kB / 0.7681 GB, free: 6.695 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.353e-05/0.1699, allocations: 15.92 kB / 0.7681 GB, free: 6.68 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.976e-05/0.1699, allocations: 11.98 kB / 0.7681 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.17, allocations: 4 kB / 0.7681 GB, free: 6.664 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 5.847e-05/0.17, allocations: 12 kB / 0.7681 GB, free: 6.652 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.442e-05/0.17, allocations: 7.922 kB / 0.7681 GB, free: 6.645 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.834e-05/0.1701, allocations: 23.92 kB / 0.7681 GB, free: 6.621 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.1702, allocations: 31.84 kB / 0.7682 GB, free: 6.59 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1702, allocations: 0 / 0.7682 GB, free: 6.59 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.854e-06/0.1702, allocations: 0 / 0.7682 GB, free: 6.59 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.1702, allocations: 0 / 0.7682 GB, free: 6.59 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.00047/0.1707, allocations: 351.4 kB / 0.7685 GB, free: 6.195 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.1708, allocations: 11.97 kB / 0.7685 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.43e-05/0.1708, allocations: 4.938 kB / 0.7685 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/0.1709, allocations: 168.3 kB / 0.7687 GB, free: 5.977 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.1709, allocations: 8.375 kB / 0.7687 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.899e-06/0.171, allocations: 384 / 0.7687 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.1711, allocations: 62.22 kB / 0.7687 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.924e-06/0.1711, allocations: 192 / 0.7687 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.1712, allocations: 3.938 kB / 0.7687 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.1712, allocations: 0 / 0.7687 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001767/0.1714, allocations: 39.95 kB / 0.7688 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003471/0.1717, allocations: 268.9 kB / 0.769 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003123/0.172, allocations: 62.45 kB / 0.7691 GB, free: 5.477 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.347e-05/0.1721, allocations: 24.91 kB / 0.7691 GB, free: 5.449 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/0.1722, allocations: 81.09 kB / 0.7692 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.1723, allocations: 42.56 kB / 0.7692 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.213e-06/0.1723, allocations: 0 / 0.7692 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.000352/0.1726, allocations: 93.56 kB / 0.7693 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/0.1727, allocations: 51.41 kB / 0.7694 GB, free: 5.141 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.33e-05/0.1728, allocations: 101.8 kB / 0.7695 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.19e-05/0.1728, allocations: 25.7 kB / 0.7695 GB, free: 5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.915e-05/0.1728, allocations: 100.1 kB / 0.7696 GB, free: 4.898 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.37e-05/0.1728, allocations: 3.953 kB / 0.7696 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.233e-05/0.1729, allocations: 13.72 kB / 0.7696 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.69e-05/0.173, allocations: 318.8 kB / 0.7699 GB, free: 4.555 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.55e-05/0.1731, allocations: 19.97 kB / 0.7699 GB, free: 4.535 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.447e-05/0.1731, allocations: 15.98 kB / 0.7699 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001574/0.1733, allocations: 52.81 kB / 0.77 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1733, allocations: 3.938 kB / 0.77 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001983/0.1735, allocations: 77.59 kB / 0.7701 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.1735, allocations: 4 kB / 0.7701 GB, free: 4.375 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.1736, allocations: 0 / 0.7701 GB, free: 4.375 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.1736, allocations: 0 / 0.7701 GB, free: 4.375 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.257e-05/0.1737, allocations: 11.98 kB / 0.7701 GB, free: 4.363 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.1737, allocations: 0 / 0.7701 GB, free: 4.363 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.401e-05/0.1737, allocations: 15.98 kB / 0.7701 GB, free: 4.348 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.1738, allocations: 0 / 0.7701 GB, free: 4.348 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.402e-05/0.1738, allocations: 114.4 kB / 0.7702 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.412e-05/0.1739, allocations: 3.953 kB / 0.7702 GB, free: 4.223 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002394/0.1741, allocations: 93.02 kB / 0.7703 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.1741, allocations: 0 / 0.7703 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.1741, allocations: 7.984 kB / 0.7703 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.1741, allocations: 0 / 0.7703 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001421/0.1743, allocations: 165.5 kB / 0.7705 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.1743, allocations: 0 / 0.7705 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.087e-05/0.1744, allocations: 11.98 kB / 0.7705 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1744, allocations: 0.5625 kB / 0.7705 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.1744, allocations: 0 / 0.7705 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.1744, allocations: 3.984 kB / 0.7705 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1744, allocations: 0 / 0.7705 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002347/0.1747, allocations: 179.4 kB / 0.7707 GB, free: 3.699 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.33e-05/0.1747, allocations: 77.11 kB / 0.7707 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.25e-05/0.1747, allocations: 3.938 kB / 0.7707 GB, free: 3.602 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.013e-05/0.1748, allocations: 7.984 kB / 0.7707 GB, free: 3.594 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.787e-05/0.1749, allocations: 11.98 kB / 0.7708 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-06/0.1749, allocations: 0 / 0.7708 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.381e-05/0.1749, allocations: 79.28 kB / 0.7708 GB, free: 3.504 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1749, allocations: 7.938 kB / 0.7708 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002132/0.1751, allocations: 8 kB / 0.7708 GB, free: 3.488 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.0001396/0.1753, allocations: 103.2 kB / 0.7709 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002288/0.1755, allocations: 43.95 kB / 0.771 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1755, allocations: 0 / 0.771 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.525e-05/0.1756, allocations: 31.92 kB / 0.771 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.1759, allocations: 7.938 kB / 0.771 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002654/0.1762, allocations: 113.5 kB / 0.7711 GB, free: 3.156 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000212/0.1764, allocations: 0.6807 MB / 0.7718 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.351e-05/0.1764, allocations: 3.953 kB / 0.7718 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.506e-05/0.1765, allocations: 11.44 kB / 0.7718 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of SimCode: time 2.61e-07/0.1765, allocations: 4 kB / 0.7718 GB, free: 2.43 MB / 0.5606 GB Notification: Performance of Templates: time 0.002813/0.1793, allocations: 0.7161 MB / 0.7725 GB, free: 1.719 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)