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.001336/0.00134, allocations: 178.2 kB / 15.76 MB, free: 6.383 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 0.6973/0.6973, allocations: 82.93 MB / 99.42 MB, free: 2.223 MB / 74.72 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.055/2.055, allocations: 205.4 MB / 325.4 MB, free: 6.664 MB / 266.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001569/0.001568, allocations: 94.38 kB / 393.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004609/0.0004611, allocations: 12 kB / 471.6 MB, free: 13.36 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4363/0.4368, allocations: 67.43 MB / 0.5264 GB, free: 55.45 MB / 410.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.0006071/0.4375, allocations: 299.3 kB / 0.5266 GB, free: 55.25 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001993/0.4377, allocations: 45.45 kB / 0.5267 GB, free: 55.22 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.28e-05/0.4377, allocations: 2.188 kB / 0.5267 GB, free: 55.22 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 7.866e-06/0.4378, allocations: 0 / 0.5267 GB, free: 55.22 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.872e-06/0.4378, allocations: 4 kB / 0.5267 GB, free: 55.22 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001569/0.4379, allocations: 12.06 kB / 0.5267 GB, free: 55.21 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 3.092e-05/0.438, allocations: 6.156 kB / 0.5267 GB, free: 55.21 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.35e-05/0.438, allocations: 1.781 kB / 0.5267 GB, free: 55.21 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.253e-05/0.4381, allocations: 0.8438 kB / 0.5267 GB, free: 55.21 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.432e-05/0.4381, allocations: 5.812 kB / 0.5267 GB, free: 55.2 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.314e-06/0.4381, allocations: 0 / 0.5267 GB, free: 55.2 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.697e-05/0.4382, allocations: 10.69 kB / 0.5267 GB, free: 55.2 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.544e-06/0.4382, allocations: 0 / 0.5267 GB, free: 55.2 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.602e-05/0.4382, allocations: 25.7 kB / 0.5268 GB, free: 55.17 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 5.097e-05/0.4383, allocations: 8.109 kB / 0.5268 GB, free: 55.16 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.799e-06/0.4383, allocations: 5.5 kB / 0.5268 GB, free: 55.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.932e-06/0.4383, allocations: 0.5625 kB / 0.5268 GB, free: 55.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.4383, allocations: 0 / 0.5268 GB, free: 55.16 MB / 410.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.0001942/0.4385, allocations: 316.3 kB / 0.5271 GB, free: 54.81 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.4386, allocations: 8.688 kB / 0.5271 GB, free: 54.81 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.631e-05/0.4386, allocations: 2.078 kB / 0.5271 GB, free: 54.81 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.5e-05/0.4387, allocations: 163.6 kB / 0.5272 GB, free: 54.61 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.4387, allocations: 0.9375 kB / 0.5272 GB, free: 54.61 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.021e-05/0.4387, allocations: 1.469 kB / 0.5272 GB, free: 54.61 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.828e-05/0.4388, allocations: 34.42 kB / 0.5273 GB, free: 54.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.62e-06/0.4388, allocations: 0 / 0.5273 GB, free: 54.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.745e-06/0.4388, allocations: 5.453 kB / 0.5273 GB, free: 54.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.216e-06/0.4389, allocations: 0 / 0.5273 GB, free: 54.57 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.42e-05/0.4389, allocations: 8.594 kB / 0.5273 GB, free: 54.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001022/0.439, allocations: 146.5 kB / 0.5274 GB, free: 54.38 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.921e-05/0.4391, allocations: 27.75 kB / 0.5275 GB, free: 54.35 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001377/0.4392, allocations: 85.77 kB / 0.5275 GB, free: 54.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.861e-05/0.4393, allocations: 32 kB / 0.5276 GB, free: 54.21 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 1.945e-06/0.4393, allocations: 0 / 0.5276 GB, free: 54.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001263/0.4394, allocations: 40.36 kB / 0.5276 GB, free: 54.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.154e-05/0.4394, allocations: 56.73 kB / 0.5277 GB, free: 54.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.612e-05/0.4395, allocations: 94.45 kB / 0.5277 GB, free: 54.01 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.169e-06/0.4395, allocations: 25.7 kB / 0.5278 GB, free: 53.98 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.292e-05/0.4395, allocations: 81.27 kB / 0.5279 GB, free: 53.89 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.648e-05/0.4395, allocations: 9.703 kB / 0.5279 GB, free: 53.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.881e-06/0.4395, allocations: 0 / 0.5279 GB, free: 53.89 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.837e-05/0.4396, allocations: 311.4 kB / 0.5282 GB, free: 53.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.638e-05/0.4396, allocations: 11.59 kB / 0.5282 GB, free: 53.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.074e-05/0.4397, allocations: 2.078 kB / 0.5282 GB, free: 53.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.099e-05/0.4397, allocations: 1.438 kB / 0.5282 GB, free: 53.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.432e-06/0.4397, allocations: 2.109 kB / 0.5282 GB, free: 53.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.416e-05/0.4398, allocations: 35.2 kB / 0.5282 GB, free: 53.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.4398, allocations: 8.781 kB / 0.5282 GB, free: 53.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.072e-06/0.4398, allocations: 0 / 0.5282 GB, free: 53.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.4399, allocations: 1.828 kB / 0.5282 GB, free: 53.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.759e-05/0.4399, allocations: 3.672 kB / 0.5282 GB, free: 53.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.471e-06/0.4399, allocations: 0 / 0.5282 GB, free: 53.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.007e-05/0.44, allocations: 10.88 kB / 0.5282 GB, free: 53.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.268e-06/0.44, allocations: 5.578 kB / 0.5282 GB, free: 53.52 MB / 410.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.987e-05/0.4401, allocations: 107.5 kB / 0.5283 GB, free: 53.41 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.145e-05/0.4401, allocations: 1.719 kB / 0.5283 GB, free: 53.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.342e-05/0.4402, allocations: 50.64 kB / 0.5284 GB, free: 53.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.473e-06/0.4402, allocations: 0.6562 kB / 0.5284 GB, free: 53.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.822e-06/0.4402, allocations: 1.125 kB / 0.5284 GB, free: 53.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.039e-06/0.4402, allocations: 0 / 0.5284 GB, free: 53.36 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.498e-05/0.4403, allocations: 150.9 kB / 0.5285 GB, free: 53.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.81e-06/0.4403, allocations: 0 / 0.5285 GB, free: 53.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.111e-05/0.4403, allocations: 4.203 kB / 0.5285 GB, free: 53.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.4404, allocations: 0.5625 kB / 0.5285 GB, free: 53.17 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.114e-06/0.4404, allocations: 3.984 kB / 0.5285 GB, free: 53.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.114e-06/0.4404, allocations: 1.969 kB / 0.5285 GB, free: 53.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.158e-06/0.4404, allocations: 8 kB / 0.5286 GB, free: 53.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.75e-05/0.4405, allocations: 68.62 kB / 0.5286 GB, free: 53.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.654e-05/0.4405, allocations: 78.98 kB / 0.5287 GB, free: 52.99 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.4405, allocations: 5.062 kB / 0.5287 GB, free: 52.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.606e-05/0.4406, allocations: 0.6562 kB / 0.5287 GB, free: 52.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.137e-05/0.4406, allocations: 2.906 kB / 0.5287 GB, free: 52.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.748e-06/0.4406, allocations: 4.5 kB / 0.5287 GB, free: 52.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.44e-05/0.4406, allocations: 80.38 kB / 0.5288 GB, free: 52.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.96e-07/0.4406, allocations: 0 / 0.5288 GB, free: 52.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000248/0.4409, allocations: 3.688 kB / 0.5288 GB, free: 52.9 MB / 410.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.0001359/0.441, allocations: 101.5 kB / 0.5289 GB, free: 52.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.252e-05/0.4411, allocations: 6.797 kB / 0.5289 GB, free: 52.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.4412, allocations: 1.25 kB / 0.5289 GB, free: 52.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.322e-05/0.4412, allocations: 12.77 kB / 0.5289 GB, free: 52.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001033/0.4413, allocations: 11.55 kB / 0.5289 GB, free: 52.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001622/0.4415, allocations: 81.22 kB / 0.529 GB, free: 52.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001038/0.4416, allocations: 0.6738 MB / 0.5296 GB, free: 52.01 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.616e-05/0.4416, allocations: 2.859 kB / 0.5297 GB, free: 52.01 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.64e-05/0.4416, allocations: 9.125 kB / 0.5297 GB, free: 52 MB / 410.7 MB Notification: Performance of SimCode: time 1.277e-06/0.4417, allocations: 1.125 kB / 0.5297 GB, free: 52 MB / 410.7 MB Notification: Performance of Templates: time 0.002407/0.4441, allocations: 300.2 kB / 0.5299 GB, free: 51.94 MB / 410.7 MB