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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_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.001071/0.001071, allocations: 108 kB / 15.6 MB, free: 128 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.001096/0.001096, allocations: 198.3 kB / 16.53 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.26/1.26, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002139/0.002139, allocations: 282.9 kB / 290.7 MB, free: 1.969 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8911/0.8911, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001691/0.001691, allocations: 101.1 kB / 0.5953 GB, free: 27.59 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1535, allocations: 86.98 MB / 0.6803 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002984/0.1565, allocations: 1.519 MB / 0.6818 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003964/0.157, allocations: 133.2 kB / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.87e-05/0.157, allocations: 4 kB / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.662e-05/0.1571, allocations: 9.75 kB / 0.6819 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.548e-05/0.1572, allocations: 3.938 kB / 0.6819 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003113/0.1575, allocations: 31.89 kB / 0.6819 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.555e-05/0.1576, allocations: 35.92 kB / 0.682 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.1577, allocations: 9.688 kB / 0.682 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.142e-05/0.1577, allocations: 23.91 kB / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.824e-05/0.1578, allocations: 18.39 kB / 0.682 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.617e-05/0.1578, allocations: 4 kB / 0.682 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.688e-05/0.1579, allocations: 15.98 kB / 0.682 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.519e-05/0.1579, allocations: 8 kB / 0.6821 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.369e-05/0.158, allocations: 19.86 kB / 0.6821 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.1581, allocations: 51.81 kB / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.1581, allocations: 2.062 kB / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.1581, allocations: 0 / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.228e-06/0.1581, allocations: 0 / 0.6821 GB, free: 14.72 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.000488/0.1586, allocations: 343.5 kB / 0.6825 GB, free: 14.34 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.1587, allocations: 12.66 kB / 0.6825 GB, free: 14.32 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.445e-05/0.1587, allocations: 40.47 kB / 0.6825 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.085e-05/0.1588, allocations: 0.9375 kB / 0.6825 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001299/0.1589, allocations: 176.2 kB / 0.6827 GB, free: 14.07 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.993e-05/0.1589, allocations: 4.359 kB / 0.6827 GB, free: 14.06 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.159, allocations: 4.375 kB / 0.6827 GB, free: 14.06 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002041/0.1592, allocations: 63.05 kB / 0.6827 GB, free: 13.99 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.1592, allocations: 4.656 kB / 0.6827 GB, free: 13.99 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.859e-06/0.1592, allocations: 0 / 0.6827 GB, free: 13.99 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.1592, allocations: 4.625 kB / 0.6828 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001974/0.1594, allocations: 45.27 kB / 0.6828 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003947/0.1598, allocations: 281.6 kB / 0.6831 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000319/0.1602, allocations: 58.48 kB / 0.6831 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.1603, allocations: 28.89 kB / 0.6831 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002917/0.1606, allocations: 397.5 kB / 0.6835 GB, free: 13.04 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.1606, allocations: 34.56 kB / 0.6836 GB, free: 13 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.853e-06/0.1606, allocations: 7.938 kB / 0.6836 GB, free: 12.99 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004325/0.1611, allocations: 97.47 kB / 0.6837 GB, free: 12.89 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.671e-05/0.1611, allocations: 55.41 kB / 0.6837 GB, free: 12.82 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.546e-05/0.1612, allocations: 109.8 kB / 0.6838 GB, free: 12.7 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.1613, allocations: 25.7 kB / 0.6838 GB, free: 12.67 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.389e-05/0.1613, allocations: 84.14 kB / 0.6839 GB, free: 12.59 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.428e-05/0.1613, allocations: 7.906 kB / 0.6839 GB, free: 12.58 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.359e-05/0.1614, allocations: 21.7 kB / 0.6839 GB, free: 12.55 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.1615, allocations: 318.8 kB / 0.6843 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.41e-05/0.1616, allocations: 19.97 kB / 0.6843 GB, free: 12.21 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.424e-05/0.1617, allocations: 23.92 kB / 0.6843 GB, free: 12.19 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001756/0.1619, allocations: 44.81 kB / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1619, allocations: 4 kB / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002346/0.1621, allocations: 81.5 kB / 0.6844 GB, free: 12.05 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.1621, allocations: 4 kB / 0.6844 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.1622, allocations: 0 / 0.6844 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.1622, allocations: 0 / 0.6844 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.374e-05/0.1623, allocations: 11.98 kB / 0.6844 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.1623, allocations: 0 / 0.6844 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.798e-05/0.1623, allocations: 7.984 kB / 0.6844 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.1624, allocations: 8 kB / 0.6844 GB, free: 12.02 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: 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.0001001/0.1625, allocations: 118.4 kB / 0.6846 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.015e-05/0.1625, allocations: 4 kB / 0.6846 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002897/0.1628, allocations: 85.8 kB / 0.6846 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.1628, allocations: 4 kB / 0.6847 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1628, allocations: 0 / 0.6847 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1628, allocations: 0 / 0.6847 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001762/0.163, allocations: 181.5 kB / 0.6848 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.163, allocations: 0 / 0.6848 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.339e-05/0.1631, allocations: 11.98 kB / 0.6848 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.1631, allocations: 0 / 0.6848 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.1631, allocations: 4 kB / 0.6848 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.1631, allocations: 0 / 0.6848 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.1631, allocations: 0 / 0.6848 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002839/0.1634, allocations: 179.3 kB / 0.685 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.016e-05/0.1635, allocations: 85.09 kB / 0.6851 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.1635, allocations: 4 kB / 0.6851 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.363e-05/0.1636, allocations: 4 kB / 0.6851 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.572e-05/0.1636, allocations: 7.922 kB / 0.6851 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.291e-06/0.1637, allocations: 4 kB / 0.6851 GB, free: 11.24 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.883e-05/0.1637, allocations: 87.27 kB / 0.6852 GB, free: 11.15 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1637, allocations: 0 / 0.6852 GB, free: 11.15 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002232/0.1639, allocations: 12 kB / 0.6852 GB, free: 11.14 MB / 494.1 MB 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.0005617/0.1645, allocations: 0.7162 MB / 0.6859 GB, free: 10.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002286/0.1648, allocations: 55.89 kB / 0.686 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1648, allocations: 0 / 0.686 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.704e-05/0.1649, allocations: 23.97 kB / 0.686 GB, free: 10.32 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/0.1652, allocations: 4.078 kB / 0.686 GB, free: 10.32 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/0.1667, allocations: 1.288 MB / 0.6872 GB, free: 8.949 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.1669, allocations: 0.6807 MB / 0.6879 GB, free: 8.242 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.06e-05/0.167, allocations: 0.5469 kB / 0.6879 GB, free: 8.242 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.317e-05/0.167, allocations: 19.42 kB / 0.6879 GB, free: 8.223 MB / 494.1 MB Notification: Performance of SimCode: time 1.934e-06/0.167, allocations: 0 / 0.6879 GB, free: 8.223 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01663/0.1837, allocations: 1.674 MB / 0.6896 GB, free: 6.629 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.959/7.143, allocations: 9.062 kB / 0.6896 GB, free: 6.625 MB / 494.1 MB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)