Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.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.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",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.001516/0.001516, 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.00181/0.00181, allocations: 192.1 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.348/1.348, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7451/0.7451, allocations: 132.2 MB / 422.6 MB, free: 1.801 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 64.3 kB / 0.5019 GB, free: 3.785 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.366/0.3672, allocations: 80.2 MB / 0.5802 GB, free: 4.586 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.00191/0.3692, allocations: 0.5895 MB / 0.5808 GB, free: 4.211 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002729/0.3695, allocations: 45.58 kB / 0.5808 GB, free: 4.184 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.756e-05/0.3695, allocations: 0 / 0.5808 GB, free: 4.184 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.223e-05/0.3695, allocations: 0 / 0.5808 GB, free: 4.184 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.919e-06/0.3695, allocations: 0 / 0.5808 GB, free: 4.184 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002494/0.3698, allocations: 10.5 kB / 0.5808 GB, free: 4.18 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.089e-05/0.3698, allocations: 11.11 kB / 0.5808 GB, free: 4.172 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.704e-05/0.3699, allocations: 1.25 kB / 0.5808 GB, free: 4.172 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.589e-05/0.3699, allocations: 2.5 kB / 0.5808 GB, free: 4.172 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.254e-05/0.3699, allocations: 0.7969 kB / 0.5808 GB, free: 4.172 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.002e-05/0.37, allocations: 0.7812 kB / 0.5808 GB, free: 4.172 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.735e-05/0.37, allocations: 13.89 kB / 0.5809 GB, free: 4.164 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.094e-05/0.37, allocations: 4.594 kB / 0.5809 GB, free: 4.16 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.077e-05/0.3701, allocations: 0.8125 kB / 0.5809 GB, free: 4.16 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 7.683e-05/0.3701, allocations: 14.92 kB / 0.5809 GB, free: 4.152 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.3702, allocations: 0 / 0.5809 GB, free: 4.152 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3702, allocations: 0.5 kB / 0.5809 GB, free: 4.152 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.3702, allocations: 0 / 0.5809 GB, free: 4.152 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000205/0.3704, allocations: 316.4 kB / 0.5812 GB, free: 3.801 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.3704, allocations: 10.62 kB / 0.5812 GB, free: 3.801 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.132e-05/0.3705, allocations: 30.75 kB / 0.5812 GB, free: 3.762 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.313e-05/0.3705, allocations: 10.5 kB / 0.5812 GB, free: 3.754 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.359e-05/0.3705, allocations: 166 kB / 0.5814 GB, free: 3.555 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.3706, allocations: 1.156 kB / 0.5814 GB, free: 3.555 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.457e-06/0.3706, allocations: 1.156 kB / 0.5814 GB, free: 3.555 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.252e-05/0.3707, allocations: 35.61 kB / 0.5814 GB, free: 3.52 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.3707, allocations: 3.938 kB / 0.5814 GB, free: 3.516 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-06/0.3707, allocations: 0.75 kB / 0.5814 GB, free: 3.516 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.3707, allocations: 0 / 0.5814 GB, free: 3.516 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.921e-05/0.3707, allocations: 4.531 kB / 0.5814 GB, free: 3.516 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.581e-05/0.3708, allocations: 158.2 kB / 0.5816 GB, free: 3.316 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.824e-05/0.3709, allocations: 24.56 kB / 0.5816 GB, free: 3.289 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.628e-05/0.3709, allocations: 8 kB / 0.5816 GB, free: 3.281 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001287/0.371, allocations: 81.05 kB / 0.5817 GB, free: 3.188 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.276e-05/0.3711, allocations: 36.73 kB / 0.5817 GB, free: 3.145 MB / 430.1 MB Notification: Performance of pre-optimization done (n=2): time 1.031e-06/0.3711, allocations: 0 / 0.5817 GB, free: 3.145 MB / 430.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001146/0.3712, allocations: 48.64 kB / 0.5818 GB, free: 3.102 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.878e-05/0.3712, allocations: 56.64 kB / 0.5818 GB, free: 3.035 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.641e-05/0.3712, allocations: 89.86 kB / 0.5819 GB, free: 2.938 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.412e-06/0.3712, allocations: 31.17 kB / 0.5819 GB, free: 2.902 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.205e-06/0.3712, allocations: 80.14 kB / 0.582 GB, free: 2.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.449e-05/0.3713, allocations: 1.156 kB / 0.582 GB, free: 2.82 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.286e-05/0.3713, allocations: 17.06 kB / 0.582 GB, free: 2.801 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.59e-05/0.3713, allocations: 312.8 kB / 0.5823 GB, free: 2.488 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.177e-05/0.3714, allocations: 10.09 kB / 0.5823 GB, free: 2.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.404e-06/0.3714, allocations: 2.922 kB / 0.5823 GB, free: 2.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.597e-05/0.3714, allocations: 11.08 kB / 0.5824 GB, free: 2.473 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.3714, allocations: 0 / 0.5824 GB, free: 2.473 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.024e-05/0.3715, allocations: 40.09 kB / 0.5824 GB, free: 2.438 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.3715, allocations: 7.594 kB / 0.5824 GB, free: 2.438 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.319e-06/0.3715, allocations: 3.938 kB / 0.5824 GB, free: 2.434 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.3715, allocations: 1.719 kB / 0.5824 GB, free: 2.434 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.955e-05/0.3716, allocations: 7.219 kB / 0.5824 GB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.3716, allocations: 4.594 kB / 0.5824 GB, free: 2.426 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.403e-05/0.3716, allocations: 7.078 kB / 0.5824 GB, free: 2.422 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.057e-06/0.3716, allocations: 0.9375 kB / 0.5824 GB, free: 2.422 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 3.994e-05/0.3716, allocations: 109.3 kB / 0.5825 GB, free: 2.309 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.103e-06/0.3716, allocations: 1.438 kB / 0.5825 GB, free: 2.309 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.36e-05/0.3717, allocations: 46.72 kB / 0.5826 GB, free: 2.266 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.3717, allocations: 1.219 kB / 0.5826 GB, free: 2.266 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3717, allocations: 4.594 kB / 0.5826 GB, free: 2.262 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.3717, allocations: 0.6562 kB / 0.5826 GB, free: 2.262 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.879e-05/0.3718, allocations: 150.2 kB / 0.5827 GB, free: 2.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3718, allocations: 0.75 kB / 0.5827 GB, free: 2.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.2e-05/0.3718, allocations: 3.609 kB / 0.5827 GB, free: 2.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.3718, allocations: 0.5312 kB / 0.5827 GB, free: 2.07 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.114e-06/0.3719, allocations: 13.5 kB / 0.5827 GB, free: 2.059 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3719, allocations: 0 / 0.5827 GB, free: 2.059 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3719, allocations: 3.938 kB / 0.5827 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.961e-05/0.3719, allocations: 69.3 kB / 0.5828 GB, free: 1.98 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.404e-05/0.372, allocations: 79.08 kB / 0.5829 GB, free: 1.887 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.031e-05/0.372, allocations: 4.469 kB / 0.5829 GB, free: 1.883 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.135e-05/0.372, allocations: 1.578 kB / 0.5829 GB, free: 1.883 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.772e-05/0.372, allocations: 1.891 kB / 0.5829 GB, free: 1.883 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.372, allocations: 1.875 kB / 0.5829 GB, free: 1.883 MB / 430.1 MB Notification: Performance of sorting global known variables: time 1.132e-05/0.372, allocations: 75.28 kB / 0.583 GB, free: 1.809 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.372, allocations: 0 / 0.583 GB, free: 1.809 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0001921/0.3722, allocations: 4.156 kB / 0.583 GB, free: 1.809 MB / 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 (fac,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0002474/0.3725, allocations: 0.6145 MB / 0.5836 GB, free: 1.199 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 8.063e-05/0.3726, allocations: 8.812 kB / 0.5836 GB, free: 1.199 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3726, allocations: 0 / 0.5836 GB, free: 1.199 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.59e-05/0.3726, allocations: 8.719 kB / 0.5836 GB, free: 1.195 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001242/0.3727, allocations: 5.75 kB / 0.5836 GB, free: 1.191 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000242/0.373, allocations: 114.2 kB / 0.5837 GB, free: 1.055 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.329e-05/0.3731, allocations: 0.6731 MB / 0.5844 GB, free: 368 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.214e-05/0.3731, allocations: 2.203 kB / 0.5844 GB, free: 368 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.763e-05/0.3731, allocations: 12.88 kB / 0.5844 GB, free: 356 kB / 430.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3731, allocations: 0.6562 kB / 0.5844 GB, free: 356 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01566/0.3888, allocations: 1.02 MB / 0.5854 GB, free: 20 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.177/7.566, allocations: 17.77 kB / 0.5854 GB, free: 8 kB / 430.1 MB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)