Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_master_IBPSA.Utilities.Math.Functions.Examples.Factorial.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IBPSA with version 3.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_master_IBPSA.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002399/0.002398, allocations: 355.5 kB / 15.94 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 1.567/1.567, allocations: 165.8 MB / 182.5 MB, free: 5.426 MB / 138.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.005/4.005, allocations: 410.8 MB / 0.5995 GB, free: 15.12 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001705/0.001705, allocations: 193.3 kB / 0.6662 GB, free: 6.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004676/0.0004679, allocations: 15.98 kB / 0.7423 GB, free: 8.961 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3252, allocations: 67.43 MB / 0.8082 GB, free: 28.81 MB / 378.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.000598/0.3259, allocations: 300.3 kB / 0.8084 GB, free: 28.52 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002093/0.3261, allocations: 46.52 kB / 0.8085 GB, free: 28.47 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.098e-05/0.3261, allocations: 0 / 0.8085 GB, free: 28.47 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.783e-06/0.3262, allocations: 4 kB / 0.8085 GB, free: 28.47 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.938e-06/0.3262, allocations: 4 kB / 0.8085 GB, free: 28.46 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001597/0.3264, allocations: 7.984 kB / 0.8085 GB, free: 28.46 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.409e-05/0.3264, allocations: 7.984 kB / 0.8085 GB, free: 28.45 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.665e-05/0.3265, allocations: 3.938 kB / 0.8085 GB, free: 28.45 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.252e-05/0.3265, allocations: 0 / 0.8085 GB, free: 28.45 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.424e-05/0.3265, allocations: 4 kB / 0.8085 GB, free: 28.44 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.166e-06/0.3265, allocations: 0 / 0.8085 GB, free: 28.44 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.73e-05/0.3266, allocations: 11.98 kB / 0.8085 GB, free: 28.43 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.507e-06/0.3266, allocations: 0 / 0.8085 GB, free: 28.43 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.615e-05/0.3266, allocations: 29.64 kB / 0.8086 GB, free: 28.39 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 5.161e-05/0.3267, allocations: 8 kB / 0.8086 GB, free: 28.39 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3267, allocations: 0 / 0.8086 GB, free: 28.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.811e-06/0.3267, allocations: 0 / 0.8086 GB, free: 28.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.205e-06/0.3267, allocations: 0 / 0.8086 GB, free: 28.39 MB / 378.7 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.0001905/0.3269, allocations: 311.4 kB / 0.8089 GB, free: 28.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.327, allocations: 8.031 kB / 0.8089 GB, free: 28.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.045e-05/0.327, allocations: 0 / 0.8089 GB, free: 28.03 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.545e-05/0.3271, allocations: 163.1 kB / 0.809 GB, free: 27.83 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.04e-06/0.3271, allocations: 0 / 0.809 GB, free: 27.83 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.3271, allocations: 4 kB / 0.809 GB, free: 27.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.536e-05/0.3272, allocations: 33.69 kB / 0.8091 GB, free: 27.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.62e-06/0.3273, allocations: 0 / 0.8091 GB, free: 27.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.397e-06/0.3273, allocations: 3.953 kB / 0.8091 GB, free: 27.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.196e-06/0.3273, allocations: 4 kB / 0.8091 GB, free: 27.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.136e-05/0.3273, allocations: 3.938 kB / 0.8091 GB, free: 27.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001025/0.3274, allocations: 153.7 kB / 0.8092 GB, free: 27.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.413e-05/0.3275, allocations: 18.61 kB / 0.8092 GB, free: 27.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.084e-05/0.3275, allocations: 16.92 kB / 0.8093 GB, free: 27.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001341/0.3277, allocations: 81.09 kB / 0.8093 GB, free: 27.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.3277, allocations: 38.55 kB / 0.8094 GB, free: 27.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.938e-06/0.3277, allocations: 0 / 0.8094 GB, free: 27.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001286/0.3279, allocations: 41.64 kB / 0.8094 GB, free: 27.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.426e-05/0.3279, allocations: 59.3 kB / 0.8095 GB, free: 27.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.07e-05/0.3279, allocations: 89.86 kB / 0.8096 GB, free: 27.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.165e-06/0.3279, allocations: 29.83 kB / 0.8096 GB, free: 27.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.303e-05/0.328, allocations: 80.14 kB / 0.8097 GB, free: 27.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.019e-05/0.328, allocations: 7.906 kB / 0.8097 GB, free: 27.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.854e-06/0.328, allocations: 0 / 0.8097 GB, free: 27.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.705e-05/0.3281, allocations: 318.8 kB / 0.81 GB, free: 26.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.332e-05/0.3281, allocations: 4 kB / 0.81 GB, free: 26.72 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.025e-05/0.3281, allocations: 4 kB / 0.81 GB, free: 26.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.055e-05/0.3281, allocations: 0 / 0.81 GB, free: 26.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.956e-06/0.3282, allocations: 64 / 0.81 GB, free: 26.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.75e-05/0.3282, allocations: 41.64 kB / 0.81 GB, free: 26.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.3283, allocations: 14.8 kB / 0.81 GB, free: 26.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.166e-06/0.3283, allocations: 0 / 0.81 GB, free: 26.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.3283, allocations: 0 / 0.81 GB, free: 26.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.678e-05/0.3284, allocations: 8 kB / 0.81 GB, free: 26.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.167e-06/0.3284, allocations: 0 / 0.81 GB, free: 26.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.002e-05/0.3284, allocations: 6.062 kB / 0.81 GB, free: 26.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.045e-06/0.3284, allocations: 0 / 0.81 GB, free: 26.64 MB / 378.7 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 4.699e-05/0.3285, allocations: 117.4 kB / 0.8102 GB, free: 26.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.169e-06/0.3285, allocations: 0 / 0.8102 GB, free: 26.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.745e-05/0.3286, allocations: 40.81 kB / 0.8102 GB, free: 26.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.3286, allocations: 4 kB / 0.8102 GB, free: 26.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.265e-06/0.3286, allocations: 4 kB / 0.8102 GB, free: 26.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.374e-06/0.3286, allocations: 0 / 0.8102 GB, free: 26.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.401e-05/0.3287, allocations: 149.6 kB / 0.8103 GB, free: 26.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.3287, allocations: 3.938 kB / 0.8104 GB, free: 26.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.034e-05/0.3288, allocations: 4 kB / 0.8104 GB, free: 26.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.93e-06/0.3288, allocations: 3.984 kB / 0.8104 GB, free: 26.26 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.887e-06/0.3288, allocations: 4.031 kB / 0.8104 GB, free: 26.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3288, allocations: 4 kB / 0.8104 GB, free: 26.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.76e-06/0.3288, allocations: 0 / 0.8104 GB, free: 26.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.295e-05/0.3289, allocations: 65.08 kB / 0.8104 GB, free: 26.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.627e-05/0.3289, allocations: 81.11 kB / 0.8105 GB, free: 26.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.178e-05/0.329, allocations: 0 / 0.8105 GB, free: 26.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.653e-05/0.329, allocations: 0 / 0.8105 GB, free: 26.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.127e-05/0.329, allocations: 15.95 kB / 0.8105 GB, free: 26.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-06/0.329, allocations: 0 / 0.8105 GB, free: 26.06 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.484e-05/0.3291, allocations: 75.28 kB / 0.8106 GB, free: 25.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.3291, allocations: 0 / 0.8106 GB, free: 25.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002425/0.3293, allocations: 8 kB / 0.8106 GB, free: 25.98 MB / 378.7 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.000125/0.3295, allocations: 103.2 kB / 0.8107 GB, free: 25.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.845e-05/0.3295, allocations: 12 kB / 0.8107 GB, free: 25.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.423e-06/0.3296, allocations: 0 / 0.8107 GB, free: 25.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.897e-05/0.3296, allocations: 12.05 kB / 0.8107 GB, free: 25.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001636/0.3298, allocations: 6.484 kB / 0.8107 GB, free: 25.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001556/0.3299, allocations: 78.67 kB / 0.8108 GB, free: 25.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001/0.33, allocations: 0.6809 MB / 0.8115 GB, free: 25.03 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.486e-05/0.3301, allocations: 0 / 0.8115 GB, free: 25.03 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.651e-05/0.3301, allocations: 15.44 kB / 0.8115 GB, free: 25.01 MB / 378.7 MB Notification: Performance of SimCode: time 1.426e-06/0.3301, allocations: 0 / 0.8115 GB, free: 25.01 MB / 378.7 MB Notification: Performance of Templates: time 0.002404/0.3325, allocations: 300.2 kB / 0.8118 GB, free: 24.72 MB / 378.7 MB