Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001497/0.001497, allocations: 107.1 kB / 15.98 MB, free: 5.871 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.001668/0.001668, allocations: 196.4 kB / 16.91 MB, free: 5.738 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.436/1.436, allocations: 222.9 MB / 240.6 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7518/0.7518, allocations: 122.9 MB / 413.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 67.45 kB / 0.4906 GB, free: 14.31 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1844/0.1859, allocations: 77.93 MB / 0.5667 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.003192/0.1891, allocations: 1.568 MB / 0.5682 GB, free: 15 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003817/0.1895, allocations: 124.5 kB / 0.5683 GB, free: 14.88 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.312e-05/0.1896, allocations: 0 / 0.5683 GB, free: 14.88 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 4.022e-05/0.1897, allocations: 0 / 0.5683 GB, free: 14.88 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.709e-05/0.1897, allocations: 3.938 kB / 0.5683 GB, free: 14.88 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002615/0.19, allocations: 23.97 kB / 0.5684 GB, free: 14.85 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 8.661e-05/0.1901, allocations: 31.86 kB / 0.5684 GB, free: 14.82 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.1902, allocations: 8 kB / 0.5684 GB, free: 14.81 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.2e-05/0.1903, allocations: 11.98 kB / 0.5684 GB, free: 14.8 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.666e-05/0.1903, allocations: 19.92 kB / 0.5684 GB, free: 14.78 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.471e-05/0.1903, allocations: 4 kB / 0.5684 GB, free: 14.78 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.876e-05/0.1904, allocations: 16 kB / 0.5685 GB, free: 14.76 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.811e-05/0.1905, allocations: 7.969 kB / 0.5685 GB, free: 14.75 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.999e-05/0.1905, allocations: 11.94 kB / 0.5685 GB, free: 14.74 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001224/0.1906, allocations: 27.91 kB / 0.5685 GB, free: 14.71 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.1906, allocations: 3.984 kB / 0.5685 GB, free: 14.71 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1906, allocations: 0 / 0.5685 GB, free: 14.71 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.525e-06/0.1907, allocations: 0 / 0.5685 GB, free: 14.71 MB / 446.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.0005067/0.1912, allocations: 351.7 kB / 0.5688 GB, free: 14.32 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.1912, allocations: 12.03 kB / 0.5689 GB, free: 14.3 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.586e-05/0.1913, allocations: 0.9375 kB / 0.5689 GB, free: 14.3 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.1914, allocations: 176.2 kB / 0.569 GB, free: 14.09 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.1914, allocations: 4.375 kB / 0.569 GB, free: 14.09 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-06/0.1914, allocations: 384 / 0.569 GB, free: 14.09 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001961/0.1916, allocations: 62.22 kB / 0.5691 GB, free: 14.02 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.1916, allocations: 4.125 kB / 0.5691 GB, free: 14.02 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.1917, allocations: 7.875 kB / 0.5691 GB, free: 14.01 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.1917, allocations: 0 / 0.5691 GB, free: 14.01 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001799/0.1919, allocations: 43.95 kB / 0.5691 GB, free: 13.97 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000365/0.1922, allocations: 257 kB / 0.5694 GB, free: 13.67 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003326/0.1926, allocations: 58.47 kB / 0.5694 GB, free: 13.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.1927, allocations: 36.83 kB / 0.5695 GB, free: 13.56 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001218/0.1928, allocations: 81.11 kB / 0.5696 GB, free: 13.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.1929, allocations: 34.56 kB / 0.5696 GB, free: 13.42 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.323e-06/0.1929, allocations: 0 / 0.5696 GB, free: 13.42 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003947/0.1933, allocations: 89.62 kB / 0.5697 GB, free: 13.33 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.1933, allocations: 55.41 kB / 0.5697 GB, free: 13.26 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.347e-05/0.1934, allocations: 101.8 kB / 0.5698 GB, free: 13.15 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.1934, allocations: 29.7 kB / 0.5698 GB, free: 13.12 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.687e-05/0.1935, allocations: 84.05 kB / 0.5699 GB, free: 13.03 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.1935, allocations: 11.84 kB / 0.5699 GB, free: 13.02 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.633e-05/0.1936, allocations: 13.72 kB / 0.57 GB, free: 13 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.1937, allocations: 318.8 kB / 0.5703 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.619e-05/0.1938, allocations: 23.92 kB / 0.5703 GB, free: 12.66 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.775e-05/0.1939, allocations: 19.98 kB / 0.5703 GB, free: 12.64 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001628/0.194, allocations: 45.28 kB / 0.5703 GB, free: 12.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.1941, allocations: 3.938 kB / 0.5703 GB, free: 12.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002125/0.1943, allocations: 77.69 kB / 0.5704 GB, free: 12.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.1943, allocations: 10.02 kB / 0.5704 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.1943, allocations: 4 kB / 0.5704 GB, free: 12.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.1943, allocations: 0 / 0.5704 GB, free: 12.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.244e-05/0.1944, allocations: 11.98 kB / 0.5704 GB, free: 12.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.1944, allocations: 0 / 0.5704 GB, free: 12.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.662e-05/0.1945, allocations: 7.938 kB / 0.5705 GB, free: 12.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.1945, allocations: 4 kB / 0.5705 GB, free: 12.47 MB / 446.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 8.786e-05/0.1946, allocations: 109.8 kB / 0.5706 GB, free: 12.35 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.619e-05/0.1946, allocations: 3.984 kB / 0.5706 GB, free: 12.35 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002617/0.1949, allocations: 89.14 kB / 0.5706 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.1949, allocations: 0 / 0.5706 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.1949, allocations: 3.938 kB / 0.5707 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.1949, allocations: 0 / 0.5707 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000164/0.1951, allocations: 165.6 kB / 0.5708 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1951, allocations: 0 / 0.5708 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.763e-05/0.1952, allocations: 19.92 kB / 0.5708 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.686e-06/0.1952, allocations: 0 / 0.5708 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.1952, allocations: 4 kB / 0.5708 GB, free: 12.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.1952, allocations: 0 / 0.5708 GB, free: 12.01 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1952, allocations: 3.938 kB / 0.5708 GB, free: 12.01 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000258/0.1955, allocations: 175.4 kB / 0.571 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.203e-05/0.1955, allocations: 81.09 kB / 0.5711 GB, free: 11.72 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.427e-05/0.1956, allocations: 4 kB / 0.5711 GB, free: 11.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.804e-05/0.1957, allocations: 8 kB / 0.5711 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.417e-05/0.1957, allocations: 3.984 kB / 0.5711 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.798e-05/0.1957, allocations: 8 kB / 0.5711 GB, free: 11.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.111e-05/0.1958, allocations: 75.28 kB / 0.5712 GB, free: 11.62 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1958, allocations: 0 / 0.5712 GB, free: 11.62 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002305/0.196, allocations: 8 kB / 0.5712 GB, free: 11.62 MB / 446.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.0001524/0.1962, allocations: 103.2 kB / 0.5713 GB, free: 11.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002521/0.1964, allocations: 51.89 kB / 0.5713 GB, free: 11.45 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1964, allocations: 0 / 0.5713 GB, free: 11.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.1965, allocations: 27.97 kB / 0.5714 GB, free: 11.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.1968, allocations: 7.938 kB / 0.5714 GB, free: 11.42 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002907/0.1971, allocations: 117.6 kB / 0.5715 GB, free: 11.28 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.1974, allocations: 0.6846 MB / 0.5721 GB, free: 10.57 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.655e-05/0.1975, allocations: 0 / 0.5721 GB, free: 10.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.741e-05/0.1975, allocations: 11.44 kB / 0.5722 GB, free: 10.56 MB / 446.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1975, allocations: 0 / 0.5722 GB, free: 10.56 MB / 446.1 MB Notification: Performance of Templates: time 0.002863/0.2004, allocations: 0.6414 MB / 0.5728 GB, free: 9.918 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)