Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_master_IBPSA.Utilities.Math.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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_master_IBPSA.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002391/0.002395, allocations: 353.2 kB / 15.94 MB, free: 6.211 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.381/1.381, allocations: 165.8 MB / 182.5 MB, free: 5.445 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 3.749/3.749, allocations: 410.8 MB / 0.5995 GB, free: 15.16 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.001728/0.001728, allocations: 191.8 kB / 0.6662 GB, free: 6.934 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004595/0.0004597, allocations: 16 kB / 0.7423 GB, free: 8.969 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/0.3308, allocations: 67.44 MB / 0.8081 GB, free: 28.67 MB / 378.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.001427/0.3323, allocations: 1.217 MB / 0.8093 GB, free: 27.44 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002788/0.3326, allocations: 111.8 kB / 0.8094 GB, free: 27.33 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.151e-05/0.3326, allocations: 0 / 0.8094 GB, free: 27.33 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.512e-05/0.3327, allocations: 3.938 kB / 0.8094 GB, free: 27.33 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.677e-05/0.3327, allocations: 3.938 kB / 0.8094 GB, free: 27.32 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001624/0.3329, allocations: 19.97 kB / 0.8095 GB, free: 27.3 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.369e-05/0.333, allocations: 23.92 kB / 0.8095 GB, free: 27.28 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.805e-05/0.333, allocations: 12 kB / 0.8095 GB, free: 27.27 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.38e-05/0.3331, allocations: 7.984 kB / 0.8095 GB, free: 27.26 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.43e-05/0.3331, allocations: 15.92 kB / 0.8095 GB, free: 27.25 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.221e-05/0.3332, allocations: 4 kB / 0.8095 GB, free: 27.24 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.747e-05/0.3332, allocations: 4 kB / 0.8095 GB, free: 27.24 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.042e-05/0.3332, allocations: 7.984 kB / 0.8095 GB, free: 27.23 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.834e-05/0.3333, allocations: 33.64 kB / 0.8096 GB, free: 27.19 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 6.909e-05/0.3334, allocations: 19.95 kB / 0.8096 GB, free: 27.17 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.604e-06/0.3334, allocations: 0 / 0.8096 GB, free: 27.17 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3334, allocations: 0 / 0.8096 GB, free: 27.17 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.263e-06/0.3334, allocations: 4 kB / 0.8096 GB, free: 27.17 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003692/0.3338, allocations: 345.4 kB / 0.8099 GB, free: 26.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.3338, allocations: 8.031 kB / 0.8099 GB, free: 26.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.807e-05/0.3339, allocations: 4 kB / 0.8099 GB, free: 26.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.141e-05/0.3339, allocations: 167 kB / 0.8101 GB, free: 26.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/0.334, allocations: 3.984 kB / 0.8101 GB, free: 26.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.53e-05/0.334, allocations: 8 kB / 0.8101 GB, free: 26.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001869/0.3342, allocations: 57.67 kB / 0.8102 GB, free: 26.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.655e-06/0.3342, allocations: 0 / 0.8102 GB, free: 26.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.3342, allocations: 7.953 kB / 0.8102 GB, free: 26.49 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/0.3342, allocations: 0 / 0.8102 GB, free: 26.49 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002108/0.3345, allocations: 59.83 kB / 0.8102 GB, free: 26.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003163/0.3348, allocations: 264.9 kB / 0.8105 GB, free: 26.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003434/0.3352, allocations: 58.55 kB / 0.8105 GB, free: 26.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001346/0.3353, allocations: 36.88 kB / 0.8106 GB, free: 26.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001092/0.3354, allocations: 85.06 kB / 0.8107 GB, free: 25.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.34e-05/0.3355, allocations: 34.5 kB / 0.8107 GB, free: 25.87 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.988e-06/0.3355, allocations: 0 / 0.8107 GB, free: 25.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004236/0.3359, allocations: 113.6 kB / 0.8108 GB, free: 25.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.604e-05/0.336, allocations: 51.41 kB / 0.8108 GB, free: 25.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.217e-05/0.336, allocations: 101.8 kB / 0.8109 GB, free: 25.58 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.713e-06/0.336, allocations: 33.7 kB / 0.811 GB, free: 25.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.846e-05/0.3361, allocations: 80.14 kB / 0.811 GB, free: 25.46 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.714e-05/0.3361, allocations: 7.906 kB / 0.8111 GB, free: 25.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.843e-06/0.3361, allocations: 0 / 0.8111 GB, free: 25.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.791e-05/0.3362, allocations: 314.8 kB / 0.8114 GB, free: 25.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.3363, allocations: 23.97 kB / 0.8114 GB, free: 25.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.892e-05/0.3364, allocations: 23.98 kB / 0.8114 GB, free: 25.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001096/0.3365, allocations: 31.91 kB / 0.8114 GB, free: 25.06 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3365, allocations: 0 / 0.8114 GB, free: 25.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002623/0.3368, allocations: 85.66 kB / 0.8115 GB, free: 24.97 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.3368, allocations: 11.95 kB / 0.8115 GB, free: 24.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.3369, allocations: 0 / 0.8115 GB, free: 24.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.3369, allocations: 3.938 kB / 0.8115 GB, free: 24.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.337, allocations: 11.98 kB / 0.8115 GB, free: 24.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.034e-06/0.337, allocations: 3.984 kB / 0.8115 GB, free: 24.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.339e-05/0.3371, allocations: 19.89 kB / 0.8116 GB, free: 24.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-06/0.3371, allocations: 0 / 0.8116 GB, free: 24.92 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.y,rea2Int.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.02e-05/0.3372, allocations: 113.8 kB / 0.8117 GB, free: 24.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.49e-05/0.3372, allocations: 0 / 0.8117 GB, free: 24.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002962/0.3375, allocations: 105 kB / 0.8118 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.124e-06/0.3376, allocations: 0 / 0.8118 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.039e-06/0.3376, allocations: 0 / 0.8118 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.553e-06/0.3376, allocations: 0 / 0.8118 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001515/0.3377, allocations: 169.6 kB / 0.8119 GB, free: 24.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.942e-06/0.3378, allocations: 0 / 0.8119 GB, free: 24.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.656e-05/0.3379, allocations: 11.98 kB / 0.8119 GB, free: 24.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.434e-06/0.3379, allocations: 4 kB / 0.8119 GB, free: 24.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.298e-06/0.3379, allocations: 0 / 0.8119 GB, free: 24.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.3379, allocations: 7.953 kB / 0.812 GB, free: 24.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.52e-06/0.3379, allocations: 0 / 0.812 GB, free: 24.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002799/0.3382, allocations: 184 kB / 0.8121 GB, free: 24.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.047e-05/0.3383, allocations: 88.95 kB / 0.8122 GB, free: 24.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.588e-05/0.3383, allocations: 7.984 kB / 0.8122 GB, free: 24.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.3384, allocations: 11.97 kB / 0.8122 GB, free: 24.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.351e-05/0.3385, allocations: 11.95 kB / 0.8122 GB, free: 24.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.888e-06/0.3385, allocations: 3.984 kB / 0.8122 GB, free: 24.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.624e-05/0.3385, allocations: 79.28 kB / 0.8123 GB, free: 24.03 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.09e-07/0.3385, allocations: 0 / 0.8123 GB, free: 24.03 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003005/0.3389, allocations: 8 kB / 0.8123 GB, free: 24.02 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.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 (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.0001182/0.339, allocations: 111.2 kB / 0.8124 GB, free: 23.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002779/0.3393, allocations: 47.95 kB / 0.8125 GB, free: 23.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3393, allocations: 0 / 0.8125 GB, free: 23.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001271/0.3394, allocations: 39.91 kB / 0.8125 GB, free: 23.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003142/0.3398, allocations: 7.234 kB / 0.8125 GB, free: 23.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002792/0.3401, allocations: 116.6 kB / 0.8126 GB, free: 23.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001627/0.3402, allocations: 0.6848 MB / 0.8133 GB, free: 22.96 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.315e-05/0.3403, allocations: 8 kB / 0.8133 GB, free: 22.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.176e-05/0.3403, allocations: 7.438 kB / 0.8133 GB, free: 22.95 MB / 378.7 MB Notification: Performance of SimCode: time 1.4e-06/0.3403, allocations: 0 / 0.8133 GB, free: 22.95 MB / 378.7 MB Notification: Performance of Templates: time 0.003057/0.3434, allocations: 0.5907 MB / 0.8139 GB, free: 22.36 MB / 378.7 MB