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.001122/0.001127, allocations: 108 kB / 15.61 MB, free: 152 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.001108/0.001108, allocations: 194.2 kB / 16.53 MB, free: 6.664 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.347/1.347, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7939/0.7939, allocations: 132.2 MB / 422.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002536/0.002536, allocations: 64.12 kB / 0.5019 GB, free: 3.762 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4523/0.4548, allocations: 80.2 MB / 0.5802 GB, free: 4.574 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.FallingFactorial): time 0.002721/0.4576, allocations: 1.526 MB / 0.5817 GB, free: 3.508 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003426/0.458, allocations: 134.2 kB / 0.5818 GB, free: 3.418 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.699e-05/0.458, allocations: 0.75 kB / 0.5818 GB, free: 3.418 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.782e-05/0.4581, allocations: 4.688 kB / 0.5818 GB, free: 3.414 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.894e-05/0.4581, allocations: 4.812 kB / 0.5818 GB, free: 3.41 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002596/0.4584, allocations: 40.3 kB / 0.5819 GB, free: 3.387 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 7.208e-05/0.4585, allocations: 30.7 kB / 0.5819 GB, free: 3.375 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.4586, allocations: 20.23 kB / 0.5819 GB, free: 3.363 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.347e-05/0.4586, allocations: 19.61 kB / 0.5819 GB, free: 3.352 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.614e-05/0.4587, allocations: 21.94 kB / 0.5819 GB, free: 3.34 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.63e-05/0.4587, allocations: 7.719 kB / 0.5819 GB, free: 3.336 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.331e-05/0.4588, allocations: 17.52 kB / 0.582 GB, free: 3.332 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.53e-05/0.4588, allocations: 6.656 kB / 0.582 GB, free: 3.328 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.862e-05/0.4588, allocations: 13.69 kB / 0.582 GB, free: 3.32 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001129/0.4589, allocations: 40.44 kB / 0.582 GB, free: 3.305 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.4589, allocations: 0.8438 kB / 0.582 GB, free: 3.305 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4589, allocations: 3.938 kB / 0.582 GB, free: 3.301 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.459, allocations: 0.75 kB / 0.582 GB, free: 3.301 MB / 430.1 MB 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.0004144/0.4594, allocations: 357.8 kB / 0.5824 GB, free: 2.93 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.4594, allocations: 9.75 kB / 0.5824 GB, free: 2.93 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.999e-05/0.4595, allocations: 32.55 kB / 0.5824 GB, free: 2.891 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.897e-05/0.4595, allocations: 7.75 kB / 0.5824 GB, free: 2.887 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.06e-05/0.4596, allocations: 167.3 kB / 0.5826 GB, free: 2.688 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.428e-05/0.4596, allocations: 6.281 kB / 0.5826 GB, free: 2.684 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.4596, allocations: 2.375 kB / 0.5826 GB, free: 2.684 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001959/0.4598, allocations: 70.8 kB / 0.5827 GB, free: 2.637 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.4599, allocations: 7.875 kB / 0.5827 GB, free: 2.629 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.4599, allocations: 0.6562 kB / 0.5827 GB, free: 2.629 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.4599, allocations: 1.156 kB / 0.5827 GB, free: 2.629 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002105/0.4601, allocations: 44 kB / 0.5827 GB, free: 2.621 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003657/0.4605, allocations: 280.6 kB / 0.583 GB, free: 2.332 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003266/0.4608, allocations: 65.73 kB / 0.583 GB, free: 2.293 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.4609, allocations: 25.52 kB / 0.5831 GB, free: 2.281 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001792/0.4611, allocations: 398.5 kB / 0.5834 GB, free: 1.812 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.324e-05/0.4611, allocations: 32.31 kB / 0.5835 GB, free: 1.773 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.453e-06/0.4611, allocations: 0 / 0.5835 GB, free: 1.773 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003879/0.4615, allocations: 97.05 kB / 0.5836 GB, free: 1.727 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.408e-05/0.4616, allocations: 52.06 kB / 0.5836 GB, free: 1.664 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.595e-05/0.4616, allocations: 108.2 kB / 0.5837 GB, free: 1.562 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.757e-06/0.4616, allocations: 29.64 kB / 0.5837 GB, free: 1.527 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.098e-05/0.4617, allocations: 90.7 kB / 0.5838 GB, free: 1.438 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.394e-05/0.4617, allocations: 6.469 kB / 0.5838 GB, free: 1.434 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.312e-05/0.4617, allocations: 22.39 kB / 0.5839 GB, free: 1.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.234e-05/0.4618, allocations: 316.9 kB / 0.5842 GB, free: 1.094 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.563e-05/0.4619, allocations: 20.81 kB / 0.5842 GB, free: 1.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.651e-05/0.462, allocations: 24.5 kB / 0.5842 GB, free: 1.082 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.4622, allocations: 50.11 kB / 0.5843 GB, free: 1.062 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.4622, allocations: 0 / 0.5843 GB, free: 1.062 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002151/0.4624, allocations: 73.75 kB / 0.5843 GB, free: 1.023 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.4624, allocations: 9.531 kB / 0.5843 GB, free: 1.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4624, allocations: 0.7969 kB / 0.5843 GB, free: 1.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.4624, allocations: 1.156 kB / 0.5843 GB, free: 1.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-05/0.4625, allocations: 19.02 kB / 0.5844 GB, free: 1.012 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.4625, allocations: 0 / 0.5844 GB, free: 1.012 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.986e-05/0.4626, allocations: 10.81 kB / 0.5844 GB, free: 1.008 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-06/0.4626, allocations: 1.844 kB / 0.5844 GB, free: 1.008 MB / 430.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: 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.565e-05/0.4627, allocations: 117.6 kB / 0.5845 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.783e-05/0.4627, allocations: 6.531 kB / 0.5845 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002618/0.463, allocations: 84.25 kB / 0.5846 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.463, allocations: 1.188 kB / 0.5846 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.463, allocations: 1.281 kB / 0.5846 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.463, allocations: 4.031 kB / 0.5846 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001262/0.4631, allocations: 169.8 kB / 0.5847 GB, free: 0.625 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.4631, allocations: 4 kB / 0.5847 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.721e-05/0.4632, allocations: 15.28 kB / 0.5847 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.4632, allocations: 1.156 kB / 0.5847 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.4633, allocations: 0.5156 kB / 0.5847 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.4633, allocations: 1.781 kB / 0.5848 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4633, allocations: 0 / 0.5848 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002387/0.4635, allocations: 174.3 kB / 0.5849 GB, free: 484 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.905e-05/0.4635, allocations: 82.7 kB / 0.585 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.523e-05/0.4636, allocations: 0.7188 kB / 0.585 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.575e-05/0.4636, allocations: 6.484 kB / 0.585 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.999e-05/0.4637, allocations: 9.828 kB / 0.585 GB, free: 380 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.15e-06/0.4637, allocations: 1.938 kB / 0.585 GB, free: 380 kB / 430.1 MB Notification: Performance of sorting global known variables: time 2.799e-05/0.4638, allocations: 87.25 kB / 0.5851 GB, free: 300 kB / 430.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4638, allocations: 0 / 0.5851 GB, free: 300 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002293/0.464, allocations: 9.031 kB / 0.5851 GB, free: 300 kB / 430.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: 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.0005454/0.4645, allocations: 0.7139 MB / 0.5858 GB, free: 15.61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002405/0.4648, allocations: 40.98 kB / 0.5858 GB, free: 15.61 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.4648, allocations: 9.375 kB / 0.5859 GB, free: 15.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.4649, allocations: 28.52 kB / 0.5859 GB, free: 15.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002845/0.4652, allocations: 6.688 kB / 0.5859 GB, free: 15.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001382/0.4666, allocations: 1.292 MB / 0.5871 GB, free: 14.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002147/0.4668, allocations: 0.6808 MB / 0.5878 GB, free: 13.69 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.364e-05/0.4669, allocations: 6.938 kB / 0.5878 GB, free: 13.69 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.157e-05/0.4669, allocations: 16.28 kB / 0.5878 GB, free: 13.68 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4669, allocations: 0.75 kB / 0.5878 GB, free: 13.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0177/0.4846, allocations: 1.658 MB / 0.5895 GB, free: 13.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.321/7.806, allocations: 2.562 kB / 0.5895 GB, free: 13.3 MB / 446.1 MB (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)