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.007924/0.007923, allocations: 97.55 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.001837/0.001837, allocations: 195 kB / 16.67 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.002/1.002, allocations: 135.1 MB / 425.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 59.91 kB / 0.5851 GB, free: 3.871 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.456/0.4573, allocations: 80.91 MB / 0.6642 GB, free: 7.262 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002735/0.4601, allocations: 1.514 MB / 0.6656 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0004158/0.4605, allocations: 128.2 kB / 0.6658 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.598e-05/0.4606, allocations: 5.406 kB / 0.6658 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.65e-05/0.4606, allocations: 3.938 kB / 0.6658 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.458e-05/0.4607, allocations: 1.25 kB / 0.6658 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002866/0.461, allocations: 25.69 kB / 0.6658 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 9.323e-05/0.4611, allocations: 27.92 kB / 0.6658 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.4612, allocations: 12.08 kB / 0.6658 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.591e-05/0.4613, allocations: 13.69 kB / 0.6658 GB, free: 5.922 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.062e-05/0.4613, allocations: 15.66 kB / 0.6659 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.833e-05/0.4614, allocations: 7.469 kB / 0.6659 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.94e-05/0.4614, allocations: 21.95 kB / 0.6659 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.355e-05/0.4615, allocations: 2.281 kB / 0.6659 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.821e-05/0.4615, allocations: 10.53 kB / 0.6659 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001489/0.4616, allocations: 39.52 kB / 0.6659 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.4617, allocations: 1.312 kB / 0.6659 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.764e-06/0.4617, allocations: 0 / 0.6659 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.4617, allocations: 0 / 0.6659 GB, free: 5.855 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.0004405/0.4621, allocations: 340.4 kB / 0.6663 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.4622, allocations: 13.16 kB / 0.6663 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.198e-05/0.4622, allocations: 40.02 kB / 0.6663 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.018e-05/0.4622, allocations: 2.188 kB / 0.6663 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.847e-05/0.4623, allocations: 170.8 kB / 0.6665 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.367e-05/0.4624, allocations: 1.75 kB / 0.6665 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.263e-05/0.4624, allocations: 1.562 kB / 0.6665 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/0.4626, allocations: 61.44 kB / 0.6665 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.4626, allocations: 3.938 kB / 0.6665 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.4626, allocations: 0 / 0.6665 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.4626, allocations: 5.719 kB / 0.6665 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001843/0.4628, allocations: 41.27 kB / 0.6666 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000309/0.4631, allocations: 270.2 kB / 0.6668 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003218/0.4635, allocations: 58.31 kB / 0.6669 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.6e-05/0.4636, allocations: 27.75 kB / 0.6669 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001085/0.4637, allocations: 84.88 kB / 0.667 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.583e-05/0.4637, allocations: 30.56 kB / 0.667 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.4637, allocations: 1.344 kB / 0.667 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003788/0.4641, allocations: 97.66 kB / 0.6671 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.586e-05/0.4641, allocations: 55.41 kB / 0.6672 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.211e-05/0.4642, allocations: 103 kB / 0.6673 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.163e-06/0.4642, allocations: 25.7 kB / 0.6673 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.842e-05/0.4642, allocations: 89.47 kB / 0.6674 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.731e-05/0.4643, allocations: 9.312 kB / 0.6674 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.25e-05/0.4643, allocations: 17.69 kB / 0.6674 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.155e-05/0.4644, allocations: 312.2 kB / 0.6677 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.962e-05/0.4644, allocations: 26.38 kB / 0.6677 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.751e-05/0.4645, allocations: 14.02 kB / 0.6678 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001589/0.4647, allocations: 51.28 kB / 0.6678 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.4647, allocations: 0 / 0.6678 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000203/0.4649, allocations: 75.53 kB / 0.6679 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.4649, allocations: 6.438 kB / 0.6679 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.465, allocations: 4 kB / 0.6679 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.465, allocations: 0 / 0.6679 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.044e-05/0.4651, allocations: 11.61 kB / 0.6679 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.4651, allocations: 1.375 kB / 0.6679 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.605e-05/0.4651, allocations: 6.703 kB / 0.6679 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.602e-06/0.4651, allocations: 1.469 kB / 0.6679 GB, free: 3.84 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 5.649e-05/0.4652, allocations: 116.4 kB / 0.668 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.657e-05/0.4652, allocations: 1.281 kB / 0.668 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002473/0.4655, allocations: 86.89 kB / 0.6681 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.4655, allocations: 0 / 0.6681 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4655, allocations: 4 kB / 0.6681 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.4655, allocations: 1.625 kB / 0.6681 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001401/0.4657, allocations: 168.2 kB / 0.6683 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.4657, allocations: 0 / 0.6683 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.694e-05/0.4658, allocations: 15.08 kB / 0.6683 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.4658, allocations: 1.219 kB / 0.6683 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.4658, allocations: 4 kB / 0.6683 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.4658, allocations: 1.25 kB / 0.6683 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.4658, allocations: 3.984 kB / 0.6683 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002302/0.466, allocations: 170.3 kB / 0.6685 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.29e-05/0.4661, allocations: 78.55 kB / 0.6685 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.4661, allocations: 1.281 kB / 0.6685 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.356e-05/0.4662, allocations: 14.83 kB / 0.6685 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.041e-05/0.4662, allocations: 15.42 kB / 0.6686 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.4662, allocations: 1.281 kB / 0.6686 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.26e-05/0.4663, allocations: 78.16 kB / 0.6686 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4663, allocations: 0 / 0.6686 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002297/0.4665, allocations: 11.16 kB / 0.6686 GB, free: 3.07 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.0004499/0.467, allocations: 0.7208 MB / 0.6693 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002357/0.4672, allocations: 50.2 kB / 0.6694 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4672, allocations: 0 / 0.6694 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.77e-05/0.4673, allocations: 26.88 kB / 0.6694 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003014/0.4676, allocations: 6.469 kB / 0.6694 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004152/0.4681, allocations: 143.9 kB / 0.6696 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001141/0.4682, allocations: 0.6752 MB / 0.6702 GB, free: 1.473 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.167e-05/0.4682, allocations: 5.109 kB / 0.6702 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.829e-05/0.4683, allocations: 10.97 kB / 0.6702 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.4683, allocations: 0 / 0.6702 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01811/0.4864, allocations: 1.573 MB / 0.6718 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.459/7.945, allocations: 9.344 kB / 0.6718 GB, free: 0.5664 MB / 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)