Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.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.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial") translateModel(BuildingSystems.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006159/0.00616, allocations: 101.5 kB / 15.73 MB, free: 6.449 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.00129/0.00129, allocations: 196.2 kB / 16.68 MB, free: 6.352 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001975/0.001975, allocations: 279 kB / 290.8 MB, free: 1.898 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9468/0.9468, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 91.86 kB / 0.6815 GB, free: 15.47 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1722/0.174, allocations: 86.98 MB / 0.7664 GB, free: 8.418 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002518/0.1766, allocations: 1.53 MB / 0.7679 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003626/0.177, allocations: 136.4 kB / 0.768 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.431e-05/0.177, allocations: 0 / 0.768 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.12e-05/0.1771, allocations: 7.938 kB / 0.768 GB, free: 6.73 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.771e-05/0.1771, allocations: 3.938 kB / 0.768 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002747/0.1774, allocations: 27.97 kB / 0.7681 GB, free: 6.699 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.897e-05/0.1775, allocations: 27.92 kB / 0.7681 GB, free: 6.672 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.93e-05/0.1776, allocations: 19.97 kB / 0.7681 GB, free: 6.652 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.793e-05/0.1776, allocations: 11.94 kB / 0.7681 GB, free: 6.641 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.502e-05/0.1777, allocations: 27.91 kB / 0.7681 GB, free: 6.613 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.238e-05/0.1777, allocations: 4 kB / 0.7681 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.396e-05/0.1778, allocations: 23.98 kB / 0.7682 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.401e-05/0.1778, allocations: 4 kB / 0.7682 GB, free: 6.582 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.308e-05/0.1778, allocations: 23.8 kB / 0.7682 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.178, allocations: 51.75 kB / 0.7682 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.178, allocations: 0 / 0.7682 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.403e-06/0.178, allocations: 0 / 0.7682 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.87e-06/0.178, allocations: 0 / 0.7682 GB, free: 6.508 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004567/0.1784, allocations: 351.4 kB / 0.7686 GB, free: 6.113 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.1785, allocations: 12.03 kB / 0.7686 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.383e-05/0.1785, allocations: 8.891 kB / 0.7686 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.1786, allocations: 164.3 kB / 0.7688 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.1787, allocations: 4.375 kB / 0.7688 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.411e-05/0.1787, allocations: 4.375 kB / 0.7688 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001884/0.1789, allocations: 66.2 kB / 0.7688 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.1789, allocations: 4.188 kB / 0.7688 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.1789, allocations: 3.938 kB / 0.7688 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.1789, allocations: 0 / 0.7688 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001877/0.1791, allocations: 51.89 kB / 0.7689 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004026/0.1795, allocations: 276.7 kB / 0.7691 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003228/0.1799, allocations: 66.47 kB / 0.7692 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.18, allocations: 28.91 kB / 0.7692 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000287/0.1803, allocations: 401.5 kB / 0.7696 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.1803, allocations: 30.56 kB / 0.7696 GB, free: 4.809 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.1803, allocations: 0 / 0.7696 GB, free: 4.809 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0004056/0.1807, allocations: 101.6 kB / 0.7697 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/0.1808, allocations: 51.41 kB / 0.7698 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.165e-05/0.1808, allocations: 117.8 kB / 0.7699 GB, free: 4.516 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.1809, allocations: 25.7 kB / 0.7699 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.426e-05/0.1809, allocations: 88.14 kB / 0.77 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.47e-05/0.1809, allocations: 3.953 kB / 0.77 GB, free: 4.391 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.74e-05/0.181, allocations: 21.66 kB / 0.77 GB, free: 4.363 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1811, allocations: 318.8 kB / 0.7703 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.11e-05/0.1812, allocations: 19.98 kB / 0.7704 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.19e-05/0.1813, allocations: 27.97 kB / 0.7704 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001608/0.1815, allocations: 36.83 kB / 0.7704 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1815, allocations: 0 / 0.7704 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002073/0.1817, allocations: 77.64 kB / 0.7705 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.1817, allocations: 4 kB / 0.7705 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.1817, allocations: 4 kB / 0.7705 GB, free: 3.867 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.1817, allocations: 0 / 0.7705 GB, free: 3.867 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.335e-05/0.1818, allocations: 19.92 kB / 0.7705 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.1818, allocations: 0 / 0.7705 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.713e-05/0.1819, allocations: 11.89 kB / 0.7705 GB, free: 3.836 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-06/0.1819, allocations: 0 / 0.7705 GB, free: 3.836 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 (falFac.y,rea2Int.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.169e-05/0.182, allocations: 126.4 kB / 0.7707 GB, free: 3.703 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.353e-05/0.182, allocations: 0 / 0.7707 GB, free: 3.703 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002638/0.1823, allocations: 89.55 kB / 0.7707 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.1823, allocations: 0 / 0.7707 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.1823, allocations: 0 / 0.7707 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1823, allocations: 0 / 0.7707 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001682/0.1825, allocations: 169.7 kB / 0.7709 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1825, allocations: 4 kB / 0.7709 GB, free: 3.387 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.275e-05/0.1826, allocations: 15.92 kB / 0.7709 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.1826, allocations: 0 / 0.7709 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.1826, allocations: 3.938 kB / 0.7709 GB, free: 3.367 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1826, allocations: 0 / 0.7709 GB, free: 3.367 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1826, allocations: 4 kB / 0.7709 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002658/0.1829, allocations: 183.4 kB / 0.7711 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.194e-05/0.183, allocations: 77.11 kB / 0.7712 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.295e-05/0.183, allocations: 0 / 0.7712 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.386e-05/0.1831, allocations: 7.984 kB / 0.7712 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.908e-05/0.1831, allocations: 8 kB / 0.7712 GB, free: 3.059 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-06/0.1831, allocations: 8.406 kB / 0.7712 GB, free: 3.051 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.861e-05/0.1832, allocations: 87.28 kB / 0.7713 GB, free: 2.965 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.1832, allocations: 0 / 0.7713 GB, free: 2.965 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002261/0.1834, allocations: 8 kB / 0.7713 GB, free: 2.957 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 (rea2Int.y,falFac.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.0001524/0.1836, allocations: 103.2 kB / 0.7714 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002491/0.1838, allocations: 51.88 kB / 0.7714 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1838, allocations: 4 kB / 0.7714 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.832e-05/0.184, allocations: 23.98 kB / 0.7715 GB, free: 2.77 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000287/0.1842, allocations: 7.938 kB / 0.7715 GB, free: 2.762 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003141/0.1846, allocations: 121.5 kB / 0.7716 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002625/0.1848, allocations: 0.6845 MB / 0.7723 GB, free: 1.906 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.377e-05/0.1849, allocations: 8 kB / 0.7723 GB, free: 1.898 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.622e-05/0.1849, allocations: 7.438 kB / 0.7723 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of SimCode: time 2.21e-07/0.1849, allocations: 0 / 0.7723 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of Templates: time 0.003109/0.188, allocations: 0.7682 MB / 0.773 GB, free: 1.129 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)