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) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) [Timeout 90] 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=500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 112.5 kB / 17.33 MB, free: 5.043 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.001265/0.001265, allocations: 201.9 kB / 18.33 MB, free: 4.055 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.508/1.508, allocations: 225.6 MB / 244.8 MB, free: 13.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8616/0.8616, allocations: 128.4 MB / 426.1 MB, free: 7.203 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002041/0.002041, allocations: 72.94 kB / 0.5912 GB, free: 21.47 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.1646, allocations: 83.25 MB / 0.6725 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002685/0.1673, allocations: 1.51 MB / 0.6739 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0004568/0.1678, allocations: 128.5 kB / 0.6741 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.254e-05/0.1678, allocations: 0 / 0.6741 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.771e-05/0.1679, allocations: 3.938 kB / 0.6741 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.419e-05/0.1679, allocations: 3.938 kB / 0.6741 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002248/0.1681, allocations: 19.95 kB / 0.6741 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.911e-05/0.1682, allocations: 31.92 kB / 0.6741 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.812e-05/0.1683, allocations: 4 kB / 0.6741 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.717e-05/0.1684, allocations: 15.92 kB / 0.6741 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.471e-05/0.1684, allocations: 19.97 kB / 0.6742 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.226e-05/0.1684, allocations: 7.938 kB / 0.6742 GB, free: 2.238 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.053e-05/0.1685, allocations: 12 kB / 0.6742 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.787e-05/0.1685, allocations: 7.984 kB / 0.6742 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.621e-05/0.1685, allocations: 11.94 kB / 0.6742 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001312/0.1687, allocations: 35.83 kB / 0.6742 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.1687, allocations: 0 / 0.6742 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.242e-06/0.1687, allocations: 0 / 0.6742 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.1687, allocations: 0 / 0.6742 GB, free: 2.172 MB / 0.4981 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.0005331/0.1692, allocations: 343.4 kB / 0.6746 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.1692, allocations: 16.03 kB / 0.6746 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.183e-05/0.1693, allocations: 0.9375 kB / 0.6746 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000187/0.1695, allocations: 176.2 kB / 0.6747 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.095e-05/0.1695, allocations: 384 / 0.6747 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.1695, allocations: 4.375 kB / 0.6748 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001961/0.1697, allocations: 58.22 kB / 0.6748 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.1697, allocations: 4.188 kB / 0.6748 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.1697, allocations: 3.938 kB / 0.6748 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.1697, allocations: 0 / 0.6748 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.1699, allocations: 51.94 kB / 0.6749 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004108/0.1703, allocations: 256.9 kB / 0.6751 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003144/0.1706, allocations: 66.41 kB / 0.6752 GB, free: 1.059 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.1707, allocations: 32.89 kB / 0.6752 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001263/0.1709, allocations: 77.11 kB / 0.6753 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.372e-05/0.1709, allocations: 34.56 kB / 0.6753 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 9.41e-07/0.1709, allocations: 0 / 0.6753 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004091/0.1713, allocations: 97.56 kB / 0.6754 GB, free: 0.7852 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/0.1714, allocations: 51.41 kB / 0.6755 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.441e-05/0.1714, allocations: 105.8 kB / 0.6756 GB, free: 0.6094 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.1715, allocations: 29.69 kB / 0.6756 GB, free: 0.5742 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.413e-05/0.1715, allocations: 88.09 kB / 0.6757 GB, free: 496 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.558e-05/0.1715, allocations: 3.953 kB / 0.6757 GB, free: 492 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.844e-05/0.1716, allocations: 17.72 kB / 0.6757 GB, free: 468 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1717, allocations: 314.8 kB / 0.676 GB, free: 144 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.1718, allocations: 19.98 kB / 0.676 GB, free: 124 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.844e-05/0.1719, allocations: 19.98 kB / 0.676 GB, free: 104 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.1721, allocations: 44.81 kB / 0.6761 GB, free: 56 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1721, allocations: 3.938 kB / 0.6761 GB, free: 52 kB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002328/0.1723, allocations: 77.59 kB / 0.6761 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.1723, allocations: 4 kB / 0.6762 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.1723, allocations: 3.984 kB / 0.6762 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.1723, allocations: 4 kB / 0.6762 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.911e-05/0.1724, allocations: 8 kB / 0.6762 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.1724, allocations: 3.984 kB / 0.6762 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.553e-05/0.1725, allocations: 4 kB / 0.6762 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.059e-06/0.1725, allocations: 0 / 0.6762 GB, free: 15.94 MB / 0.5137 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 9.158e-05/0.1726, allocations: 117.8 kB / 0.6763 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.674e-05/0.1726, allocations: 3.984 kB / 0.6763 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002705/0.1729, allocations: 89.08 kB / 0.6764 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.1729, allocations: 0 / 0.6764 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1729, allocations: 0.5625 kB / 0.6764 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1729, allocations: 0 / 0.6764 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001905/0.1731, allocations: 177.5 kB / 0.6765 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1731, allocations: 0 / 0.6765 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.438e-05/0.1732, allocations: 8 kB / 0.6766 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1732, allocations: 0 / 0.6766 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.1732, allocations: 3.984 kB / 0.6766 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1732, allocations: 4 kB / 0.6766 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1732, allocations: 0 / 0.6766 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002761/0.1734, allocations: 179.4 kB / 0.6767 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.647e-05/0.1735, allocations: 77.11 kB / 0.6768 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.584e-05/0.1735, allocations: 3.984 kB / 0.6768 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.219e-05/0.1736, allocations: 7.938 kB / 0.6768 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.304e-05/0.1736, allocations: 19.92 kB / 0.6768 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-06/0.1736, allocations: 0 / 0.6768 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 4.225e-05/0.1737, allocations: 79.28 kB / 0.6769 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6e-08/0.1737, allocations: 0 / 0.6769 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002323/0.1739, allocations: 12 kB / 0.6769 GB, free: 15.07 MB / 0.5137 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.0001702/0.1741, allocations: 107.2 kB / 0.677 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002306/0.1743, allocations: 43.95 kB / 0.6771 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.604e-06/0.1743, allocations: 0 / 0.6771 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.1744, allocations: 27.92 kB / 0.6771 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/0.1747, allocations: 11.92 kB / 0.6771 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003107/0.175, allocations: 117.5 kB / 0.6772 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/0.1753, allocations: 0.6807 MB / 0.6779 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.147e-05/0.1753, allocations: 4 kB / 0.6779 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.715e-05/0.1754, allocations: 11.44 kB / 0.6779 GB, free: 14.01 MB / 0.5137 GB Notification: Performance of SimCode: time 3e-07/0.1754, allocations: 0 / 0.6779 GB, free: 14.01 MB / 0.5137 GB Notification: Performance of Templates: time 0.003211/0.1786, allocations: 0.7151 MB / 0.6786 GB, free: 13.3 MB / 0.5137 GB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.makefile [Timeout 660] (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) [Timeout 480]