Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IDEAS_dev_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.007382/0.007382, allocations: 98.56 kB / 15.73 MB, free: 5.949 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.001739/0.001739, allocations: 193.5 kB / 16.67 MB, free: 5.871 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9094/0.9094, allocations: 135.6 MB / 426.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 72.58 kB / 0.5857 GB, free: 21.52 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1608/0.1627, allocations: 81.02 MB / 0.6649 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.FallingFactorial): time 0.002881/0.1657, allocations: 1.537 MB / 0.6664 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000397/0.1661, allocations: 132.4 kB / 0.6665 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.682e-05/0.1661, allocations: 0 / 0.6665 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.429e-05/0.1662, allocations: 3.938 kB / 0.6665 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.475e-05/0.1663, allocations: 7.922 kB / 0.6665 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002848/0.1665, allocations: 31.91 kB / 0.6665 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.263e-05/0.1666, allocations: 27.92 kB / 0.6666 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.1667, allocations: 23.98 kB / 0.6666 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.76e-05/0.1668, allocations: 23.91 kB / 0.6666 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.714e-05/0.1668, allocations: 19.92 kB / 0.6666 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.256e-05/0.1669, allocations: 0 / 0.6666 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.876e-05/0.1669, allocations: 19.98 kB / 0.6666 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.609e-05/0.167, allocations: 4 kB / 0.6666 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.361e-05/0.167, allocations: 19.86 kB / 0.6667 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001388/0.1671, allocations: 48.09 kB / 0.6667 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1672, allocations: 0 / 0.6667 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.114e-06/0.1672, allocations: 4 kB / 0.6667 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.289e-06/0.1672, allocations: 0 / 0.6667 GB, free: 3.742 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.0005257/0.1677, allocations: 351.4 kB / 0.667 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.1678, allocations: 9.109 kB / 0.6671 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.955e-05/0.1678, allocations: 34.75 kB / 0.6671 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.91e-05/0.1678, allocations: 8.891 kB / 0.6671 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001365/0.168, allocations: 172.3 kB / 0.6673 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.168, allocations: 384 / 0.6673 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.187e-05/0.168, allocations: 4.375 kB / 0.6673 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.1682, allocations: 66.22 kB / 0.6673 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.1682, allocations: 3.938 kB / 0.6673 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.1683, allocations: 0 / 0.6673 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.1683, allocations: 0 / 0.6673 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002/0.1685, allocations: 47.89 kB / 0.6674 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004405/0.1689, allocations: 292.7 kB / 0.6677 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003303/0.1693, allocations: 54.55 kB / 0.6677 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.1694, allocations: 28.89 kB / 0.6677 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003226/0.1697, allocations: 397.5 kB / 0.6681 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.1698, allocations: 38.56 kB / 0.6682 GB, free: 2 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.1698, allocations: 4 kB / 0.6682 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003936/0.1702, allocations: 93.56 kB / 0.6682 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.1702, allocations: 51.41 kB / 0.6683 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.51e-05/0.1703, allocations: 113.8 kB / 0.6684 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.1703, allocations: 25.7 kB / 0.6684 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.183e-05/0.1704, allocations: 84.09 kB / 0.6685 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.466e-05/0.1704, allocations: 7.953 kB / 0.6685 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.1705, allocations: 21.7 kB / 0.6685 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1706, allocations: 322.8 kB / 0.6688 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.248e-05/0.1707, allocations: 15.98 kB / 0.6689 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.995e-05/0.1708, allocations: 23.97 kB / 0.6689 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00018/0.171, allocations: 53.03 kB / 0.6689 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.171, allocations: 4 kB / 0.6689 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002353/0.1712, allocations: 73.64 kB / 0.669 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.1713, allocations: 8 kB / 0.669 GB, free: 1.055 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1713, allocations: 0 / 0.669 GB, free: 1.055 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.1713, allocations: 0 / 0.669 GB, free: 1.055 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.616e-05/0.1714, allocations: 11.98 kB / 0.669 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.1714, allocations: 0 / 0.669 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.949e-05/0.1715, allocations: 7.984 kB / 0.669 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.1715, allocations: 4 kB / 0.669 GB, free: 1.031 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.774e-05/0.1716, allocations: 121.7 kB / 0.6692 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.653e-05/0.1716, allocations: 3.953 kB / 0.6692 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002852/0.1719, allocations: 85.48 kB / 0.6692 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.1719, allocations: 0 / 0.6692 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1719, allocations: 0 / 0.6692 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.1719, allocations: 0 / 0.6692 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002078/0.1721, allocations: 173.6 kB / 0.6694 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1722, allocations: 0 / 0.6694 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.539e-05/0.1722, allocations: 11.98 kB / 0.6694 GB, free: 0.5742 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1722, allocations: 0 / 0.6694 GB, free: 0.5742 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.1723, allocations: 4 kB / 0.6694 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1723, allocations: 3.938 kB / 0.6694 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.1723, allocations: 3.984 kB / 0.6694 GB, free: 0.5625 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002889/0.1726, allocations: 175.4 kB / 0.6696 GB, free: 384 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.321e-05/0.1726, allocations: 81.06 kB / 0.6697 GB, free: 284 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.1727, allocations: 3.938 kB / 0.6697 GB, free: 280 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.1728, allocations: 11.98 kB / 0.6697 GB, free: 268 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.526e-05/0.1728, allocations: 7.984 kB / 0.6697 GB, free: 260 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.1729, allocations: 0 / 0.6697 GB, free: 260 kB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.578e-05/0.1729, allocations: 91.58 kB / 0.6698 GB, free: 168 kB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1729, allocations: 0 / 0.6698 GB, free: 168 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000228/0.1732, allocations: 8 kB / 0.6698 GB, free: 160 kB / 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.0006706/0.1738, allocations: 0.7154 MB / 0.6705 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002494/0.1741, allocations: 55.88 kB / 0.6705 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1741, allocations: 4 kB / 0.6705 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.1742, allocations: 24.27 kB / 0.6706 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003053/0.1745, allocations: 7.938 kB / 0.6706 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.1761, allocations: 1.292 MB / 0.6718 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.1764, allocations: 0.6846 MB / 0.6725 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.266e-05/0.1765, allocations: 0 / 0.6725 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.745e-05/0.1765, allocations: 19.42 kB / 0.6725 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of SimCode: time 3.51e-07/0.1765, allocations: 0 / 0.6725 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02316/0.1997, allocations: 1.675 MB / 0.6742 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.943/8.143, allocations: 13.44 kB / 0.6742 GB, free: 11.61 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Utilities_Math_Examples_FallingFactorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)