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.0008064/0.0008063, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.0007983/0.0007983, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 223.3 MB / 240 MB, free: 5.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.001676/0.001676, allocations: 278.8 kB / 291.4 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9039/0.9039, allocations: 169.5 MB / 0.5 GB, free: 14.23 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004604/0.0004604, allocations: 16.03 kB / 0.598 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.177/0.1775, allocations: 88.55 MB / 0.6845 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.001523/0.1791, allocations: 1.22 MB / 0.6857 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000308/0.1794, allocations: 117.3 kB / 0.6858 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.653e-05/0.1794, allocations: 0 / 0.6858 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.451e-05/0.1795, allocations: 2.312 kB / 0.6858 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.864e-05/0.1795, allocations: 0 / 0.6858 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001811/0.1797, allocations: 19.92 kB / 0.6858 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.017e-05/0.1798, allocations: 23.97 kB / 0.6858 GB, free: 14.07 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.894e-05/0.1799, allocations: 15.92 kB / 0.6858 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.486e-05/0.1799, allocations: 6.75 kB / 0.6858 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.042e-05/0.18, allocations: 15.92 kB / 0.6859 GB, free: 14.03 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.18, allocations: 4 kB / 0.6859 GB, free: 14.03 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.158e-05/0.18, allocations: 8 kB / 0.6859 GB, free: 14.02 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.109e-05/0.1801, allocations: 7.984 kB / 0.6859 GB, free: 14.01 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.23e-05/0.1801, allocations: 25.7 kB / 0.6859 GB, free: 13.98 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.901e-05/0.1802, allocations: 24.23 kB / 0.6859 GB, free: 13.96 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.1802, allocations: 1.531 kB / 0.6859 GB, free: 13.96 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1802, allocations: 0 / 0.6859 GB, free: 13.96 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.1802, allocations: 0 / 0.6859 GB, free: 13.96 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.0004141/0.1806, allocations: 345.6 kB / 0.6863 GB, free: 13.57 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.1807, allocations: 8.562 kB / 0.6863 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.942e-05/0.1807, allocations: 10.38 kB / 0.6863 GB, free: 13.56 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.1808, allocations: 171 kB / 0.6864 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/0.1809, allocations: 4 kB / 0.6864 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.482e-05/0.1809, allocations: 4 kB / 0.6864 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001754/0.1811, allocations: 62.89 kB / 0.6865 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.1811, allocations: 0 / 0.6865 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.1811, allocations: 4 kB / 0.6865 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.1811, allocations: 2.125 kB / 0.6865 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001746/0.1813, allocations: 48.61 kB / 0.6866 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003498/0.1816, allocations: 269 kB / 0.6868 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002849/0.1819, allocations: 62.53 kB / 0.6869 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.904e-05/0.182, allocations: 29.72 kB / 0.6869 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001061/0.1822, allocations: 85.75 kB / 0.687 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.1822, allocations: 31.97 kB / 0.687 GB, free: 12.68 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.1822, allocations: 0 / 0.687 GB, free: 12.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003545/0.1826, allocations: 113.7 kB / 0.6871 GB, free: 12.56 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/0.1826, allocations: 55.36 kB / 0.6872 GB, free: 12.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.993e-05/0.1827, allocations: 105.9 kB / 0.6873 GB, free: 12.38 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.36e-05/0.1827, allocations: 29.7 kB / 0.6873 GB, free: 12.35 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.135e-05/0.1827, allocations: 92.02 kB / 0.6874 GB, free: 12.25 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.445e-05/0.1828, allocations: 7.906 kB / 0.6874 GB, free: 12.25 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.878e-06/0.1828, allocations: 0 / 0.6874 GB, free: 12.25 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1829, allocations: 318.8 kB / 0.6877 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.27e-05/0.183, allocations: 19.98 kB / 0.6877 GB, free: 11.91 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.637e-05/0.1831, allocations: 32.14 kB / 0.6878 GB, free: 11.88 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.02e-05/0.1832, allocations: 23.98 kB / 0.6878 GB, free: 11.85 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1832, allocations: 0 / 0.6878 GB, free: 11.85 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001996/0.1834, allocations: 89.59 kB / 0.6879 GB, free: 11.76 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.1834, allocations: 4 kB / 0.6879 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1834, allocations: 4 kB / 0.6879 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.307e-06/0.1834, allocations: 3.938 kB / 0.6879 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.425e-05/0.1835, allocations: 11.98 kB / 0.6879 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.1835, allocations: 3.953 kB / 0.6879 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.244e-05/0.1836, allocations: 11.98 kB / 0.6879 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-06/0.1836, allocations: 4 kB / 0.6879 GB, free: 11.71 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 (fac.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.002e-05/0.1837, allocations: 114.5 kB / 0.688 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.14e-05/0.1837, allocations: 0 / 0.688 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002378/0.1839, allocations: 97.05 kB / 0.6881 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.1839, allocations: 0 / 0.6881 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.1839, allocations: 0 / 0.6881 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.184, allocations: 11.88 kB / 0.6881 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001462/0.1841, allocations: 165.7 kB / 0.6883 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1841, allocations: 0 / 0.6883 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.857e-05/0.1842, allocations: 11.98 kB / 0.6883 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.1842, allocations: 4 kB / 0.6883 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.1842, allocations: 0 / 0.6883 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.1842, allocations: 3.984 kB / 0.6883 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1842, allocations: 4 kB / 0.6883 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002308/0.1845, allocations: 175.5 kB / 0.6885 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.904e-05/0.1845, allocations: 77.11 kB / 0.6885 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.377e-05/0.1845, allocations: 8 kB / 0.6885 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.827e-05/0.1846, allocations: 7.984 kB / 0.6886 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.456e-05/0.1847, allocations: 11.98 kB / 0.6886 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-06/0.1847, allocations: 0 / 0.6886 GB, free: 10.93 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.965e-05/0.1847, allocations: 79.28 kB / 0.6886 GB, free: 10.86 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.463e-06/0.1847, allocations: 0 / 0.6886 GB, free: 10.86 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002154/0.1849, allocations: 11.94 kB / 0.6887 GB, free: 10.84 MB / 494.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001399/0.1851, allocations: 111.2 kB / 0.6888 GB, free: 10.72 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002046/0.1853, allocations: 48.33 kB / 0.6888 GB, free: 10.68 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1853, allocations: 0 / 0.6888 GB, free: 10.68 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.171e-05/0.1854, allocations: 31.98 kB / 0.6888 GB, free: 10.64 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002391/0.1856, allocations: 14.08 kB / 0.6888 GB, free: 10.63 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002969/0.1859, allocations: 128.7 kB / 0.689 GB, free: 10.48 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002431/0.1862, allocations: 0.6809 MB / 0.6896 GB, free: 9.777 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.105e-05/0.1862, allocations: 4 kB / 0.6896 GB, free: 9.773 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.319e-05/0.1863, allocations: 11.44 kB / 0.6897 GB, free: 9.762 MB / 494.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1863, allocations: 0 / 0.6897 GB, free: 9.762 MB / 494.1 MB Notification: Performance of Templates: time 0.002547/0.1888, allocations: 0.6008 MB / 0.6902 GB, free: 9.164 MB / 494.1 MB 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)