Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.001023/0.001023, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001191/0.001191, allocations: 194.3 kB / 16.14 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.272/1.272, allocations: 205.1 MB / 222 MB, free: 4.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.766/1.766, allocations: 292.2 MB / 0.5484 GB, free: 13.68 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 67.5 kB / 0.6708 GB, free: 26.51 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1878, allocations: 114.5 MB / 0.7827 GB, free: 14.01 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002432/0.1902, allocations: 1.563 MB / 0.7842 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003345/0.1906, allocations: 125.6 kB / 0.7843 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.098e-05/0.1906, allocations: 0 / 0.7843 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.835e-05/0.1906, allocations: 7.922 kB / 0.7843 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.564e-05/0.1907, allocations: 0 / 0.7843 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001697/0.1909, allocations: 19.97 kB / 0.7843 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 5.359e-05/0.1909, allocations: 27.94 kB / 0.7844 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8e-05/0.191, allocations: 11.98 kB / 0.7844 GB, free: 12.24 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 3.222e-05/0.191, allocations: 7.938 kB / 0.7844 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.296e-05/0.1911, allocations: 19.92 kB / 0.7844 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.255e-05/0.1911, allocations: 0 / 0.7844 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.56e-05/0.1912, allocations: 11.98 kB / 0.7844 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.367e-05/0.1912, allocations: 7.984 kB / 0.7844 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.609e-05/0.1912, allocations: 15.92 kB / 0.7844 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.081e-05/0.1913, allocations: 31.91 kB / 0.7845 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1913, allocations: 4 kB / 0.7845 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of FrontEnd: time 8.01e-07/0.1913, allocations: 0 / 0.7845 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.066e-06/0.1913, allocations: 0 / 0.7845 GB, free: 12.14 MB / 0.6075 GB 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.0004277/0.1918, allocations: 343.7 kB / 0.7848 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.055e-05/0.1918, allocations: 15.95 kB / 0.7848 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.688e-05/0.1918, allocations: 0.9375 kB / 0.7848 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.422e-05/0.1919, allocations: 168.3 kB / 0.785 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.192, allocations: 384 / 0.785 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.192, allocations: 4.375 kB / 0.785 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001732/0.1922, allocations: 66.16 kB / 0.785 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.1922, allocations: 192 / 0.785 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.1922, allocations: 7.938 kB / 0.7851 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.1922, allocations: 0 / 0.7851 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001888/0.1924, allocations: 39.95 kB / 0.7851 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003396/0.1928, allocations: 268.9 kB / 0.7853 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003088/0.1931, allocations: 58.53 kB / 0.7854 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.959e-05/0.1932, allocations: 28.78 kB / 0.7854 GB, free: 11 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.953e-05/0.1933, allocations: 85.09 kB / 0.7855 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.966e-05/0.1933, allocations: 30.56 kB / 0.7855 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1933, allocations: 4 kB / 0.7855 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.000352/0.1937, allocations: 93.58 kB / 0.7856 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.673e-05/0.1937, allocations: 59.39 kB / 0.7857 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.348e-05/0.1938, allocations: 98.03 kB / 0.7858 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.26e-05/0.1938, allocations: 29.7 kB / 0.7858 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.508e-05/0.1938, allocations: 84.05 kB / 0.7859 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.1939, allocations: 15.92 kB / 0.7859 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.023e-05/0.1939, allocations: 17.72 kB / 0.7859 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.582e-05/0.194, allocations: 310.8 kB / 0.7862 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.719e-05/0.1941, allocations: 19.97 kB / 0.7862 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.495e-05/0.1942, allocations: 19.98 kB / 0.7863 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001597/0.1943, allocations: 52.75 kB / 0.7863 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1943, allocations: 3.938 kB / 0.7863 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001982/0.1945, allocations: 73.56 kB / 0.7864 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.1946, allocations: 8 kB / 0.7864 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.1946, allocations: 0 / 0.7864 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.1946, allocations: 0 / 0.7864 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.744e-05/0.1947, allocations: 15.98 kB / 0.7864 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.1947, allocations: 0 / 0.7864 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.626e-05/0.1947, allocations: 11.98 kB / 0.7864 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.132e-06/0.1948, allocations: 0 / 0.7864 GB, free: 9.902 MB / 0.6075 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 (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 6.644e-05/0.1948, allocations: 117.8 kB / 0.7865 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.372e-05/0.1949, allocations: 0 / 0.7865 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002442/0.1951, allocations: 81.08 kB / 0.7866 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.1951, allocations: 0 / 0.7866 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1951, allocations: 4 kB / 0.7866 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.1951, allocations: 4 kB / 0.7866 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001384/0.1953, allocations: 165.6 kB / 0.7868 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.1953, allocations: 0 / 0.7868 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.553e-05/0.1954, allocations: 11.98 kB / 0.7868 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.1954, allocations: 0 / 0.7868 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.1954, allocations: 7.938 kB / 0.7868 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1954, allocations: 7.922 kB / 0.7868 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1954, allocations: 0 / 0.7868 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002399/0.1957, allocations: 183.3 kB / 0.787 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.364e-05/0.1957, allocations: 77.11 kB / 0.787 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.167e-05/0.1957, allocations: 0 / 0.787 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.148e-05/0.1958, allocations: 7.984 kB / 0.7871 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.74e-05/0.1958, allocations: 11.98 kB / 0.7871 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.1959, allocations: 0 / 0.7871 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.034e-05/0.1959, allocations: 79.7 kB / 0.7871 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1959, allocations: 0 / 0.7871 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002108/0.1961, allocations: 12 kB / 0.7872 GB, free: 9.043 MB / 0.6075 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 (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.0001469/0.1963, allocations: 107.4 kB / 0.7873 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002288/0.1965, allocations: 43.94 kB / 0.7873 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1965, allocations: 0 / 0.7873 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.555e-05/0.1966, allocations: 27.92 kB / 0.7873 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000272/0.1969, allocations: 11.69 kB / 0.7873 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000251/0.1972, allocations: 119.3 kB / 0.7875 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001968/0.1974, allocations: 0.6809 MB / 0.7881 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.08e-05/0.1974, allocations: 4 kB / 0.7881 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.429e-05/0.1974, allocations: 7.438 kB / 0.7881 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of SimCode: time 6.11e-07/0.1974, allocations: 4 kB / 0.7881 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of Templates: time 0.002469/0.1999, allocations: 0.6168 MB / 0.7887 GB, free: 7.367 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_8_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)