Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001474/0.001474, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.357/1.357, allocations: 222.9 MB / 240.2 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002433/0.002433, allocations: 275 kB / 290.7 MB, free: 2.031 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.047/1.047, allocations: 178.6 MB / 0.5073 GB, free: 4.59 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003836/0.003836, allocations: 106.2 kB / 0.6066 GB, free: 24.74 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1644, allocations: 89.15 MB / 0.6936 GB, free: 4.215 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001795/0.1662, allocations: 0.5787 MB / 0.6942 GB, free: 3.637 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002445/0.1664, allocations: 63.77 kB / 0.6942 GB, free: 3.574 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.951e-05/0.1665, allocations: 0 / 0.6942 GB, free: 3.574 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.923e-05/0.1665, allocations: 4 kB / 0.6942 GB, free: 3.57 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.98e-06/0.1665, allocations: 0 / 0.6942 GB, free: 3.57 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.1668, allocations: 15.92 kB / 0.6943 GB, free: 3.555 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.88e-05/0.1669, allocations: 35.91 kB / 0.6943 GB, free: 3.52 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.625e-05/0.1669, allocations: 7.984 kB / 0.6943 GB, free: 3.512 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.477e-05/0.167, allocations: 4 kB / 0.6943 GB, free: 3.508 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.788e-05/0.167, allocations: 19.97 kB / 0.6943 GB, free: 3.488 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.167, allocations: 4 kB / 0.6943 GB, free: 3.484 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.619e-05/0.1671, allocations: 12 kB / 0.6943 GB, free: 3.473 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.529e-05/0.1671, allocations: 11.98 kB / 0.6944 GB, free: 3.461 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.447e-05/0.1672, allocations: 11.88 kB / 0.6944 GB, free: 3.449 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.745e-05/0.1672, allocations: 35.89 kB / 0.6944 GB, free: 3.414 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1673, allocations: 0 / 0.6944 GB, free: 3.414 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.1673, allocations: 4 kB / 0.6944 GB, free: 3.41 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.1673, allocations: 0 / 0.6944 GB, free: 3.41 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003259/0.1676, allocations: 339.8 kB / 0.6947 GB, free: 3.027 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.1676, allocations: 12.03 kB / 0.6947 GB, free: 3.016 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.811e-05/0.1677, allocations: 42.69 kB / 0.6948 GB, free: 2.965 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.354e-05/0.1677, allocations: 4.844 kB / 0.6948 GB, free: 2.961 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001014/0.1678, allocations: 160.4 kB / 0.6949 GB, free: 2.766 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.1678, allocations: 4.375 kB / 0.6949 GB, free: 2.762 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.1679, allocations: 4.375 kB / 0.6949 GB, free: 2.758 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000128/0.168, allocations: 62.22 kB / 0.695 GB, free: 2.691 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.168, allocations: 3.938 kB / 0.695 GB, free: 2.688 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.168, allocations: 4 kB / 0.695 GB, free: 2.684 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.168, allocations: 4 kB / 0.695 GB, free: 2.68 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001368/0.1682, allocations: 107.8 kB / 0.6951 GB, free: 2.574 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001693/0.1683, allocations: 169.7 kB / 0.6953 GB, free: 2.359 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001162/0.1685, allocations: 74.59 kB / 0.6953 GB, free: 2.277 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.868e-05/0.1685, allocations: 32.83 kB / 0.6954 GB, free: 2.242 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003325/0.1689, allocations: 405.5 kB / 0.6958 GB, free: 1.754 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.1689, allocations: 30.56 kB / 0.6958 GB, free: 1.715 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.092e-06/0.1689, allocations: 4 kB / 0.6958 GB, free: 1.711 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002351/0.1691, allocations: 121.4 kB / 0.6959 GB, free: 1.586 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.293e-05/0.1692, allocations: 55.62 kB / 0.696 GB, free: 1.52 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.773e-05/0.1692, allocations: 93.84 kB / 0.6961 GB, free: 1.418 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.1693, allocations: 33.64 kB / 0.6961 GB, free: 1.379 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.21e-05/0.1693, allocations: 80.14 kB / 0.6962 GB, free: 1.297 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.804e-05/0.1693, allocations: 19.66 kB / 0.6962 GB, free: 1.277 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.451e-05/0.1694, allocations: 33.7 kB / 0.6962 GB, free: 1.238 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1695, allocations: 322.8 kB / 0.6965 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.825e-05/0.1696, allocations: 19.98 kB / 0.6965 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.699e-05/0.1696, allocations: 23.98 kB / 0.6966 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.466e-05/0.1697, allocations: 56.83 kB / 0.6966 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.1697, allocations: 0 / 0.6966 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001329/0.1699, allocations: 94.2 kB / 0.6967 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.1699, allocations: 11.94 kB / 0.6967 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.1699, allocations: 0 / 0.6967 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.1699, allocations: 3.984 kB / 0.6967 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.028e-05/0.17, allocations: 16 kB / 0.6967 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.17, allocations: 7.984 kB / 0.6967 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.155e-05/0.17, allocations: 7.844 kB / 0.6968 GB, free: 0.668 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.1701, allocations: 11.98 kB / 0.6968 GB, free: 0.6562 MB / 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: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001216/0.1702, allocations: 121.8 kB / 0.6969 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.24e-05/0.1702, allocations: 3.938 kB / 0.6969 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002207/0.1704, allocations: 129.5 kB / 0.697 GB, free: 400 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.1704, allocations: 7.938 kB / 0.697 GB, free: 392 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1705, allocations: 0 / 0.697 GB, free: 392 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.1705, allocations: 0 / 0.697 GB, free: 392 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001401/0.1706, allocations: 173.7 kB / 0.6972 GB, free: 168 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1706, allocations: 0 / 0.6972 GB, free: 168 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.788e-05/0.1707, allocations: 19.92 kB / 0.6972 GB, free: 148 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.1707, allocations: 7.938 kB / 0.6972 GB, free: 140 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.418e-06/0.1707, allocations: 3.984 kB / 0.6972 GB, free: 136 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.1707, allocations: 3.984 kB / 0.6972 GB, free: 132 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1707, allocations: 0 / 0.6972 GB, free: 132 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001682/0.1709, allocations: 117.2 kB / 0.6973 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.935e-05/0.1709, allocations: 92.89 kB / 0.6974 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.159e-05/0.171, allocations: 3.938 kB / 0.6974 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.654e-05/0.171, allocations: 4 kB / 0.6974 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.291e-05/0.171, allocations: 4 kB / 0.6974 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-06/0.171, allocations: 11.92 kB / 0.6974 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.072e-05/0.1711, allocations: 81.23 kB / 0.6975 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1711, allocations: 4 kB / 0.6975 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001883/0.1713, allocations: 12 kB / 0.6975 GB, free: 15.77 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0005519/0.1718, allocations: 0.6631 MB / 0.6982 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001614/0.172, allocations: 83.83 kB / 0.6983 GB, free: 15 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.172, allocations: 4 kB / 0.6983 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 5.385e-05/0.1721, allocations: 35.92 kB / 0.6983 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001236/0.1722, allocations: 4.75 kB / 0.6983 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003588/0.1726, allocations: 174.6 kB / 0.6985 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.1729, allocations: 0.6807 MB / 0.6991 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.915e-05/0.173, allocations: 39.94 kB / 0.6992 GB, free: 14 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.484e-05/0.173, allocations: 20.56 kB / 0.6992 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of SimCode: time 2.61e-07/0.173, allocations: 0 / 0.6992 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.1942, allocations: 1.553 MB / 0.7007 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.24/7.434, allocations: 8.828 kB / 0.7007 GB, free: 12.54 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 13.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00556 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)