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.001539/0.001539, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.326/1.326, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9178/0.9178, allocations: 135.1 MB / 425.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 63.73 kB / 0.5055 GB, free: 5.23 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.1451, allocations: 80.94 MB / 0.5845 GB, free: 4.457 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001808/0.1469, allocations: 0.5585 MB / 0.585 GB, free: 3.891 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002435/0.1472, allocations: 55.78 kB / 0.5851 GB, free: 3.836 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.714e-05/0.1472, allocations: 0 / 0.5851 GB, free: 3.836 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.766e-05/0.1473, allocations: 7.984 kB / 0.5851 GB, free: 3.828 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.429e-06/0.1473, allocations: 0 / 0.5851 GB, free: 3.828 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002688/0.1475, allocations: 23.92 kB / 0.5851 GB, free: 3.805 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.999e-05/0.1476, allocations: 27.98 kB / 0.5851 GB, free: 3.777 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.161e-05/0.1477, allocations: 4 kB / 0.5852 GB, free: 3.773 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.021e-05/0.1477, allocations: 15.97 kB / 0.5852 GB, free: 3.758 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.65e-05/0.1477, allocations: 11.94 kB / 0.5852 GB, free: 3.746 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.491e-05/0.1478, allocations: 0 / 0.5852 GB, free: 3.746 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.792e-05/0.1478, allocations: 19.92 kB / 0.5852 GB, free: 3.727 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.118e-05/0.1479, allocations: 15.98 kB / 0.5852 GB, free: 3.711 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.213e-05/0.1479, allocations: 11.92 kB / 0.5852 GB, free: 3.699 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001011/0.148, allocations: 35.89 kB / 0.5853 GB, free: 3.664 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.148, allocations: 0 / 0.5853 GB, free: 3.664 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.148, allocations: 0 / 0.5853 GB, free: 3.664 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.1481, allocations: 0 / 0.5853 GB, free: 3.664 MB / 494.1 MB 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.0003069/0.1484, allocations: 339.5 kB / 0.5856 GB, free: 3.281 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.1484, allocations: 8.031 kB / 0.5856 GB, free: 3.273 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.164e-05/0.1484, allocations: 42.73 kB / 0.5856 GB, free: 3.223 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.58e-05/0.1485, allocations: 0.9375 kB / 0.5856 GB, free: 3.223 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.823e-05/0.1486, allocations: 172.5 kB / 0.5858 GB, free: 3.016 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.1486, allocations: 384 / 0.5858 GB, free: 3.016 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.1486, allocations: 8.375 kB / 0.5858 GB, free: 3.008 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000134/0.1487, allocations: 70.16 kB / 0.5859 GB, free: 2.934 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.1488, allocations: 3.938 kB / 0.5859 GB, free: 2.93 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.1488, allocations: 4 kB / 0.5859 GB, free: 2.926 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.1488, allocations: 0 / 0.5859 GB, free: 2.926 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.1489, allocations: 99.88 kB / 0.586 GB, free: 2.828 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001624/0.1491, allocations: 177.6 kB / 0.5861 GB, free: 2.605 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000113/0.1492, allocations: 70.55 kB / 0.5862 GB, free: 2.527 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.578e-05/0.1493, allocations: 28.84 kB / 0.5862 GB, free: 2.496 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002919/0.1496, allocations: 409.5 kB / 0.5866 GB, free: 2.004 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.1496, allocations: 34.56 kB / 0.5867 GB, free: 1.961 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.1496, allocations: 0 / 0.5867 GB, free: 1.961 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002364/0.1498, allocations: 125.7 kB / 0.5868 GB, free: 1.832 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.687e-05/0.1499, allocations: 51.41 kB / 0.5868 GB, free: 1.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.616e-05/0.1499, allocations: 89.86 kB / 0.5869 GB, free: 1.672 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.1499, allocations: 33.7 kB / 0.5869 GB, free: 1.633 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.107e-05/0.15, allocations: 84.14 kB / 0.587 GB, free: 1.547 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.029e-05/0.15, allocations: 27.64 kB / 0.5871 GB, free: 1.52 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.949e-05/0.15, allocations: 25.7 kB / 0.5871 GB, free: 1.488 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.803e-05/0.1501, allocations: 318.8 kB / 0.5874 GB, free: 1.168 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.832e-05/0.1502, allocations: 19.98 kB / 0.5874 GB, free: 1.148 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.349e-05/0.1502, allocations: 22.94 kB / 0.5874 GB, free: 1.129 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.567e-05/0.1503, allocations: 64.77 kB / 0.5875 GB, free: 1.062 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1503, allocations: 0 / 0.5875 GB, free: 1.062 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001315/0.1505, allocations: 97.55 kB / 0.5876 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.1505, allocations: 7.938 kB / 0.5876 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.1505, allocations: 0 / 0.5876 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.1505, allocations: 0 / 0.5876 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.69e-05/0.1506, allocations: 19.98 kB / 0.5876 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.1506, allocations: 0 / 0.5876 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.226e-05/0.1507, allocations: 7.906 kB / 0.5876 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.1507, allocations: 4 kB / 0.5876 GB, free: 0.9219 MB / 494.1 MB 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.0001359/0.1508, allocations: 125.8 kB / 0.5877 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.495e-05/0.1508, allocations: 15.81 kB / 0.5878 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002077/0.151, allocations: 121.5 kB / 0.5879 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1511, allocations: 0 / 0.5879 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1511, allocations: 0 / 0.5879 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1511, allocations: 4 kB / 0.5879 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00012/0.1512, allocations: 177.6 kB / 0.588 GB, free: 428 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1512, allocations: 0 / 0.588 GB, free: 428 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.078e-05/0.1513, allocations: 23.98 kB / 0.5881 GB, free: 404 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.1513, allocations: 3.938 kB / 0.5881 GB, free: 400 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.1513, allocations: 0 / 0.5881 GB, free: 400 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.1513, allocations: 7.938 kB / 0.5881 GB, free: 392 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1513, allocations: 0 / 0.5881 GB, free: 392 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001535/0.1515, allocations: 128.3 kB / 0.5882 GB, free: 248 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.458e-05/0.1515, allocations: 84.98 kB / 0.5883 GB, free: 144 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.1515, allocations: 4 kB / 0.5883 GB, free: 140 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.605e-05/0.1516, allocations: 4 kB / 0.5883 GB, free: 136 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.512e-05/0.1516, allocations: 11.98 kB / 0.5883 GB, free: 124 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.1516, allocations: 4 kB / 0.5883 GB, free: 120 kB / 494.1 MB Notification: Performance of sorting global known variables: time 2.262e-05/0.1516, allocations: 75.28 kB / 0.5884 GB, free: 44 kB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1516, allocations: 0 / 0.5884 GB, free: 44 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002022/0.1519, allocations: 16 kB / 0.5884 GB, free: 28 kB / 494.1 MB 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.0004689/0.1523, allocations: 0.6739 MB / 0.589 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001447/0.1525, allocations: 67.91 kB / 0.5891 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1525, allocations: 0 / 0.5891 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 5.181e-05/0.1525, allocations: 39.97 kB / 0.5892 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.1527, allocations: 3.938 kB / 0.5892 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003946/0.1531, allocations: 194.4 kB / 0.5893 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001963/0.1533, allocations: 0.6846 MB / 0.59 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.028e-05/0.1534, allocations: 31.97 kB / 0.59 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.33e-05/0.1534, allocations: 23.36 kB / 0.5901 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1534, allocations: 0 / 0.5901 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01534/0.1688, allocations: 1.527 MB / 0.5916 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.208/7.376, allocations: 11.62 kB / 0.5916 GB, free: 12.77 MB / 0.4981 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)