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.001232/0.001232, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001691/0.001692, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.351/2.351, allocations: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.628/1.628, allocations: 135.2 MB / 426.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006293/0.0006295, allocations: 12 kB / 0.5069 GB, free: 5.145 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2746, allocations: 82.31 MB / 0.5873 GB, free: 3.004 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001154/0.2758, allocations: 295.2 kB / 0.5876 GB, free: 2.711 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003446/0.2762, allocations: 47.91 kB / 0.5876 GB, free: 2.664 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.86e-05/0.2762, allocations: 0 / 0.5876 GB, free: 2.664 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.142e-05/0.2763, allocations: 3.938 kB / 0.5876 GB, free: 2.66 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.353e-06/0.2763, allocations: 0 / 0.5876 GB, free: 2.66 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002679/0.2766, allocations: 15.97 kB / 0.5876 GB, free: 2.645 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.04e-05/0.2766, allocations: 3.938 kB / 0.5876 GB, free: 2.641 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.127e-05/0.2767, allocations: 0 / 0.5876 GB, free: 2.641 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.155e-05/0.2768, allocations: 4 kB / 0.5876 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.154e-05/0.2768, allocations: 0 / 0.5876 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.229e-05/0.2768, allocations: 0 / 0.5876 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.554e-05/0.2769, allocations: 4 kB / 0.5876 GB, free: 2.633 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.987e-06/0.2769, allocations: 4 kB / 0.5876 GB, free: 2.629 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4e-05/0.277, allocations: 29.7 kB / 0.5877 GB, free: 2.594 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.927e-05/0.2771, allocations: 11.97 kB / 0.5877 GB, free: 2.582 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2771, allocations: 0 / 0.5877 GB, free: 2.582 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.2771, allocations: 0 / 0.5877 GB, free: 2.582 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.2771, allocations: 0 / 0.5877 GB, free: 2.582 MB / 494.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.0004154/0.2776, allocations: 307.4 kB / 0.588 GB, free: 2.234 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.643e-05/0.2776, allocations: 12.02 kB / 0.588 GB, free: 2.223 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.236e-05/0.2777, allocations: 38.44 kB / 0.588 GB, free: 2.176 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.079e-05/0.2778, allocations: 3.984 kB / 0.588 GB, free: 2.172 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.278, allocations: 171 kB / 0.5882 GB, free: 1.965 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.278, allocations: 0 / 0.5882 GB, free: 1.965 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/0.278, allocations: 0 / 0.5882 GB, free: 1.965 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001477/0.2782, allocations: 33.7 kB / 0.5882 GB, free: 1.926 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.2782, allocations: 3.984 kB / 0.5882 GB, free: 1.922 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.2782, allocations: 0 / 0.5882 GB, free: 1.922 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.2782, allocations: 0 / 0.5882 GB, free: 1.922 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.335e-05/0.2783, allocations: 4 kB / 0.5882 GB, free: 1.918 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002462/0.2786, allocations: 149.6 kB / 0.5884 GB, free: 1.723 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.777e-05/0.2787, allocations: 34.53 kB / 0.5884 GB, free: 1.68 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002658/0.2789, allocations: 77.11 kB / 0.5885 GB, free: 1.586 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.196e-05/0.279, allocations: 34.62 kB / 0.5885 GB, free: 1.543 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.984e-06/0.279, allocations: 0 / 0.5885 GB, free: 1.543 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002214/0.2793, allocations: 45.59 kB / 0.5886 GB, free: 1.492 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.823e-05/0.2793, allocations: 59.28 kB / 0.5886 GB, free: 1.422 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.012e-05/0.2794, allocations: 93.98 kB / 0.5887 GB, free: 1.32 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.2795, allocations: 25.7 kB / 0.5887 GB, free: 1.289 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.663e-05/0.2795, allocations: 84.14 kB / 0.5888 GB, free: 1.203 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.087e-05/0.2796, allocations: 0 / 0.5888 GB, free: 1.203 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-06/0.2796, allocations: 0 / 0.5888 GB, free: 1.203 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.2798, allocations: 314.8 kB / 0.5891 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.817e-05/0.2798, allocations: 0 / 0.5891 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.728e-05/0.2798, allocations: 7.984 kB / 0.5891 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.548e-05/0.2799, allocations: 4.062 kB / 0.5891 GB, free: 0.875 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2799, allocations: 0 / 0.5891 GB, free: 0.875 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001196/0.28, allocations: 41.66 kB / 0.5892 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.2801, allocations: 8 kB / 0.5892 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.2801, allocations: 0 / 0.5892 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.2801, allocations: 0 / 0.5892 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.577e-05/0.2802, allocations: 7.984 kB / 0.5892 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.2802, allocations: 0 / 0.5892 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.806e-05/0.2803, allocations: 8.219 kB / 0.5892 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.2803, allocations: 0 / 0.5892 GB, free: 0.8047 MB / 494.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 (fac,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001179/0.2804, allocations: 113.9 kB / 0.5893 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.11e-05/0.2805, allocations: 11.95 kB / 0.5893 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001564/0.2806, allocations: 40.75 kB / 0.5893 GB, free: 0.625 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.2807, allocations: 0 / 0.5893 GB, free: 0.625 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.2807, allocations: 4 kB / 0.5893 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.2807, allocations: 0 / 0.5893 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001634/0.2809, allocations: 145.7 kB / 0.5895 GB, free: 440 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.2809, allocations: 3.938 kB / 0.5895 GB, free: 436 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.532e-05/0.281, allocations: 7.984 kB / 0.5895 GB, free: 428 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.725e-06/0.281, allocations: 7.984 kB / 0.5895 GB, free: 420 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.281, allocations: 0 / 0.5895 GB, free: 420 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.281, allocations: 0 / 0.5895 GB, free: 420 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-05/0.281, allocations: 4 kB / 0.5895 GB, free: 416 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001334/0.2812, allocations: 68.97 kB / 0.5896 GB, free: 328 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.85e-05/0.2813, allocations: 77.11 kB / 0.5897 GB, free: 232 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.965e-05/0.2813, allocations: 3.953 kB / 0.5897 GB, free: 228 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.581e-05/0.2813, allocations: 4.031 kB / 0.5897 GB, free: 224 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.365e-05/0.2814, allocations: 7.938 kB / 0.5897 GB, free: 216 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.2814, allocations: 0 / 0.5897 GB, free: 216 kB / 494.1 MB Notification: Performance of sorting global known variables: time 6.379e-05/0.2815, allocations: 75.28 kB / 0.5897 GB, free: 140 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2815, allocations: 0 / 0.5897 GB, free: 140 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003488/0.2818, allocations: 4 kB / 0.5897 GB, free: 136 kB / 494.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006906/0.2826, allocations: 0.6085 MB / 0.5903 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001012/0.2827, allocations: 8 kB / 0.5903 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.2827, allocations: 0 / 0.5903 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 3.02e-05/0.2827, allocations: 4 kB / 0.5903 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001618/0.2829, allocations: 7.953 kB / 0.5904 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005223/0.2834, allocations: 108.4 kB / 0.5905 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000435/0.2839, allocations: 0.681 MB / 0.5911 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.416e-05/0.2839, allocations: 4 kB / 0.5911 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.057e-05/0.284, allocations: 7.438 kB / 0.5911 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of SimCode: time 4.7e-07/0.284, allocations: 0 / 0.5911 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01956/0.3036, allocations: 0.8579 MB / 0.592 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003364/0.304, allocations: 174.1 kB / 0.5921 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.42/2.724, allocations: 3.125 kB / 0.5921 GB, free: 13.65 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: