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.001404/0.001404, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001479/0.001479, allocations: 197.5 kB / 16.26 MB, free: 6.629 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.404/1.404, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00251/0.00251, allocations: 286.8 kB / 290.4 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.046/1.046, allocations: 178.6 MB / 0.5069 GB, free: 4.738 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002698/0.002698, allocations: 101.8 kB / 0.6059 GB, free: 25.03 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1581/0.1608, allocations: 89.15 MB / 0.693 GB, free: 4.684 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002737/0.1635, allocations: 1.6 MB / 0.6945 GB, free: 3.078 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003368/0.1639, allocations: 128.5 kB / 0.6947 GB, free: 2.949 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.118e-05/0.1639, allocations: 2.844 kB / 0.6947 GB, free: 2.949 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.519e-05/0.164, allocations: 7.922 kB / 0.6947 GB, free: 2.941 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.869e-05/0.164, allocations: 3.938 kB / 0.6947 GB, free: 2.938 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002445/0.1643, allocations: 27.97 kB / 0.6947 GB, free: 2.91 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.733e-05/0.1644, allocations: 35.92 kB / 0.6947 GB, free: 2.875 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.588e-05/0.1645, allocations: 16.48 kB / 0.6948 GB, free: 2.859 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.698e-05/0.1645, allocations: 12.44 kB / 0.6948 GB, free: 2.848 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.079e-05/0.1645, allocations: 20.5 kB / 0.6948 GB, free: 2.828 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.362e-05/0.1646, allocations: 4 kB / 0.6948 GB, free: 2.824 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.805e-05/0.1646, allocations: 21.45 kB / 0.6948 GB, free: 2.805 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.547e-05/0.1647, allocations: 7.984 kB / 0.6948 GB, free: 2.797 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.764e-05/0.1647, allocations: 15.88 kB / 0.6948 GB, free: 2.781 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001091/0.1648, allocations: 48.52 kB / 0.6949 GB, free: 2.734 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1648, allocations: 0 / 0.6949 GB, free: 2.734 MB / 494.1 MB Notification: Performance of FrontEnd: time 4.759e-06/0.1648, allocations: 1.562 kB / 0.6949 GB, free: 2.734 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.1648, allocations: 3.938 kB / 0.6949 GB, free: 2.73 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.000474/0.1653, allocations: 352.3 kB / 0.6952 GB, free: 2.336 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.1654, allocations: 8.031 kB / 0.6952 GB, free: 2.328 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.061e-05/0.1654, allocations: 1.531 kB / 0.6952 GB, free: 2.328 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.1655, allocations: 172.3 kB / 0.6954 GB, free: 2.121 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.1656, allocations: 7.031 kB / 0.6954 GB, free: 2.117 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.1656, allocations: 4.375 kB / 0.6954 GB, free: 2.113 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001908/0.1658, allocations: 58.23 kB / 0.6955 GB, free: 2.051 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.034e-06/0.1658, allocations: 192 / 0.6955 GB, free: 2.051 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.1658, allocations: 3.938 kB / 0.6955 GB, free: 2.047 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.1658, allocations: 5.562 kB / 0.6955 GB, free: 2.043 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001939/0.166, allocations: 47.89 kB / 0.6955 GB, free: 1.996 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004072/0.1664, allocations: 288.7 kB / 0.6958 GB, free: 1.664 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003403/0.1668, allocations: 58.53 kB / 0.6958 GB, free: 1.598 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.1669, allocations: 28.89 kB / 0.6959 GB, free: 1.566 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003202/0.1672, allocations: 397.5 kB / 0.6962 GB, free: 1.086 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.289e-05/0.1673, allocations: 38.5 kB / 0.6963 GB, free: 1.039 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.1673, allocations: 3.938 kB / 0.6963 GB, free: 1.035 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003866/0.1677, allocations: 93.62 kB / 0.6964 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.1677, allocations: 55.41 kB / 0.6964 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.948e-05/0.1678, allocations: 105.8 kB / 0.6965 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.1678, allocations: 25.7 kB / 0.6966 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.472e-05/0.1679, allocations: 92.14 kB / 0.6966 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.566e-05/0.1679, allocations: 7.891 kB / 0.6967 GB, free: 0.625 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.021e-05/0.168, allocations: 17.72 kB / 0.6967 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.1681, allocations: 314.8 kB / 0.697 GB, free: 292 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.812e-05/0.1682, allocations: 23.97 kB / 0.697 GB, free: 268 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.59e-05/0.1683, allocations: 23.92 kB / 0.697 GB, free: 244 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.1685, allocations: 44.81 kB / 0.6971 GB, free: 196 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1685, allocations: 3.938 kB / 0.6971 GB, free: 192 kB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002214/0.1687, allocations: 77.56 kB / 0.6971 GB, free: 108 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.1687, allocations: 4 kB / 0.6971 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.1687, allocations: 0 / 0.6971 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.1688, allocations: 0 / 0.6971 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.169e-05/0.1688, allocations: 11.98 kB / 0.6972 GB, free: 92 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.1689, allocations: 4 kB / 0.6972 GB, free: 88 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.835e-05/0.1689, allocations: 7.984 kB / 0.6972 GB, free: 80 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.1689, allocations: 8 kB / 0.6972 GB, free: 72 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 0.0001007/0.1691, allocations: 113.7 kB / 0.6973 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.732e-05/0.1691, allocations: 4 kB / 0.6973 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002711/0.1694, allocations: 81.55 kB / 0.6974 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1694, allocations: 8 kB / 0.6974 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1694, allocations: 3.984 kB / 0.6974 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.1694, allocations: 0 / 0.6974 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001927/0.1696, allocations: 165.6 kB / 0.6975 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1696, allocations: 0 / 0.6975 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.075e-05/0.1697, allocations: 11.98 kB / 0.6975 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.1697, allocations: 4 kB / 0.6975 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.1697, allocations: 4 kB / 0.6975 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1697, allocations: 0 / 0.6975 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.1697, allocations: 0 / 0.6975 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002898/0.17, allocations: 183.6 kB / 0.6977 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.245e-05/0.1701, allocations: 89.03 kB / 0.6978 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.1701, allocations: 48 / 0.6978 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.948e-05/0.1702, allocations: 7.984 kB / 0.6978 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.422e-05/0.1702, allocations: 7.984 kB / 0.6978 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.1703, allocations: 4 kB / 0.6978 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.674e-05/0.1703, allocations: 91.27 kB / 0.6979 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1703, allocations: 0 / 0.6979 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000233/0.1706, allocations: 8 kB / 0.6979 GB, free: 15.2 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.0001609/0.1707, allocations: 103.2 kB / 0.698 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002448/0.171, allocations: 47.89 kB / 0.6981 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.171, allocations: 0 / 0.6981 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.1711, allocations: 31.97 kB / 0.6981 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002666/0.1714, allocations: 3.938 kB / 0.6981 GB, free: 15 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003021/0.1717, allocations: 129.5 kB / 0.6982 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.172, allocations: 0.6846 MB / 0.6989 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.317e-05/0.1721, allocations: 4 kB / 0.6989 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.171e-05/0.1721, allocations: 15.38 kB / 0.6989 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1721, allocations: 0 / 0.6989 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of Templates: time 0.003233/0.1754, allocations: 0.6982 MB / 0.6996 GB, free: 13.43 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)