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.002484/0.002488, allocations: 356.5 kB / 16.59 MB, free: 5.566 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.48/1.48, allocations: 165.8 MB / 183.1 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 3.91/3.91, allocations: 410.7 MB / 0.6001 GB, free: 15.19 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.001803/0.001803, allocations: 198.1 kB / 0.6668 GB, free: 6.914 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004775/0.0004777, allocations: 12 kB / 0.7429 GB, free: 8.941 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.417/0.4175, allocations: 67.44 MB / 0.8087 GB, free: 28.77 MB / 378.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.00169/0.4193, allocations: 1.214 MB / 0.8099 GB, free: 27.54 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003247/0.4196, allocations: 115.8 kB / 0.81 GB, free: 27.43 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.084e-05/0.4196, allocations: 0 / 0.81 GB, free: 27.43 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.781e-05/0.4197, allocations: 0 / 0.81 GB, free: 27.43 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.742e-05/0.4197, allocations: 7.875 kB / 0.81 GB, free: 27.42 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001809/0.4199, allocations: 19.92 kB / 0.8101 GB, free: 27.4 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.739e-05/0.42, allocations: 23.92 kB / 0.8101 GB, free: 27.38 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.467e-05/0.4201, allocations: 11.98 kB / 0.8101 GB, free: 27.36 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.855e-05/0.4201, allocations: 7.984 kB / 0.8101 GB, free: 27.36 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.621e-05/0.4202, allocations: 15.92 kB / 0.8101 GB, free: 27.34 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.4202, allocations: 4 kB / 0.8101 GB, free: 27.34 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.734e-05/0.4203, allocations: 12 kB / 0.8101 GB, free: 27.32 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.032e-05/0.4203, allocations: 3.984 kB / 0.8101 GB, free: 27.32 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.047e-05/0.4203, allocations: 29.64 kB / 0.8102 GB, free: 27.29 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.508e-05/0.4204, allocations: 23.95 kB / 0.8102 GB, free: 27.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4204, allocations: 0 / 0.8102 GB, free: 27.26 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4204, allocations: 0 / 0.8102 GB, free: 27.26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.4205, allocations: 0 / 0.8102 GB, free: 27.26 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.000427/0.4209, allocations: 353.3 kB / 0.8105 GB, free: 26.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.4209, allocations: 8.031 kB / 0.8105 GB, free: 26.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.793e-05/0.421, allocations: 0 / 0.8105 GB, free: 26.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.074e-05/0.4211, allocations: 175 kB / 0.8107 GB, free: 26.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.4211, allocations: 0 / 0.8107 GB, free: 26.65 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.542e-05/0.4211, allocations: 0 / 0.8107 GB, free: 26.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002387/0.4214, allocations: 61.67 kB / 0.8108 GB, free: 26.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.4214, allocations: 4 kB / 0.8108 GB, free: 26.58 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.4214, allocations: 3.953 kB / 0.8108 GB, free: 26.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/0.4214, allocations: 4 kB / 0.8108 GB, free: 26.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003031/0.4217, allocations: 47.89 kB / 0.8108 GB, free: 26.53 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00033/0.4221, allocations: 272.9 kB / 0.8111 GB, free: 26.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004585/0.4226, allocations: 58.53 kB / 0.8111 GB, free: 26.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.4227, allocations: 32.91 kB / 0.8112 GB, free: 26.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00011/0.4229, allocations: 85.06 kB / 0.8112 GB, free: 26.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.572e-05/0.4229, allocations: 42.48 kB / 0.8113 GB, free: 25.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.643e-06/0.4229, allocations: 0 / 0.8113 GB, free: 25.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0005488/0.4235, allocations: 105.6 kB / 0.8114 GB, free: 25.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.791e-05/0.4235, allocations: 51.41 kB / 0.8114 GB, free: 25.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.741e-05/0.4236, allocations: 101.8 kB / 0.8115 GB, free: 25.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/0.4236, allocations: 25.7 kB / 0.8116 GB, free: 25.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.848e-05/0.4236, allocations: 84.14 kB / 0.8116 GB, free: 25.56 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.562e-05/0.4236, allocations: 7.906 kB / 0.8116 GB, free: 25.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.781e-06/0.4237, allocations: 0 / 0.8116 GB, free: 25.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.102e-05/0.4237, allocations: 318.8 kB / 0.8119 GB, free: 25.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001491/0.4239, allocations: 23.98 kB / 0.812 GB, free: 25.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.4241, allocations: 23.98 kB / 0.812 GB, free: 25.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001573/0.4242, allocations: 31.91 kB / 0.812 GB, free: 25.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4242, allocations: 0 / 0.812 GB, free: 25.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003438/0.4246, allocations: 85.59 kB / 0.8121 GB, free: 25.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.4246, allocations: 10.77 kB / 0.8121 GB, free: 25.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.4246, allocations: 0 / 0.8121 GB, free: 25.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.4247, allocations: 4 kB / 0.8121 GB, free: 25.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.4248, allocations: 19.92 kB / 0.8121 GB, free: 25.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.936e-06/0.4248, allocations: 0 / 0.8121 GB, free: 25.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.656e-05/0.4249, allocations: 15.89 kB / 0.8122 GB, free: 25.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.505e-06/0.4249, allocations: 0 / 0.8122 GB, free: 25.02 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.218e-05/0.425, allocations: 110.4 kB / 0.8123 GB, free: 24.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.011e-05/0.4251, allocations: 8 kB / 0.8123 GB, free: 24.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003842/0.4255, allocations: 97.02 kB / 0.8124 GB, free: 24.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.4255, allocations: 4 kB / 0.8124 GB, free: 24.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.4255, allocations: 0 / 0.8124 GB, free: 24.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.136e-05/0.4255, allocations: 81.09 kB / 0.8124 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.717e-05/0.4255, allocations: 12 kB / 0.8125 GB, free: 24.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.4257, allocations: 8 kB / 0.8125 GB, free: 24.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.294e-05/0.4257, allocations: 3.984 kB / 0.8125 GB, free: 24.66 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004256/0.4262, allocations: 172.9 kB / 0.8126 GB, free: 24.48 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0003785/0.4266, allocations: 262.7 kB / 0.8129 GB, free: 24.21 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001649/0.4268, allocations: 31.97 kB / 0.8129 GB, free: 24.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.504e-05/0.4268, allocations: 83.28 kB / 0.813 GB, free: 24.1 MB / 378.7 MB Notification: Performance of Backend: time 5.81e-07/0.4268, allocations: 0 / 0.813 GB, free: 24.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005286/0.4273, allocations: 114.3 kB / 0.8131 GB, free: 23.98 MB / 378.7 MB Notification: Performance of SimCode: time 0.0003522/0.4277, allocations: 0.5643 MB / 0.8136 GB, free: 23.36 MB / 378.7 MB Notification: Performance of Templates: time 0.003288/0.431, allocations: 0.6822 MB / 0.8143 GB, free: 22.69 MB / 378.7 MB