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.001039/0.00104, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007062/0.007062, allocations: 172.1 kB / 16.27 MB, free: 6.32 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.328/1.328, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001632/0.001632, allocations: 259 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9342/0.9342, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004326/0.0004328, allocations: 11.91 kB / 0.5986 GB, free: 28.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1829, allocations: 88.54 MB / 0.6851 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.001672/0.1847, allocations: 1.252 MB / 0.6863 GB, free: 13.81 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004173/0.1851, allocations: 128.4 kB / 0.6865 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.557e-05/0.1851, allocations: 0 / 0.6865 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.42e-05/0.1852, allocations: 8.562 kB / 0.6865 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.34e-05/0.1852, allocations: 7.922 kB / 0.6865 GB, free: 13.67 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002454/0.1855, allocations: 20.55 kB / 0.6865 GB, free: 13.65 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.537e-05/0.1855, allocations: 36.44 kB / 0.6865 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.922e-05/0.1856, allocations: 10 kB / 0.6865 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.319e-05/0.1857, allocations: 19.92 kB / 0.6866 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.008e-05/0.1857, allocations: 15.92 kB / 0.6866 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.381e-05/0.1857, allocations: 0.75 kB / 0.6866 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.1859, allocations: 15.98 kB / 0.6866 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.41e-05/0.1859, allocations: 8.484 kB / 0.6866 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.102e-05/0.1859, allocations: 42.38 kB / 0.6866 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001064/0.1861, allocations: 36.16 kB / 0.6867 GB, free: 13.46 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.1861, allocations: 0.5625 kB / 0.6867 GB, free: 13.46 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1861, allocations: 0 / 0.6867 GB, free: 13.46 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.1861, allocations: 2.281 kB / 0.6867 GB, free: 13.46 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004783/0.1866, allocations: 355.4 kB / 0.687 GB, free: 13.07 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.1866, allocations: 12.53 kB / 0.687 GB, free: 13.05 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.756e-05/0.1867, allocations: 0.9375 kB / 0.687 GB, free: 13.05 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.1868, allocations: 169 kB / 0.6872 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.1868, allocations: 5.188 kB / 0.6872 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.1868, allocations: 4.375 kB / 0.6872 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.187, allocations: 73.64 kB / 0.6873 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.187, allocations: 192 / 0.6873 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.1871, allocations: 3.938 kB / 0.6873 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.1871, allocations: 4 kB / 0.6873 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001931/0.1873, allocations: 53.61 kB / 0.6873 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003893/0.1877, allocations: 289.9 kB / 0.6876 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003085/0.188, allocations: 65.12 kB / 0.6877 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.1881, allocations: 36.89 kB / 0.6877 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000347/0.1884, allocations: 397.5 kB / 0.6881 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.954e-05/0.1885, allocations: 30.56 kB / 0.6881 GB, free: 11.75 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.1885, allocations: 0 / 0.6881 GB, free: 11.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003991/0.1889, allocations: 125.6 kB / 0.6882 GB, free: 11.62 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/0.1889, allocations: 55.34 kB / 0.6883 GB, free: 11.55 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.534e-05/0.189, allocations: 109.8 kB / 0.6884 GB, free: 11.44 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.189, allocations: 25.7 kB / 0.6884 GB, free: 11.41 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.959e-05/0.1891, allocations: 84.14 kB / 0.6885 GB, free: 11.32 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.1891, allocations: 8.484 kB / 0.6885 GB, free: 11.31 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.1891, allocations: 21.72 kB / 0.6885 GB, free: 11.29 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.1892, allocations: 318.8 kB / 0.6888 GB, free: 10.96 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.1894, allocations: 23.98 kB / 0.6888 GB, free: 10.94 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.487e-05/0.1894, allocations: 27.97 kB / 0.6889 GB, free: 10.91 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001735/0.1896, allocations: 56.77 kB / 0.6889 GB, free: 10.86 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1896, allocations: 3.938 kB / 0.6889 GB, free: 10.85 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002171/0.1899, allocations: 89.64 kB / 0.689 GB, free: 10.76 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.1899, allocations: 10.03 kB / 0.689 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.1899, allocations: 0 / 0.689 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/0.1899, allocations: 0 / 0.689 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.336e-05/0.19, allocations: 11.98 kB / 0.689 GB, free: 10.74 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.19, allocations: 0 / 0.689 GB, free: 10.74 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.869e-05/0.1901, allocations: 8 kB / 0.689 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.431e-06/0.1901, allocations: 4 kB / 0.689 GB, free: 10.73 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 (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 7.456e-05/0.1902, allocations: 123.1 kB / 0.6892 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.425e-05/0.1902, allocations: 3.906 kB / 0.6892 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002611/0.1905, allocations: 97.48 kB / 0.6893 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.1905, allocations: 4 kB / 0.6893 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1905, allocations: 0 / 0.6893 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.1905, allocations: 0 / 0.6893 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000153/0.1907, allocations: 173.5 kB / 0.6894 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1907, allocations: 0 / 0.6894 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.525e-05/0.1907, allocations: 11.98 kB / 0.6894 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1907, allocations: 0 / 0.6894 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.1908, allocations: 4 kB / 0.6894 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1908, allocations: 0 / 0.6894 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1908, allocations: 4 kB / 0.6894 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.191, allocations: 187.4 kB / 0.6896 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.029e-05/0.1911, allocations: 85.02 kB / 0.6897 GB, free: 9.945 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.343e-05/0.1911, allocations: 7.938 kB / 0.6897 GB, free: 9.938 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.612e-05/0.1912, allocations: 7.984 kB / 0.6897 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.058e-05/0.1913, allocations: 4 kB / 0.6897 GB, free: 9.926 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.1913, allocations: 3.984 kB / 0.6897 GB, free: 9.922 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.916e-05/0.1913, allocations: 87.28 kB / 0.6898 GB, free: 9.836 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1913, allocations: 0 / 0.6898 GB, free: 9.836 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002199/0.1915, allocations: 8 kB / 0.6898 GB, free: 9.828 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 (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.000138/0.1917, allocations: 111.5 kB / 0.6899 GB, free: 9.711 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002281/0.1919, allocations: 55.94 kB / 0.69 GB, free: 9.656 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1919, allocations: 0 / 0.69 GB, free: 9.656 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.192, allocations: 35.92 kB / 0.69 GB, free: 9.621 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/0.1923, allocations: 13.66 kB / 0.69 GB, free: 9.609 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002816/0.1926, allocations: 128.6 kB / 0.6902 GB, free: 9.461 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.1928, allocations: 0.6809 MB / 0.6908 GB, free: 8.754 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.963e-05/0.1929, allocations: 7.938 kB / 0.6908 GB, free: 8.746 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.737e-05/0.1929, allocations: 11.44 kB / 0.6908 GB, free: 8.734 MB / 494.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1929, allocations: 0 / 0.6908 GB, free: 8.734 MB / 494.1 MB Notification: Performance of Templates: time 0.002703/0.1956, allocations: 0.6616 MB / 0.6915 GB, free: 8.078 MB / 494.1 MB 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)