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.0008116/0.0008116, allocations: 91.53 kB / 15.36 MB, free: 0.7383 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.005067/0.005067, allocations: 172.2 kB / 16.26 MB, free: 6.676 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.341/1.341, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001629/0.001629, allocations: 281.7 kB / 291.7 MB, free: 1.871 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.939/0.939, allocations: 169.5 MB / 0.5004 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004864/0.0004865, allocations: 15.31 kB / 0.5987 GB, free: 28.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1882/0.1887, allocations: 88.55 MB / 0.6851 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.001614/0.1904, allocations: 1.235 MB / 0.6863 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003644/0.1908, allocations: 108.6 kB / 0.6864 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.283e-05/0.1908, allocations: 0 / 0.6864 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.072e-05/0.1908, allocations: 7.922 kB / 0.6864 GB, free: 13.72 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.799e-05/0.1909, allocations: 0 / 0.6864 GB, free: 13.72 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002106/0.1911, allocations: 27.97 kB / 0.6865 GB, free: 13.69 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.424e-05/0.1912, allocations: 24.42 kB / 0.6865 GB, free: 13.67 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.874e-05/0.1913, allocations: 9.062 kB / 0.6865 GB, free: 13.66 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.594e-05/0.1913, allocations: 13.19 kB / 0.6865 GB, free: 13.65 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.515e-05/0.1914, allocations: 11.97 kB / 0.6865 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.464e-05/0.1914, allocations: 0 / 0.6865 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.779e-05/0.1915, allocations: 11.98 kB / 0.6865 GB, free: 13.62 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.604e-05/0.1915, allocations: 9.219 kB / 0.6865 GB, free: 13.62 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.658e-05/0.1915, allocations: 33.64 kB / 0.6866 GB, free: 13.58 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.1917, allocations: 32.16 kB / 0.6866 GB, free: 13.55 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1917, allocations: 1.188 kB / 0.6866 GB, free: 13.55 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1917, allocations: 4 kB / 0.6866 GB, free: 13.54 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.1917, allocations: 3.938 kB / 0.6866 GB, free: 13.54 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.0004319/0.1921, allocations: 341.4 kB / 0.6869 GB, free: 13.16 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.1922, allocations: 9.406 kB / 0.687 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.775e-05/0.1922, allocations: 12.83 kB / 0.687 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.1924, allocations: 164.3 kB / 0.6871 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.413e-05/0.1924, allocations: 4.375 kB / 0.6871 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.1924, allocations: 1 kB / 0.6871 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000195/0.1926, allocations: 64.89 kB / 0.6872 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.1926, allocations: 192 / 0.6872 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.1926, allocations: 3.938 kB / 0.6872 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.1926, allocations: 3.984 kB / 0.6872 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001968/0.1929, allocations: 51.84 kB / 0.6872 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003689/0.1932, allocations: 264.9 kB / 0.6875 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003337/0.1936, allocations: 68.53 kB / 0.6876 GB, free: 12.43 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.1937, allocations: 31.28 kB / 0.6876 GB, free: 12.4 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001201/0.1938, allocations: 85.09 kB / 0.6877 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/0.1938, allocations: 34.55 kB / 0.6877 GB, free: 12.25 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.1939, allocations: 0.875 kB / 0.6877 GB, free: 12.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004076/0.1943, allocations: 112.9 kB / 0.6878 GB, free: 12.14 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/0.1943, allocations: 55.41 kB / 0.6879 GB, free: 12.07 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.204e-05/0.1944, allocations: 101.8 kB / 0.688 GB, free: 11.96 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.1944, allocations: 25.7 kB / 0.688 GB, free: 11.93 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.919e-05/0.1945, allocations: 88.08 kB / 0.6881 GB, free: 11.84 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.489e-05/0.1945, allocations: 7.906 kB / 0.6881 GB, free: 11.84 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.689e-05/0.1945, allocations: 13.7 kB / 0.6881 GB, free: 11.82 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1947, allocations: 314.8 kB / 0.6884 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.566e-05/0.1948, allocations: 27.92 kB / 0.6884 GB, free: 11.47 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.896e-05/0.1949, allocations: 27.97 kB / 0.6884 GB, free: 11.45 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.1951, allocations: 52.83 kB / 0.6885 GB, free: 11.39 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.1951, allocations: 11.92 kB / 0.6885 GB, free: 11.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000224/0.1953, allocations: 85.59 kB / 0.6886 GB, free: 11.29 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.1953, allocations: 4 kB / 0.6886 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1953, allocations: 4 kB / 0.6886 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.1954, allocations: 0 / 0.6886 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.47e-05/0.1955, allocations: 19.98 kB / 0.6886 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.1955, allocations: 0 / 0.6886 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.048e-05/0.1955, allocations: 11.98 kB / 0.6886 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/0.1955, allocations: 0 / 0.6886 GB, free: 11.25 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 (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 0.0001084/0.1957, allocations: 115.1 kB / 0.6887 GB, free: 11.13 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.639e-05/0.1957, allocations: 3.906 kB / 0.6887 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002752/0.196, allocations: 101.1 kB / 0.6888 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.196, allocations: 0 / 0.6888 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.196, allocations: 3.938 kB / 0.6888 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.196, allocations: 0 / 0.6888 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001631/0.1962, allocations: 165.6 kB / 0.689 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1962, allocations: 0 / 0.689 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.428e-05/0.1963, allocations: 15.98 kB / 0.689 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.1963, allocations: 4 kB / 0.689 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.1963, allocations: 0 / 0.689 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.1963, allocations: 0 / 0.689 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1963, allocations: 0 / 0.689 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002818/0.1966, allocations: 191.9 kB / 0.6892 GB, free: 10.58 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.542e-05/0.1966, allocations: 77.11 kB / 0.6893 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.1966, allocations: 4 kB / 0.6893 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.325e-05/0.1967, allocations: 7.984 kB / 0.6893 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.752e-05/0.1968, allocations: 8.031 kB / 0.6893 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.928e-06/0.1968, allocations: 0 / 0.6893 GB, free: 10.46 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.769e-05/0.1969, allocations: 91.27 kB / 0.6894 GB, free: 10.38 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1969, allocations: 0 / 0.6894 GB, free: 10.38 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002174/0.1971, allocations: 8 kB / 0.6894 GB, free: 10.37 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 (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.0001649/0.1973, allocations: 103.2 kB / 0.6895 GB, free: 10.25 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000252/0.1975, allocations: 59.95 kB / 0.6895 GB, free: 10.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1975, allocations: 0 / 0.6895 GB, free: 10.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.1977, allocations: 31.91 kB / 0.6896 GB, free: 10.16 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.1979, allocations: 7.938 kB / 0.6896 GB, free: 10.16 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003157/0.1983, allocations: 128.6 kB / 0.6897 GB, free: 10.01 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002661/0.1985, allocations: 0.677 MB / 0.6904 GB, free: 9.305 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.125e-05/0.1986, allocations: 4 kB / 0.6904 GB, free: 9.301 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.649e-05/0.1986, allocations: 7.438 kB / 0.6904 GB, free: 9.293 MB / 494.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1986, allocations: 0 / 0.6904 GB, free: 9.293 MB / 494.1 MB Notification: Performance of Templates: time 0.002916/0.2015, allocations: 0.6295 MB / 0.691 GB, free: 8.668 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)