Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Functions.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.Functions.Examples.FallingFactorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_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.008127/0.008127, allocations: 99.45 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.002023/0.002023, allocations: 191.9 kB / 16.67 MB, free: 5.969 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.371/1.371, 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.8189/0.8189, allocations: 135.1 MB / 425.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 64.28 kB / 0.5852 GB, free: 21.92 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.149, allocations: 80.92 MB / 0.6642 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002592/0.1516, allocations: 0.5751 MB / 0.6648 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000421/0.1521, allocations: 58.38 kB / 0.6648 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.674e-05/0.1521, allocations: 8 kB / 0.6648 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 4.108e-05/0.1522, allocations: 0 / 0.6648 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.965e-06/0.1522, allocations: 0 / 0.6648 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000374/0.1526, allocations: 15.92 kB / 0.6648 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001326/0.1527, allocations: 35.95 kB / 0.6649 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.548e-05/0.1528, allocations: 4 kB / 0.6649 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.474e-05/0.1528, allocations: 7.938 kB / 0.6649 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.539e-05/0.1529, allocations: 15.97 kB / 0.6649 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.672e-05/0.1529, allocations: 4 kB / 0.6649 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001236/0.1531, allocations: 15.98 kB / 0.6649 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.761e-05/0.1531, allocations: 4 kB / 0.6649 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.953e-05/0.1532, allocations: 23.92 kB / 0.6649 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000156/0.1533, allocations: 40.11 kB / 0.665 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.1534, allocations: 0 / 0.665 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of FrontEnd: time 4.799e-06/0.1534, allocations: 0 / 0.665 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.1534, allocations: 3.938 kB / 0.665 GB, free: 5.453 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005209/0.1539, allocations: 335.5 kB / 0.6653 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/0.154, allocations: 9.109 kB / 0.6653 GB, free: 5.066 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.376e-05/0.1541, allocations: 42.67 kB / 0.6654 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.933e-05/0.1541, allocations: 4.891 kB / 0.6654 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002128/0.1544, allocations: 168.7 kB / 0.6655 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.1544, allocations: 4.375 kB / 0.6655 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.971e-05/0.1544, allocations: 4.375 kB / 0.6655 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002286/0.1547, allocations: 66.16 kB / 0.6656 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.1547, allocations: 3.938 kB / 0.6656 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.1547, allocations: 4 kB / 0.6656 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.1547, allocations: 4 kB / 0.6656 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002384/0.155, allocations: 103.8 kB / 0.6657 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002777/0.1553, allocations: 173.6 kB / 0.6659 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001806/0.1555, allocations: 78.59 kB / 0.6659 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.19e-05/0.1555, allocations: 28.84 kB / 0.666 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00046/0.156, allocations: 405.5 kB / 0.6664 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.68e-05/0.1561, allocations: 34.56 kB / 0.6664 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.282e-06/0.1561, allocations: 0 / 0.6664 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0002896/0.1564, allocations: 117.5 kB / 0.6665 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.1564, allocations: 51.41 kB / 0.6666 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.334e-05/0.1565, allocations: 105.8 kB / 0.6667 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.1565, allocations: 25.7 kB / 0.6667 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.293e-05/0.1566, allocations: 84.36 kB / 0.6668 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.747e-05/0.1566, allocations: 23.8 kB / 0.6668 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.428e-05/0.1567, allocations: 33.64 kB / 0.6668 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001672/0.1569, allocations: 318.8 kB / 0.6671 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.003e-05/0.157, allocations: 19.98 kB / 0.6671 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.323e-05/0.157, allocations: 19.98 kB / 0.6672 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001513/0.1572, allocations: 60.83 kB / 0.6672 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1572, allocations: 0 / 0.6672 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002714/0.1575, allocations: 102.2 kB / 0.6673 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.1575, allocations: 7.938 kB / 0.6673 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.1575, allocations: 3.984 kB / 0.6673 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.1575, allocations: 0 / 0.6673 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.1577, allocations: 19.98 kB / 0.6673 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.1577, allocations: 0 / 0.6673 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.174e-05/0.1577, allocations: 3.938 kB / 0.6673 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.1578, allocations: 4 kB / 0.6673 GB, free: 2.707 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: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0002463/0.158, allocations: 129.8 kB / 0.6675 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.236e-05/0.1581, allocations: 11.89 kB / 0.6675 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003407/0.1585, allocations: 117.7 kB / 0.6676 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.1585, allocations: 0 / 0.6676 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.1585, allocations: 0 / 0.6676 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.1585, allocations: 3.984 kB / 0.6676 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002162/0.1587, allocations: 177.6 kB / 0.6678 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.1588, allocations: 0 / 0.6678 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.1589, allocations: 27.92 kB / 0.6678 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.1589, allocations: 3.938 kB / 0.6678 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.1589, allocations: 4 kB / 0.6678 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.1589, allocations: 0 / 0.6678 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.1589, allocations: 7.938 kB / 0.6678 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002593/0.1592, allocations: 121.1 kB / 0.6679 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.537e-05/0.1593, allocations: 84.98 kB / 0.668 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.55e-05/0.1593, allocations: 8 kB / 0.668 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.721e-05/0.1594, allocations: 4 kB / 0.668 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.765e-05/0.1594, allocations: 7.984 kB / 0.668 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.1594, allocations: 4 kB / 0.668 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.637e-05/0.1595, allocations: 75.28 kB / 0.6681 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.444e-06/0.1595, allocations: 0 / 0.6681 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003605/0.1599, allocations: 15.94 kB / 0.6681 GB, free: 1.816 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0007847/0.1607, allocations: 0.68 MB / 0.6688 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002239/0.1609, allocations: 67.84 kB / 0.6688 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1609, allocations: 0 / 0.6688 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.426e-05/0.161, allocations: 35.97 kB / 0.6689 GB, free: 1.008 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/0.1613, allocations: 4 kB / 0.6689 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005342/0.1618, allocations: 178.4 kB / 0.6691 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.1622, allocations: 0.6846 MB / 0.6697 GB, free: 80 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001154/0.1623, allocations: 31.97 kB / 0.6698 GB, free: 48 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.002e-05/0.1624, allocations: 19.42 kB / 0.6698 GB, free: 28 kB / 0.4981 GB Notification: Performance of SimCode: time 3.81e-07/0.1624, allocations: 0 / 0.6698 GB, free: 28 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02158/0.1839, allocations: 1.545 MB / 0.6713 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.588/7.772, allocations: 7.312 kB / 0.6713 GB, free: 14.56 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 13.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00556 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_FallingFactorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)