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.007957/0.007957, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001948/0.001948, allocations: 202 kB / 16.68 MB, free: 5.969 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9946/0.9946, allocations: 135.6 MB / 426.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 67.89 kB / 0.5858 GB, free: 3.18 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4892/0.4911, allocations: 81.02 MB / 0.6649 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001507/0.4927, allocations: 0.5751 MB / 0.6655 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002523/0.4929, allocations: 48.7 kB / 0.6655 GB, free: 6.68 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.431e-05/0.493, allocations: 1.688 kB / 0.6655 GB, free: 6.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.28e-05/0.493, allocations: 0 / 0.6655 GB, free: 6.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.811e-06/0.493, allocations: 7.875 kB / 0.6655 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002059/0.4932, allocations: 19.53 kB / 0.6655 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.677e-05/0.4933, allocations: 2.531 kB / 0.6655 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.353e-05/0.4933, allocations: 5.062 kB / 0.6656 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.291e-05/0.4933, allocations: 1.438 kB / 0.6656 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.154e-05/0.4934, allocations: 5.375 kB / 0.6656 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.697e-06/0.4934, allocations: 0 / 0.6656 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.383e-05/0.4934, allocations: 8.172 kB / 0.6656 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.826e-06/0.4935, allocations: 0.9688 kB / 0.6656 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.187e-05/0.4935, allocations: 9.266 kB / 0.6656 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 9.873e-05/0.4936, allocations: 7.531 kB / 0.6656 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.4936, allocations: 0 / 0.6656 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.783e-06/0.4936, allocations: 0 / 0.6656 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.4936, allocations: 5.25 kB / 0.6656 GB, free: 6.629 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.0002156/0.4938, allocations: 320.1 kB / 0.6659 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.4939, allocations: 8.469 kB / 0.6659 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.521e-05/0.4939, allocations: 32.34 kB / 0.6659 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.967e-05/0.4939, allocations: 0.9375 kB / 0.6659 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.646e-05/0.494, allocations: 164.4 kB / 0.6661 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.494, allocations: 1.812 kB / 0.6661 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.444e-06/0.494, allocations: 384 / 0.6661 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.622e-05/0.4941, allocations: 34.45 kB / 0.6661 GB, free: 6 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.4941, allocations: 7.938 kB / 0.6661 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.072e-06/0.4941, allocations: 0 / 0.6661 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.4942, allocations: 0 / 0.6661 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.218e-05/0.4942, allocations: 7.906 kB / 0.6661 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001016/0.4943, allocations: 147.8 kB / 0.6663 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.312e-05/0.4943, allocations: 23.52 kB / 0.6663 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.803e-05/0.4944, allocations: 14.41 kB / 0.6663 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001407/0.4945, allocations: 87.62 kB / 0.6664 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.321e-05/0.4945, allocations: 31.62 kB / 0.6664 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.4945, allocations: 0 / 0.6664 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001243/0.4947, allocations: 46.97 kB / 0.6665 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.992e-05/0.4947, allocations: 51.41 kB / 0.6665 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.508e-05/0.4947, allocations: 89.86 kB / 0.6666 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.532e-06/0.4947, allocations: 27.14 kB / 0.6666 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.119e-05/0.4948, allocations: 80.14 kB / 0.6667 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.154e-05/0.4948, allocations: 9.359 kB / 0.6667 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.428e-05/0.4948, allocations: 16.38 kB / 0.6667 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.363e-05/0.4949, allocations: 310.8 kB / 0.667 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.342e-05/0.4949, allocations: 6.656 kB / 0.667 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.854e-06/0.4949, allocations: 9.203 kB / 0.667 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.89e-05/0.4949, allocations: 18.11 kB / 0.6671 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.4949, allocations: 0 / 0.6671 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.001e-05/0.495, allocations: 42.7 kB / 0.6671 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.495, allocations: 3.969 kB / 0.6671 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.495, allocations: 5.406 kB / 0.6671 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.495, allocations: 0 / 0.6671 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.837e-05/0.4951, allocations: 6.703 kB / 0.6671 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.4951, allocations: 1.531 kB / 0.6671 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.188e-05/0.4951, allocations: 0 / 0.6671 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.23e-06/0.4951, allocations: 5.594 kB / 0.6671 GB, free: 4.883 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 3.694e-05/0.4952, allocations: 109.8 kB / 0.6672 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.232e-06/0.4952, allocations: 5.531 kB / 0.6672 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.295e-05/0.4953, allocations: 47.31 kB / 0.6673 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.4953, allocations: 1.531 kB / 0.6673 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.4953, allocations: 0 / 0.6673 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.4953, allocations: 0 / 0.6673 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.92e-05/0.4953, allocations: 148.3 kB / 0.6674 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.4953, allocations: 0 / 0.6674 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.07e-05/0.4954, allocations: 2.812 kB / 0.6674 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.4954, allocations: 5.141 kB / 0.6674 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.503e-06/0.4954, allocations: 3.938 kB / 0.6674 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.4954, allocations: 5.562 kB / 0.6674 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.4954, allocations: 0 / 0.6674 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.527e-05/0.4955, allocations: 70.22 kB / 0.6675 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.468e-05/0.4955, allocations: 77.11 kB / 0.6676 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.135e-05/0.4955, allocations: 5.25 kB / 0.6676 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.908e-06/0.4955, allocations: 0 / 0.6676 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.766e-05/0.4955, allocations: 1.312 kB / 0.6676 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-06/0.4955, allocations: 5.438 kB / 0.6676 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.145e-05/0.4956, allocations: 75.28 kB / 0.6677 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.4956, allocations: 0 / 0.6677 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001871/0.4958, allocations: 9.422 kB / 0.6677 GB, free: 4.25 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.0002558/0.496, allocations: 0.6114 MB / 0.6683 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.807e-05/0.4961, allocations: 9.719 kB / 0.6683 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4961, allocations: 0 / 0.6683 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.43e-05/0.4961, allocations: 4.688 kB / 0.6683 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001182/0.4963, allocations: 1.125 kB / 0.6683 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002619/0.4965, allocations: 120.4 kB / 0.6684 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001032/0.4966, allocations: 0.6705 MB / 0.6691 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.535e-05/0.4967, allocations: 14.17 kB / 0.6691 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.795e-05/0.4967, allocations: 12.69 kB / 0.6691 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.4967, allocations: 0 / 0.6691 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02173/0.5184, allocations: 1.057 MB / 0.6701 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.635/8.153, allocations: 3.625 kB / 0.6701 GB, free: 2.141 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/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)