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.006966/0.006966, allocations: 100.5 kB / 15.73 MB, free: 6.047 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.00148/0.001481, allocations: 195.4 kB / 16.67 MB, free: 5.949 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7933/0.7933, allocations: 132.2 MB / 422.7 MB, free: 6.602 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 71.44 kB / 0.5809 GB, free: 24.09 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1439, allocations: 80.21 MB / 0.6592 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.FallingFactorial): time 0.003096/0.1471, allocations: 1.528 MB / 0.6607 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0005263/0.1476, allocations: 140.3 kB / 0.6608 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.861e-05/0.1477, allocations: 4 kB / 0.6608 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 4.66e-05/0.1478, allocations: 0 / 0.6608 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.53e-05/0.1479, allocations: 3.938 kB / 0.6608 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000392/0.1483, allocations: 31.91 kB / 0.6609 GB, free: 9.051 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001074/0.1484, allocations: 43.91 kB / 0.6609 GB, free: 9.008 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.1485, allocations: 11.98 kB / 0.6609 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.285e-05/0.1486, allocations: 15.94 kB / 0.6609 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.602e-05/0.1486, allocations: 15.92 kB / 0.6609 GB, free: 8.965 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/0.1487, allocations: 4 kB / 0.6609 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.863e-05/0.1488, allocations: 15.98 kB / 0.661 GB, free: 8.945 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.259e-05/0.1488, allocations: 15.97 kB / 0.661 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.059e-05/0.1489, allocations: 15.88 kB / 0.661 GB, free: 8.914 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000184/0.1491, allocations: 52.09 kB / 0.661 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1491, allocations: 0 / 0.661 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.725e-06/0.1491, allocations: 0 / 0.661 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.915e-06/0.1491, allocations: 0 / 0.661 GB, free: 8.863 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.0006063/0.1497, allocations: 347.4 kB / 0.6614 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.1498, allocations: 15.97 kB / 0.6614 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.382e-05/0.1498, allocations: 42.67 kB / 0.6614 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.898e-05/0.1499, allocations: 4.891 kB / 0.6614 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001673/0.15, allocations: 168.3 kB / 0.6616 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.427e-05/0.1501, allocations: 4.375 kB / 0.6616 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.1501, allocations: 4.375 kB / 0.6616 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002651/0.1504, allocations: 66.2 kB / 0.6617 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.1504, allocations: 3.938 kB / 0.6617 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.1504, allocations: 0 / 0.6617 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.1504, allocations: 4 kB / 0.6617 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002181/0.1507, allocations: 43.95 kB / 0.6617 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004874/0.1512, allocations: 284.7 kB / 0.662 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003538/0.1515, allocations: 58.53 kB / 0.662 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.1516, allocations: 24.91 kB / 0.6621 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003114/0.152, allocations: 405.5 kB / 0.6625 GB, free: 7.16 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.152, allocations: 38.5 kB / 0.6625 GB, free: 7.113 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.523e-06/0.152, allocations: 0 / 0.6625 GB, free: 7.113 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003873/0.1524, allocations: 89.62 kB / 0.6626 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.205e-05/0.1524, allocations: 55.41 kB / 0.6626 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.539e-05/0.1525, allocations: 109.8 kB / 0.6627 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.1525, allocations: 25.7 kB / 0.6628 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.501e-05/0.1526, allocations: 96.09 kB / 0.6629 GB, free: 6.707 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.508e-05/0.1526, allocations: 4.031 kB / 0.6629 GB, free: 6.703 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-05/0.1526, allocations: 13.72 kB / 0.6629 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.477e-05/0.1527, allocations: 322.8 kB / 0.6632 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.41e-05/0.1528, allocations: 19.98 kB / 0.6632 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.178e-05/0.1529, allocations: 19.97 kB / 0.6632 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001732/0.1531, allocations: 48.77 kB / 0.6633 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.1531, allocations: 0 / 0.6633 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002228/0.1533, allocations: 77.97 kB / 0.6633 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.1534, allocations: 4 kB / 0.6633 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1534, allocations: 0 / 0.6633 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.1534, allocations: 0 / 0.6633 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.955e-05/0.1535, allocations: 11.98 kB / 0.6633 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.1535, allocations: 0 / 0.6633 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.483e-05/0.1536, allocations: 8 kB / 0.6634 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.1536, allocations: 7.984 kB / 0.6634 GB, free: 6.156 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.814e-05/0.1537, allocations: 122.6 kB / 0.6635 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.844e-05/0.1537, allocations: 11.89 kB / 0.6635 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000256/0.154, allocations: 81.55 kB / 0.6636 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.154, allocations: 4 kB / 0.6636 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.154, allocations: 4 kB / 0.6636 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.154, allocations: 3.938 kB / 0.6636 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001554/0.1541, allocations: 173.6 kB / 0.6637 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.798e-06/0.1542, allocations: 0 / 0.6637 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.477e-05/0.1542, allocations: 15.92 kB / 0.6638 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1542, allocations: 0 / 0.6638 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-06/0.1543, allocations: 0 / 0.6638 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1543, allocations: 0 / 0.6638 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1543, allocations: 0 / 0.6638 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002539/0.1545, allocations: 179.4 kB / 0.6639 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.845e-05/0.1546, allocations: 89.06 kB / 0.664 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.479e-05/0.1546, allocations: 0 / 0.664 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.662e-05/0.1547, allocations: 7.984 kB / 0.664 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.295e-05/0.1547, allocations: 0 / 0.664 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.555e-06/0.1547, allocations: 7.984 kB / 0.664 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.344e-05/0.1548, allocations: 83.28 kB / 0.6641 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1548, allocations: 4 kB / 0.6641 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002502/0.1551, allocations: 8 kB / 0.6641 GB, free: 5.266 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.0005708/0.1556, allocations: 0.7124 MB / 0.6648 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002347/0.1559, allocations: 47.95 kB / 0.6649 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1559, allocations: 0 / 0.6649 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.156, allocations: 27.97 kB / 0.6649 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.1563, allocations: 0 / 0.6649 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001439/0.1577, allocations: 1.292 MB / 0.6662 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.158, allocations: 0.6807 MB / 0.6668 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.669e-05/0.1581, allocations: 8.094 kB / 0.6668 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.106e-05/0.1581, allocations: 15.38 kB / 0.6668 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of SimCode: time 6.51e-07/0.1581, allocations: 0 / 0.6668 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01769/0.1758, allocations: 1.684 MB / 0.6685 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.456/7.632, allocations: 4.062 kB / 0.6685 GB, free: 0.7539 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)