Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.Factorial.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.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",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.005353/0.005353, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.001255/0.001255, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.486/1.486, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8545/0.8545, allocations: 132.2 MB / 422.7 MB, free: 6.594 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 73.84 kB / 0.5809 GB, free: 24.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.162, allocations: 80.2 MB / 0.6592 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.00286/0.1649, allocations: 1.512 MB / 0.6607 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0004086/0.1653, allocations: 124.5 kB / 0.6608 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.109e-05/0.1653, allocations: 3.938 kB / 0.6608 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.299e-05/0.1654, allocations: 0 / 0.6608 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.531e-05/0.1654, allocations: 3.938 kB / 0.6608 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002498/0.1657, allocations: 19.97 kB / 0.6608 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 9.704e-05/0.1658, allocations: 39.91 kB / 0.6609 GB, free: 9.027 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.1659, allocations: 8 kB / 0.6609 GB, free: 9.02 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.267e-05/0.166, allocations: 11.98 kB / 0.6609 GB, free: 9.008 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.967e-05/0.166, allocations: 15.92 kB / 0.6609 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.671e-05/0.1661, allocations: 4 kB / 0.6609 GB, free: 8.988 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.988e-05/0.1661, allocations: 8 kB / 0.6609 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.015e-05/0.1662, allocations: 15.92 kB / 0.6609 GB, free: 8.965 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.136e-05/0.1662, allocations: 15.86 kB / 0.6609 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.1663, allocations: 40.06 kB / 0.661 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1664, allocations: 0 / 0.661 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.503e-06/0.1664, allocations: 0 / 0.661 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.1664, allocations: 0 / 0.661 GB, free: 8.91 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005253/0.1669, allocations: 347.4 kB / 0.6613 GB, free: 8.52 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.167, allocations: 8.031 kB / 0.6613 GB, free: 8.512 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.45e-05/0.167, allocations: 34.75 kB / 0.6613 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.881e-05/0.167, allocations: 4.938 kB / 0.6614 GB, free: 8.465 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001465/0.1672, allocations: 168.3 kB / 0.6615 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.415e-05/0.1672, allocations: 4.375 kB / 0.6615 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-06/0.1672, allocations: 384 / 0.6615 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002006/0.1674, allocations: 62.22 kB / 0.6616 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.1675, allocations: 7.938 kB / 0.6616 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.1675, allocations: 0 / 0.6616 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.1675, allocations: 0 / 0.6616 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.1677, allocations: 43.89 kB / 0.6616 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004344/0.1681, allocations: 268.9 kB / 0.6619 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003401/0.1685, allocations: 54.55 kB / 0.6619 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.1686, allocations: 28.89 kB / 0.662 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001329/0.1687, allocations: 77.11 kB / 0.662 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/0.1688, allocations: 42.5 kB / 0.6621 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.213e-06/0.1688, allocations: 0 / 0.6621 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004123/0.1692, allocations: 93.62 kB / 0.6622 GB, free: 7.492 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/0.1693, allocations: 51.41 kB / 0.6622 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.914e-05/0.1693, allocations: 101.8 kB / 0.6623 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.1694, allocations: 25.7 kB / 0.6623 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.062e-05/0.1694, allocations: 88.09 kB / 0.6624 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.577e-05/0.1694, allocations: 7.953 kB / 0.6624 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.785e-05/0.1695, allocations: 13.72 kB / 0.6624 GB, free: 7.172 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1696, allocations: 326.8 kB / 0.6628 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.456e-05/0.1697, allocations: 15.98 kB / 0.6628 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.053e-05/0.1698, allocations: 24.28 kB / 0.6628 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001789/0.17, allocations: 52.84 kB / 0.6628 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.17, allocations: 0 / 0.6628 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002208/0.1702, allocations: 77.64 kB / 0.6629 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.1703, allocations: 4 kB / 0.6629 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1703, allocations: 0 / 0.6629 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.1703, allocations: 0 / 0.6629 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.782e-05/0.1704, allocations: 15.98 kB / 0.6629 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.1704, allocations: 0 / 0.6629 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.395e-05/0.1705, allocations: 4 kB / 0.6629 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-06/0.1705, allocations: 7.922 kB / 0.6629 GB, free: 6.637 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 (rea2Int.y,fac.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.716e-05/0.1706, allocations: 126.6 kB / 0.6631 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.261e-05/0.1706, allocations: 0 / 0.6631 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002729/0.1709, allocations: 89.14 kB / 0.6631 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1709, allocations: 0 / 0.6631 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1709, allocations: 0 / 0.6631 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.1709, allocations: 0 / 0.6631 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001832/0.1711, allocations: 173.5 kB / 0.6633 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1711, allocations: 0 / 0.6633 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.531e-05/0.1712, allocations: 15.98 kB / 0.6633 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.1712, allocations: 0 / 0.6633 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.1712, allocations: 0 / 0.6633 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.1712, allocations: 0 / 0.6633 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1712, allocations: 0 / 0.6633 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002757/0.1715, allocations: 175.4 kB / 0.6635 GB, free: 5.984 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/0.1716, allocations: 81.09 kB / 0.6636 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.1716, allocations: 4 kB / 0.6636 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.188e-05/0.1717, allocations: 4 kB / 0.6636 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.878e-05/0.1717, allocations: 7.984 kB / 0.6636 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.1717, allocations: 0 / 0.6636 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.691e-05/0.1718, allocations: 83.28 kB / 0.6637 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1718, allocations: 0 / 0.6637 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002353/0.172, allocations: 8 kB / 0.6637 GB, free: 5.781 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 (fac.y,rea2Int.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.0006372/0.1727, allocations: 0.7203 MB / 0.6644 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002401/0.1729, allocations: 47.97 kB / 0.6644 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1729, allocations: 0 / 0.6644 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.173, allocations: 27.98 kB / 0.6645 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.1733, allocations: 4 kB / 0.6645 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000423/0.1737, allocations: 143 kB / 0.6646 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000292/0.174, allocations: 0.6768 MB / 0.6653 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.972e-05/0.1741, allocations: 4 kB / 0.6653 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.768e-05/0.1741, allocations: 11.44 kB / 0.6653 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1741, allocations: 4 kB / 0.6653 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02202/0.1962, allocations: 1.556 MB / 0.6668 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.897/8.093, allocations: 14.11 kB / 0.6668 GB, free: 2.562 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 IDEAS_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)