Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_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.001742/0.001748, allocations: 108 kB / 15.61 MB, free: 152 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.002007/0.002007, allocations: 195.1 kB / 16.53 MB, free: 6.699 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.347/1.347, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.9909/0.9909, allocations: 143 MB / 433.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 67.89 kB / 0.5143 GB, free: 11.58 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.1729, allocations: 82.04 MB / 0.5944 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.FallingFactorial): time 0.00346/0.1764, allocations: 1.515 MB / 0.5959 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0004133/0.1769, allocations: 136.4 kB / 0.596 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.969e-05/0.1769, allocations: 4 kB / 0.596 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.592e-05/0.177, allocations: 3.938 kB / 0.596 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.718e-05/0.1771, allocations: 3.938 kB / 0.596 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002994/0.1774, allocations: 31.95 kB / 0.596 GB, free: 7.797 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.974e-05/0.1775, allocations: 35.86 kB / 0.5961 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.1776, allocations: 16 kB / 0.5961 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.201e-05/0.1776, allocations: 15.92 kB / 0.5961 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.479e-05/0.1777, allocations: 19.91 kB / 0.5961 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.779e-05/0.1777, allocations: 8 kB / 0.5961 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.465e-05/0.1778, allocations: 19.98 kB / 0.5961 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.99e-05/0.1779, allocations: 4 kB / 0.5962 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.195e-05/0.1779, allocations: 15.92 kB / 0.5962 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000143/0.1781, allocations: 47.88 kB / 0.5962 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1781, allocations: 3.938 kB / 0.5962 GB, free: 7.613 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.463e-06/0.1781, allocations: 0 / 0.5962 GB, free: 7.613 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.392e-06/0.1781, allocations: 3.938 kB / 0.5962 GB, free: 7.609 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005365/0.1787, allocations: 351.6 kB / 0.5966 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.1787, allocations: 16.03 kB / 0.5966 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.631e-05/0.1788, allocations: 34.75 kB / 0.5966 GB, free: 7.156 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.805e-05/0.1788, allocations: 8.844 kB / 0.5966 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.1789, allocations: 164.4 kB / 0.5968 GB, free: 6.949 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.179, allocations: 384 / 0.5968 GB, free: 6.949 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.059e-05/0.179, allocations: 4.375 kB / 0.5968 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002253/0.1792, allocations: 58.23 kB / 0.5968 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.1793, allocations: 3.938 kB / 0.5968 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.1793, allocations: 7.984 kB / 0.5968 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1793, allocations: 4 kB / 0.5968 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/0.1795, allocations: 47.89 kB / 0.5969 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004115/0.1799, allocations: 280.7 kB / 0.5972 GB, free: 6.496 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003386/0.1803, allocations: 62.53 kB / 0.5972 GB, free: 6.426 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.1804, allocations: 24.91 kB / 0.5972 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002894/0.1807, allocations: 401.6 kB / 0.5976 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.414e-05/0.1807, allocations: 42.48 kB / 0.5977 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/0.1807, allocations: 0 / 0.5977 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004235/0.1812, allocations: 93.64 kB / 0.5978 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.1812, allocations: 51.41 kB / 0.5978 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.065e-05/0.1813, allocations: 109.8 kB / 0.5979 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.1813, allocations: 25.7 kB / 0.5979 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.556e-05/0.1814, allocations: 88.12 kB / 0.598 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.639e-05/0.1814, allocations: 7.906 kB / 0.598 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.62e-05/0.1814, allocations: 13.72 kB / 0.598 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.1816, allocations: 318.8 kB / 0.5983 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.589e-05/0.1817, allocations: 27.91 kB / 0.5984 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.1818, allocations: 23.94 kB / 0.5984 GB, free: 5.066 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001766/0.182, allocations: 48.81 kB / 0.5984 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.182, allocations: 0 / 0.5984 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002618/0.1823, allocations: 77.56 kB / 0.5985 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.1823, allocations: 8 kB / 0.5985 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.1823, allocations: 0 / 0.5985 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.1823, allocations: 4 kB / 0.5985 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.156e-05/0.1824, allocations: 11.98 kB / 0.5985 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.1824, allocations: 320 / 0.5985 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.319e-05/0.1825, allocations: 7.984 kB / 0.5985 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.1825, allocations: 0 / 0.5985 GB, free: 4.902 MB / 0.4981 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 (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 7.422e-05/0.1826, allocations: 121.7 kB / 0.5987 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.754e-05/0.1826, allocations: 4 kB / 0.5987 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002789/0.1829, allocations: 85.53 kB / 0.5987 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1829, allocations: 7.922 kB / 0.5988 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.1829, allocations: 0 / 0.5988 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.183, allocations: 384 / 0.5988 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.1831, allocations: 173.5 kB / 0.5989 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1831, allocations: 0 / 0.5989 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.005e-05/0.1832, allocations: 11.98 kB / 0.5989 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.1832, allocations: 4 kB / 0.5989 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.1832, allocations: 0 / 0.5989 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.1833, allocations: 0 / 0.5989 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1833, allocations: 0 / 0.5989 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002939/0.1836, allocations: 183.4 kB / 0.5991 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.539e-05/0.1836, allocations: 81.11 kB / 0.5992 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.479e-05/0.1836, allocations: 0 / 0.5992 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.936e-05/0.1837, allocations: 15.98 kB / 0.5992 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.342e-05/0.1838, allocations: 4 kB / 0.5992 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-06/0.1838, allocations: 0 / 0.5992 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.605e-05/0.1839, allocations: 87.27 kB / 0.5993 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.21e-07/0.1839, allocations: 0 / 0.5993 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002519/0.1841, allocations: 15.94 kB / 0.5993 GB, free: 4.016 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.0005866/0.1847, allocations: 0.7201 MB / 0.6 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002624/0.185, allocations: 55.89 kB / 0.6001 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.185, allocations: 0 / 0.6001 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.1851, allocations: 23.97 kB / 0.6001 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002875/0.1854, allocations: 8 kB / 0.6001 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001473/0.1869, allocations: 1.276 MB / 0.6013 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000212/0.1871, allocations: 0.6808 MB / 0.602 GB, free: 1.117 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.392e-05/0.1872, allocations: 7.938 kB / 0.602 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.794e-05/0.1872, allocations: 19.42 kB / 0.602 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of SimCode: time 3.51e-07/0.1872, allocations: 0 / 0.602 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3016/0.4888, allocations: 1.68 MB / 0.6037 GB, free: 43.81 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.412/7.901, allocations: 4.078 kB / 0.6037 GB, free: 43.81 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_FallingFactorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)