Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.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-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.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_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.008223/0.008223, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.002108/0.002108, allocations: 198.1 kB / 16.68 MB, free: 5.977 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.467/1.467, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.006/1.006, allocations: 135.6 MB / 426.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 67.89 kB / 0.5858 GB, free: 3.223 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4025/0.4044, allocations: 81.02 MB / 0.6649 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002582/0.4071, allocations: 1.503 MB / 0.6663 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000315/0.4074, allocations: 127.8 kB / 0.6665 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.456e-05/0.4074, allocations: 4 kB / 0.6665 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.874e-05/0.4075, allocations: 3.938 kB / 0.6665 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.633e-05/0.4075, allocations: 1.281 kB / 0.6665 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002142/0.4077, allocations: 25.88 kB / 0.6665 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.632e-05/0.4078, allocations: 28.48 kB / 0.6665 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.133e-05/0.4079, allocations: 11.55 kB / 0.6665 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.198e-05/0.408, allocations: 13.09 kB / 0.6665 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.561e-05/0.408, allocations: 16.3 kB / 0.6666 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.412e-05/0.408, allocations: 11.3 kB / 0.6666 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.742e-05/0.4081, allocations: 14.73 kB / 0.6666 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.284e-05/0.4081, allocations: 5.062 kB / 0.6666 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.55e-05/0.4081, allocations: 14.61 kB / 0.6666 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001075/0.4083, allocations: 36.41 kB / 0.6666 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.4083, allocations: 0 / 0.6666 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.663e-06/0.4083, allocations: 1.188 kB / 0.6666 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.728e-06/0.4083, allocations: 0 / 0.6666 GB, free: 5.473 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003793/0.4087, allocations: 348.9 kB / 0.667 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.4087, allocations: 12.56 kB / 0.667 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.548e-05/0.4087, allocations: 32.03 kB / 0.667 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.357e-05/0.4088, allocations: 3.125 kB / 0.667 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.718e-05/0.4088, allocations: 165.8 kB / 0.6672 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.4089, allocations: 1.375 kB / 0.6672 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.337e-06/0.4089, allocations: 1.875 kB / 0.6672 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001752/0.4091, allocations: 61.09 kB / 0.6672 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.4091, allocations: 3.938 kB / 0.6672 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.4091, allocations: 1.312 kB / 0.6672 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.4091, allocations: 4 kB / 0.6673 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/0.4093, allocations: 42.39 kB / 0.6673 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002976/0.4096, allocations: 265.7 kB / 0.6675 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003278/0.4099, allocations: 66.77 kB / 0.6676 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.59e-05/0.41, allocations: 32.2 kB / 0.6676 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.73e-05/0.4102, allocations: 80.08 kB / 0.6677 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.329e-05/0.4102, allocations: 32.09 kB / 0.6677 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.143e-06/0.4102, allocations: 3.938 kB / 0.6678 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003669/0.4105, allocations: 92.59 kB / 0.6678 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.394e-05/0.4106, allocations: 56.62 kB / 0.6679 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.883e-05/0.4106, allocations: 99.14 kB / 0.668 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.055e-06/0.4106, allocations: 25.7 kB / 0.668 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.781e-05/0.4107, allocations: 93.58 kB / 0.6681 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.424e-05/0.4107, allocations: 4.953 kB / 0.6681 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.079e-05/0.4107, allocations: 17.91 kB / 0.6681 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.553e-05/0.4108, allocations: 311.9 kB / 0.6684 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.925e-05/0.4109, allocations: 26.09 kB / 0.6684 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.098e-05/0.411, allocations: 14.48 kB / 0.6685 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.4111, allocations: 50.88 kB / 0.6685 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4111, allocations: 0 / 0.6685 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000198/0.4114, allocations: 76.78 kB / 0.6686 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.4114, allocations: 5.156 kB / 0.6686 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.4114, allocations: 4 kB / 0.6686 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.4114, allocations: 5.391 kB / 0.6686 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.535e-05/0.4115, allocations: 6.312 kB / 0.6686 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.4115, allocations: 1.281 kB / 0.6686 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.354e-05/0.4115, allocations: 11.7 kB / 0.6686 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.4116, allocations: 1.031 kB / 0.6686 GB, free: 3.457 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 (rea2Int.y,fac.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 4.771e-05/0.4116, allocations: 115.2 kB / 0.6687 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.322e-05/0.4116, allocations: 2.594 kB / 0.6687 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002395/0.4119, allocations: 89.39 kB / 0.6688 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.4119, allocations: 5.297 kB / 0.6688 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.4119, allocations: 0 / 0.6688 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.4119, allocations: 1.812 kB / 0.6688 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.412, allocations: 159.1 kB / 0.669 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.412, allocations: 5.484 kB / 0.669 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.119e-05/0.4121, allocations: 10.34 kB / 0.669 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.4121, allocations: 1.188 kB / 0.669 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.4121, allocations: 7.984 kB / 0.669 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.4121, allocations: 1.375 kB / 0.669 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.4121, allocations: 0 / 0.669 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002212/0.4124, allocations: 179 kB / 0.6692 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.747e-05/0.4124, allocations: 78.58 kB / 0.6692 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.4124, allocations: 3.984 kB / 0.6692 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.349e-05/0.4125, allocations: 7.938 kB / 0.6693 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.399e-05/0.4126, allocations: 14.58 kB / 0.6693 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.4126, allocations: 1.594 kB / 0.6693 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.99e-05/0.4126, allocations: 77.62 kB / 0.6693 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4126, allocations: 1.312 kB / 0.6693 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002209/0.4128, allocations: 10.53 kB / 0.6694 GB, free: 2.688 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 (fac.y,rea2Int.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.0004274/0.4133, allocations: 0.7086 MB / 0.67 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002317/0.4135, allocations: 53.39 kB / 0.6701 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.4135, allocations: 0 / 0.6701 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.588e-05/0.4136, allocations: 26.19 kB / 0.6701 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.4139, allocations: 6.594 kB / 0.6701 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003876/0.4143, allocations: 148.2 kB / 0.6703 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.538e-05/0.4144, allocations: 0.6826 MB / 0.6709 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.974e-05/0.4144, allocations: 2.719 kB / 0.6709 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.452e-05/0.4145, allocations: 9.812 kB / 0.6709 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.4145, allocations: 0 / 0.6709 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02107/0.4356, allocations: 1.586 MB / 0.6725 GB, free: 184 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.848/8.283, allocations: 16.03 kB / 0.6725 GB, free: 172 kB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)