Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.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(IDEAS.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IDEAS_IDEAS_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.006467/0.006467, allocations: 96.23 kB / 15.73 MB, free: 6.059 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.001702/0.001702, allocations: 201 kB / 16.68 MB, free: 5.98 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.512/1.512, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8071/0.8071, allocations: 132.2 MB / 422.7 MB, free: 1.723 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 64.89 kB / 0.5809 GB, free: 0.9766 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1682/0.17, allocations: 80.2 MB / 0.6592 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.FallingFactorial): time 0.003434/0.1735, allocations: 1.53 MB / 0.6607 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0004036/0.1739, allocations: 140.3 kB / 0.6608 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.702e-05/0.174, allocations: 0 / 0.6608 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.933e-05/0.174, allocations: 3.938 kB / 0.6608 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.065e-05/0.1741, allocations: 7.984 kB / 0.6608 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002813/0.1744, allocations: 31.91 kB / 0.6609 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.101e-05/0.1745, allocations: 31.92 kB / 0.6609 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.365e-05/0.1746, allocations: 11.98 kB / 0.6609 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.653e-05/0.1746, allocations: 19.92 kB / 0.6609 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.959e-05/0.1747, allocations: 19.92 kB / 0.661 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.544e-05/0.1747, allocations: 4 kB / 0.661 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.142e-05/0.1748, allocations: 19.97 kB / 0.661 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.509e-05/0.1748, allocations: 12 kB / 0.661 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.303e-05/0.1748, allocations: 23.8 kB / 0.661 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001412/0.175, allocations: 52.03 kB / 0.6611 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.751e-05/0.175, allocations: 0 / 0.6611 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.134e-06/0.175, allocations: 0 / 0.6611 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.175, allocations: 0 / 0.6611 GB, free: 11.98 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.0004994/0.1755, allocations: 343.4 kB / 0.6614 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.1756, allocations: 12.03 kB / 0.6614 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.677e-05/0.1756, allocations: 34.73 kB / 0.6614 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.082e-05/0.1757, allocations: 16.89 kB / 0.6614 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/0.1758, allocations: 168.3 kB / 0.6616 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.1758, allocations: 384 / 0.6616 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/0.1758, allocations: 4.375 kB / 0.6616 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002116/0.1761, allocations: 66.2 kB / 0.6617 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.1761, allocations: 3.938 kB / 0.6617 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.1761, allocations: 4 kB / 0.6617 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.1761, allocations: 0 / 0.6617 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002041/0.1763, allocations: 51.89 kB / 0.6617 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004207/0.1767, allocations: 272.8 kB / 0.662 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003367/0.1771, allocations: 62.47 kB / 0.6621 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.1772, allocations: 28.84 kB / 0.6621 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003269/0.1776, allocations: 405.5 kB / 0.6625 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.1776, allocations: 30.56 kB / 0.6625 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.1776, allocations: 0 / 0.6625 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.000412/0.178, allocations: 97.62 kB / 0.6626 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.1781, allocations: 51.41 kB / 0.6626 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.641e-05/0.1782, allocations: 113.8 kB / 0.6627 GB, free: 9.953 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.1782, allocations: 29.7 kB / 0.6628 GB, free: 9.918 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.585e-05/0.1782, allocations: 84.14 kB / 0.6629 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.1783, allocations: 7.953 kB / 0.6629 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.106e-05/0.1783, allocations: 13.72 kB / 0.6629 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001469/0.1785, allocations: 326.7 kB / 0.6632 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.536e-05/0.1786, allocations: 15.98 kB / 0.6632 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.995e-05/0.1787, allocations: 23.97 kB / 0.6632 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.1789, allocations: 44.83 kB / 0.6633 GB, free: 9.391 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1789, allocations: 0 / 0.6633 GB, free: 9.391 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002478/0.1791, allocations: 77.64 kB / 0.6633 GB, free: 9.309 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.1791, allocations: 4 kB / 0.6633 GB, free: 9.305 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.1792, allocations: 0 / 0.6633 GB, free: 9.305 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.1792, allocations: 4 kB / 0.6633 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.757e-05/0.1793, allocations: 11.98 kB / 0.6634 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.1793, allocations: 7.938 kB / 0.6634 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.794e-05/0.1793, allocations: 4 kB / 0.6634 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.1794, allocations: 7.922 kB / 0.6634 GB, free: 9.27 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 9.03e-05/0.1795, allocations: 114.4 kB / 0.6635 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.932e-05/0.1795, allocations: 12.28 kB / 0.6635 GB, free: 9.137 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002905/0.1798, allocations: 89.53 kB / 0.6636 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1798, allocations: 0 / 0.6636 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1798, allocations: 0 / 0.6636 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.1798, allocations: 0 / 0.6636 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001941/0.18, allocations: 173.6 kB / 0.6638 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.18, allocations: 0 / 0.6638 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.959e-05/0.1801, allocations: 11.98 kB / 0.6638 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.1801, allocations: 3.938 kB / 0.6638 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.1801, allocations: 0 / 0.6638 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1801, allocations: 3.938 kB / 0.6638 GB, free: 8.793 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1801, allocations: 0 / 0.6638 GB, free: 8.793 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002827/0.1804, allocations: 179.4 kB / 0.6639 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.828e-05/0.1805, allocations: 81.11 kB / 0.664 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.1805, allocations: 0 / 0.664 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.977e-05/0.1806, allocations: 11.98 kB / 0.664 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.746e-05/0.1807, allocations: 7.984 kB / 0.664 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-06/0.1807, allocations: 0 / 0.664 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.756e-05/0.1808, allocations: 87.36 kB / 0.6641 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.4e-07/0.1808, allocations: 0 / 0.6641 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002323/0.181, allocations: 12 kB / 0.6641 GB, free: 8.387 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.0006778/0.1817, allocations: 0.7183 MB / 0.6648 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003121/0.182, allocations: 43.95 kB / 0.6649 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.182, allocations: 0 / 0.6649 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001155/0.1822, allocations: 31.91 kB / 0.6649 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002607/0.1824, allocations: 4 kB / 0.6649 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.184, allocations: 1.288 MB / 0.6662 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.1844, allocations: 0.6807 MB / 0.6668 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.533e-05/0.1844, allocations: 8 kB / 0.6668 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.184e-05/0.1844, allocations: 11.44 kB / 0.6669 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of SimCode: time 2.91e-07/0.1845, allocations: 0 / 0.6669 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02259/0.207, allocations: 1.691 MB / 0.6685 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.95/8.157, allocations: 4.719 kB / 0.6685 GB, free: 3.883 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Utilities_Math_Examples_FallingFactorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)