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.006351/0.006351, allocations: 99.11 kB / 15.73 MB, free: 6.051 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.001332/0.001332, allocations: 202.4 kB / 16.68 MB, free: 5.965 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9952/0.9952, allocations: 135.1 MB / 425.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001333, allocations: 67.91 kB / 0.5851 GB, free: 3.863 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4675/0.4689, allocations: 80.91 MB / 0.6642 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.FallingFactorial): time 0.002251/0.4711, allocations: 1.529 MB / 0.6657 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003327/0.4715, allocations: 143.4 kB / 0.6658 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.543e-05/0.4715, allocations: 0 / 0.6658 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.518e-05/0.4716, allocations: 4 kB / 0.6658 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.306e-05/0.4716, allocations: 5.281 kB / 0.6658 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.4719, allocations: 29.19 kB / 0.6658 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.437e-05/0.472, allocations: 37.81 kB / 0.6659 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.621e-05/0.4721, allocations: 14.61 kB / 0.6659 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.814e-05/0.4721, allocations: 16.92 kB / 0.6659 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.171e-05/0.4722, allocations: 17.27 kB / 0.6659 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.395e-05/0.4722, allocations: 3.844 kB / 0.6659 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.12e-05/0.4723, allocations: 30 kB / 0.6659 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.538e-05/0.4723, allocations: 5.344 kB / 0.6659 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.852e-05/0.4723, allocations: 19.39 kB / 0.666 GB, free: 5.84 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001321/0.4725, allocations: 46.36 kB / 0.666 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.4725, allocations: 1.219 kB / 0.666 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.733e-06/0.4725, allocations: 0 / 0.666 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.4725, allocations: 0 / 0.666 GB, free: 5.809 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.0004493/0.4729, allocations: 353.8 kB / 0.6664 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.473, allocations: 8.062 kB / 0.6664 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.94e-05/0.473, allocations: 44.09 kB / 0.6664 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.942e-05/0.4731, allocations: 7.328 kB / 0.6664 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.87e-05/0.4731, allocations: 163.1 kB / 0.6666 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.4732, allocations: 1.656 kB / 0.6666 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.4732, allocations: 2.75 kB / 0.6666 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.4734, allocations: 67.53 kB / 0.6666 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.4734, allocations: 3.938 kB / 0.6666 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.4734, allocations: 4 kB / 0.6666 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.4734, allocations: 1.312 kB / 0.6666 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001884/0.4736, allocations: 44.61 kB / 0.6667 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003214/0.474, allocations: 285.7 kB / 0.667 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003237/0.4743, allocations: 54.36 kB / 0.667 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.661e-05/0.4744, allocations: 32.55 kB / 0.667 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001931/0.4746, allocations: 400.8 kB / 0.6674 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.59e-05/0.4746, allocations: 35.94 kB / 0.6675 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.353e-06/0.4746, allocations: 0 / 0.6675 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003839/0.475, allocations: 90.5 kB / 0.6675 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.228e-05/0.4751, allocations: 52.75 kB / 0.6676 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.407e-05/0.4751, allocations: 122.5 kB / 0.6677 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.032e-05/0.4751, allocations: 30.92 kB / 0.6677 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.954e-05/0.4752, allocations: 89.41 kB / 0.6678 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.471e-05/0.4752, allocations: 5.422 kB / 0.6678 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.2e-05/0.4752, allocations: 17.36 kB / 0.6678 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.348e-05/0.4753, allocations: 320.1 kB / 0.6681 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.257e-05/0.4754, allocations: 22.72 kB / 0.6682 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.003e-05/0.4755, allocations: 19.08 kB / 0.6682 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001659/0.4757, allocations: 54.92 kB / 0.6682 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.4757, allocations: 0 / 0.6682 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002015/0.4759, allocations: 72.28 kB / 0.6683 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.4759, allocations: 8.5 kB / 0.6683 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.4759, allocations: 0 / 0.6683 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.4759, allocations: 4 kB / 0.6683 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.942e-05/0.476, allocations: 11.73 kB / 0.6683 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.476, allocations: 1.406 kB / 0.6683 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.596e-05/0.4761, allocations: 6.703 kB / 0.6683 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.4761, allocations: 5.531 kB / 0.6683 GB, free: 3.375 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 5.342e-05/0.4762, allocations: 117.8 kB / 0.6685 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.839e-05/0.4762, allocations: 6.141 kB / 0.6685 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002381/0.4764, allocations: 87.8 kB / 0.6685 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.4764, allocations: 3.938 kB / 0.6686 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4765, allocations: 1.344 kB / 0.6686 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.4765, allocations: 0 / 0.6686 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001147/0.4766, allocations: 169.9 kB / 0.6687 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.4766, allocations: 3.984 kB / 0.6687 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.066e-05/0.4767, allocations: 7.469 kB / 0.6687 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.4767, allocations: 0 / 0.6687 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.4767, allocations: 5.234 kB / 0.6687 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.4767, allocations: 4 kB / 0.6687 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.4767, allocations: 0 / 0.6687 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002172/0.4769, allocations: 172.5 kB / 0.6689 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.084e-05/0.4769, allocations: 90.31 kB / 0.669 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.477, allocations: 3.984 kB / 0.669 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.265e-05/0.477, allocations: 3.625 kB / 0.669 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.586e-05/0.4771, allocations: 11.55 kB / 0.669 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-06/0.4771, allocations: 1.344 kB / 0.669 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.897e-05/0.4772, allocations: 85.16 kB / 0.6691 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4772, allocations: 0 / 0.6691 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002321/0.4774, allocations: 13.42 kB / 0.6691 GB, free: 2.602 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.0004338/0.4778, allocations: 0.7142 MB / 0.6698 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002324/0.4781, allocations: 50.08 kB / 0.6698 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.4781, allocations: 0 / 0.6698 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.667e-05/0.4782, allocations: 23.73 kB / 0.6699 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002929/0.4785, allocations: 3.703 kB / 0.6699 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.4797, allocations: 1.295 MB / 0.6711 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001634/0.4799, allocations: 0.6791 MB / 0.6718 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.264e-05/0.4799, allocations: 2.562 kB / 0.6718 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.867e-05/0.48, allocations: 19.55 kB / 0.6718 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of SimCode: time 3.21e-07/0.48, allocations: 4 kB / 0.6718 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01752/0.4975, allocations: 1.674 MB / 0.6735 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.449/7.947, allocations: 5.219 kB / 0.6735 GB, free: 14.97 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)