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.001884/0.001884, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002135/0.002135, allocations: 196.8 kB / 16.14 MB, free: 6.715 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.529/1.529, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002583/0.002583, allocations: 283.1 kB / 290.2 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.129/1.129, allocations: 178.6 MB / 0.5068 GB, free: 4.773 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002797/0.002797, allocations: 101 kB / 0.6057 GB, free: 25.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1638/0.1666, allocations: 89.16 MB / 0.6928 GB, free: 4.859 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002866/0.1695, allocations: 1.598 MB / 0.6943 GB, free: 3.254 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004014/0.1699, allocations: 140.4 kB / 0.6945 GB, free: 3.113 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.551e-05/0.1699, allocations: 0 / 0.6945 GB, free: 3.113 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.087e-05/0.17, allocations: 5.656 kB / 0.6945 GB, free: 3.109 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.803e-05/0.17, allocations: 0 / 0.6945 GB, free: 3.109 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002209/0.1703, allocations: 27.92 kB / 0.6945 GB, free: 3.082 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.03e-05/0.1703, allocations: 27.97 kB / 0.6945 GB, free: 3.055 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.093e-05/0.1704, allocations: 20.64 kB / 0.6946 GB, free: 3.035 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.944e-05/0.1705, allocations: 15.92 kB / 0.6946 GB, free: 3.02 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.001e-05/0.1705, allocations: 15.92 kB / 0.6946 GB, free: 3.004 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.892e-05/0.1705, allocations: 4 kB / 0.6946 GB, free: 3 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.453e-05/0.1706, allocations: 19.92 kB / 0.6946 GB, free: 2.98 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.643e-05/0.1706, allocations: 7.938 kB / 0.6946 GB, free: 2.973 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.02e-05/0.1707, allocations: 19.91 kB / 0.6946 GB, free: 2.953 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001127/0.1708, allocations: 39.89 kB / 0.6947 GB, free: 2.914 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1708, allocations: 0 / 0.6947 GB, free: 2.914 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.1708, allocations: 0 / 0.6947 GB, free: 2.914 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.1708, allocations: 4 kB / 0.6947 GB, free: 2.91 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.0005228/0.1713, allocations: 351.7 kB / 0.695 GB, free: 2.516 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.1714, allocations: 8.031 kB / 0.695 GB, free: 2.508 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.204e-05/0.1714, allocations: 4.938 kB / 0.695 GB, free: 2.504 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.1716, allocations: 168.3 kB / 0.6952 GB, free: 2.301 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.1716, allocations: 4.375 kB / 0.6952 GB, free: 2.297 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.244e-05/0.1716, allocations: 384 / 0.6952 GB, free: 2.297 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.1718, allocations: 74.19 kB / 0.6953 GB, free: 2.219 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.1718, allocations: 4.188 kB / 0.6953 GB, free: 2.215 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.1718, allocations: 7.875 kB / 0.6953 GB, free: 2.207 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.1719, allocations: 0 / 0.6953 GB, free: 2.207 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002024/0.1721, allocations: 47.89 kB / 0.6953 GB, free: 2.16 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000415/0.1725, allocations: 280.7 kB / 0.6956 GB, free: 1.836 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003267/0.1728, allocations: 62.59 kB / 0.6957 GB, free: 1.766 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.1729, allocations: 24.78 kB / 0.6957 GB, free: 1.738 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003179/0.1733, allocations: 401.5 kB / 0.6961 GB, free: 1.254 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.07e-05/0.1733, allocations: 30.56 kB / 0.6961 GB, free: 1.215 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.1733, allocations: 0 / 0.6961 GB, free: 1.215 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.000399/0.1737, allocations: 101.6 kB / 0.6962 GB, free: 1.109 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.397e-05/0.1738, allocations: 51.41 kB / 0.6962 GB, free: 1.047 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.445e-05/0.1739, allocations: 105.8 kB / 0.6963 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.1739, allocations: 29.7 kB / 0.6964 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.1e-05/0.1739, allocations: 84.14 kB / 0.6964 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.315e-05/0.174, allocations: 3.906 kB / 0.6964 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.948e-05/0.174, allocations: 21.72 kB / 0.6965 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.1742, allocations: 322.7 kB / 0.6968 GB, free: 468 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.455e-05/0.1743, allocations: 23.92 kB / 0.6968 GB, free: 444 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.724e-05/0.1744, allocations: 23.97 kB / 0.6968 GB, free: 420 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001704/0.1746, allocations: 40.83 kB / 0.6969 GB, free: 376 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1746, allocations: 0 / 0.6969 GB, free: 376 kB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002347/0.1748, allocations: 85.83 kB / 0.6969 GB, free: 284 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.1748, allocations: 5.094 kB / 0.6969 GB, free: 280 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.1749, allocations: 4 kB / 0.6969 GB, free: 276 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.1749, allocations: 0 / 0.6969 GB, free: 276 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.252e-05/0.175, allocations: 12.03 kB / 0.697 GB, free: 264 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.175, allocations: 3.938 kB / 0.697 GB, free: 260 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.029e-05/0.175, allocations: 7.984 kB / 0.697 GB, free: 252 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.1751, allocations: 0 / 0.697 GB, free: 252 kB / 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 8.505e-05/0.1751, allocations: 121.8 kB / 0.6971 GB, free: 120 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.449e-05/0.1752, allocations: 0 / 0.6971 GB, free: 120 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002736/0.1755, allocations: 85.55 kB / 0.6972 GB, free: 24 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1755, allocations: 0 / 0.6972 GB, free: 24 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.1755, allocations: 4 kB / 0.6972 GB, free: 20 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.1755, allocations: 3.938 kB / 0.6972 GB, free: 16 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002041/0.1757, allocations: 173.7 kB / 0.6973 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1757, allocations: 4 kB / 0.6973 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.005e-05/0.1758, allocations: 11.98 kB / 0.6974 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1758, allocations: 0 / 0.6974 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.293e-06/0.1758, allocations: 0 / 0.6974 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.1758, allocations: 3.938 kB / 0.6974 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1758, allocations: 0 / 0.6974 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002903/0.1761, allocations: 183.3 kB / 0.6975 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.108e-05/0.1762, allocations: 81.05 kB / 0.6976 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.62e-05/0.1762, allocations: 0 / 0.6976 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.826e-05/0.1763, allocations: 7.984 kB / 0.6976 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.658e-05/0.1764, allocations: 11.98 kB / 0.6976 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-06/0.1764, allocations: 0 / 0.6976 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.269e-05/0.1764, allocations: 87.28 kB / 0.6977 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1764, allocations: 0 / 0.6977 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002294/0.1767, allocations: 8 kB / 0.6977 GB, free: 15.37 MB / 0.4981 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 (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.0001879/0.1769, allocations: 107.2 kB / 0.6978 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002491/0.1771, allocations: 47.89 kB / 0.6979 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1771, allocations: 0 / 0.6979 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.1772, allocations: 23.98 kB / 0.6979 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000323/0.1776, allocations: 11.92 kB / 0.6979 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003396/0.1779, allocations: 135.1 kB / 0.698 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.1783, allocations: 0.6809 MB / 0.6987 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.332e-05/0.1783, allocations: 4 kB / 0.6987 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.95e-05/0.1783, allocations: 7.438 kB / 0.6987 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1783, allocations: 0 / 0.6987 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of Templates: time 0.003397/0.1818, allocations: 0.6743 MB / 0.6994 GB, free: 13.63 MB / 0.4981 GB 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)