Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_dev_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.00583/0.005829, allocations: 101.1 kB / 15.73 MB, free: 6.445 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.00133/0.00133, allocations: 191.6 kB / 16.67 MB, free: 6.348 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.455/1.455, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9848/0.9848, allocations: 135.5 MB / 426.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00196/0.00196, allocations: 63.91 kB / 0.5858 GB, free: 3.195 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4254/0.4274, allocations: 81.02 MB / 0.6649 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001445/0.4289, allocations: 0.5712 MB / 0.6655 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002202/0.4291, allocations: 49.11 kB / 0.6655 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.337e-05/0.4291, allocations: 3.938 kB / 0.6655 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.354e-05/0.4291, allocations: 0.8438 kB / 0.6655 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.701e-06/0.4292, allocations: 0 / 0.6655 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001833/0.4293, allocations: 12.08 kB / 0.6655 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.23e-05/0.4294, allocations: 10.11 kB / 0.6655 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.27e-05/0.4295, allocations: 1.281 kB / 0.6655 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.328e-05/0.4295, allocations: 1.25 kB / 0.6655 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.099e-05/0.4295, allocations: 5.469 kB / 0.6655 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.466e-06/0.4295, allocations: 0 / 0.6655 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.055e-05/0.4296, allocations: 13.3 kB / 0.6656 GB, free: 6.5 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.788e-06/0.4296, allocations: 0 / 0.6656 GB, free: 6.5 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.881e-05/0.4296, allocations: 5.375 kB / 0.6656 GB, free: 6.496 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.352e-05/0.4297, allocations: 15.91 kB / 0.6656 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.4297, allocations: 0 / 0.6656 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.354e-06/0.4297, allocations: 0 / 0.6656 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.4297, allocations: 0 / 0.6656 GB, free: 6.484 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002401/0.43, allocations: 316.5 kB / 0.6659 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.43, allocations: 13 kB / 0.6659 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.219e-05/0.4301, allocations: 40.2 kB / 0.6659 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.587e-05/0.4301, allocations: 0.9375 kB / 0.6659 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.909e-05/0.4302, allocations: 160.4 kB / 0.6661 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.4302, allocations: 1.875 kB / 0.6661 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.233e-06/0.4302, allocations: 384 / 0.6661 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.084e-05/0.4303, allocations: 29.77 kB / 0.6661 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.4303, allocations: 3.938 kB / 0.6661 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.053e-06/0.4303, allocations: 1.375 kB / 0.6661 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.4303, allocations: 0 / 0.6661 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.854e-05/0.4304, allocations: 15.81 kB / 0.6661 GB, free: 5.84 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001086/0.4305, allocations: 150.8 kB / 0.6663 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.822e-05/0.4305, allocations: 27.56 kB / 0.6663 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.918e-05/0.4306, allocations: 10.22 kB / 0.6663 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001548/0.4307, allocations: 84.55 kB / 0.6664 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.627e-05/0.4307, allocations: 30.56 kB / 0.6664 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.4308, allocations: 4 kB / 0.6664 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001409/0.4309, allocations: 51.22 kB / 0.6665 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.656e-05/0.4309, allocations: 51.41 kB / 0.6665 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.428e-05/0.431, allocations: 91.14 kB / 0.6666 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.406e-06/0.431, allocations: 25.7 kB / 0.6666 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.117e-05/0.431, allocations: 80.14 kB / 0.6667 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.841e-05/0.431, allocations: 5.328 kB / 0.6667 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.527e-05/0.431, allocations: 16.12 kB / 0.6667 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.038e-05/0.4311, allocations: 320 kB / 0.667 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.163e-05/0.4311, allocations: 1.406 kB / 0.667 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.824e-06/0.4311, allocations: 2.969 kB / 0.667 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.155e-05/0.4312, allocations: 12.86 kB / 0.6671 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.4312, allocations: 1.219 kB / 0.6671 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.009e-05/0.4312, allocations: 44.91 kB / 0.6671 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.4312, allocations: 7.094 kB / 0.6671 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.932e-06/0.4313, allocations: 3.938 kB / 0.6671 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.4313, allocations: 5.625 kB / 0.6671 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.7e-05/0.4313, allocations: 2.5 kB / 0.6671 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.4313, allocations: 0 / 0.6671 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.345e-05/0.4314, allocations: 1.156 kB / 0.6671 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.599e-06/0.4314, allocations: 1.438 kB / 0.6671 GB, free: 4.738 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 (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 4.912e-05/0.4314, allocations: 111.2 kB / 0.6672 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.231e-06/0.4314, allocations: 0 / 0.6672 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.106e-05/0.4315, allocations: 47.97 kB / 0.6673 GB, free: 4.57 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.4315, allocations: 13.31 kB / 0.6673 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.4315, allocations: 0 / 0.6673 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.4315, allocations: 0 / 0.6673 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.407e-05/0.4316, allocations: 148 kB / 0.6674 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.4316, allocations: 0 / 0.6674 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.165e-05/0.4316, allocations: 4.062 kB / 0.6674 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.4317, allocations: 0 / 0.6674 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.4317, allocations: 3.938 kB / 0.6674 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.4317, allocations: 0.9688 kB / 0.6674 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4317, allocations: 0 / 0.6674 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.092e-05/0.4318, allocations: 69.84 kB / 0.6675 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.779e-05/0.4318, allocations: 78.36 kB / 0.6676 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.304e-05/0.4318, allocations: 5.188 kB / 0.6676 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.978e-06/0.4318, allocations: 0 / 0.6676 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.875e-05/0.4318, allocations: 9.078 kB / 0.6676 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-06/0.4319, allocations: 1.406 kB / 0.6676 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.824e-05/0.4319, allocations: 75.28 kB / 0.6677 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.4319, allocations: 3.938 kB / 0.6677 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001975/0.4321, allocations: 8.281 kB / 0.6677 GB, free: 4.098 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,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.0002939/0.4324, allocations: 0.6006 MB / 0.6683 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.644e-05/0.4325, allocations: 9.781 kB / 0.6683 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.4325, allocations: 5.375 kB / 0.6683 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.683e-05/0.4325, allocations: 11.86 kB / 0.6683 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001322/0.4326, allocations: 1.375 kB / 0.6683 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002654/0.4329, allocations: 119.4 kB / 0.6684 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.488e-05/0.433, allocations: 0.6757 MB / 0.6691 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.195e-05/0.433, allocations: 1.219 kB / 0.6691 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.052e-05/0.4331, allocations: 12.78 kB / 0.6691 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.4331, allocations: 0 / 0.6691 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02183/0.4549, allocations: 1.059 MB / 0.6701 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.92/8.375, allocations: 2.25 kB / 0.6701 GB, free: 1.996 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)