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.00251/0.00251, allocations: 358 kB / 16.59 MB, free: 5.562 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.5/1.5, allocations: 165.8 MB / 183.1 MB, free: 5.473 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.655/3.655, allocations: 410.7 MB / 0.6001 GB, free: 15.18 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.001755/0.001755, allocations: 198 kB / 0.6668 GB, free: 6.926 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004729/0.0004731, allocations: 12 kB / 0.7429 GB, free: 8.953 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4111/0.4116, allocations: 67.45 MB / 0.8088 GB, free: 28.77 MB / 378.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.0007055/0.4124, allocations: 307.3 kB / 0.8091 GB, free: 28.47 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002259/0.4126, allocations: 39.84 kB / 0.8091 GB, free: 28.43 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.428e-06/0.4127, allocations: 4 kB / 0.8091 GB, free: 28.43 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.081e-05/0.4127, allocations: 3.938 kB / 0.8091 GB, free: 28.42 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.573e-06/0.4127, allocations: 4 kB / 0.8091 GB, free: 28.42 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001757/0.4129, allocations: 7.984 kB / 0.8091 GB, free: 28.41 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.489e-05/0.4129, allocations: 7.938 kB / 0.8091 GB, free: 28.4 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.21e-05/0.413, allocations: 0 / 0.8091 GB, free: 28.4 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.516e-05/0.413, allocations: 3.984 kB / 0.8091 GB, free: 28.4 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.405e-05/0.4131, allocations: 4 kB / 0.8091 GB, free: 28.39 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.778e-06/0.4131, allocations: 0 / 0.8091 GB, free: 28.39 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.333e-05/0.4131, allocations: 8 kB / 0.8091 GB, free: 28.39 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.935e-06/0.4132, allocations: 3.984 kB / 0.8091 GB, free: 28.38 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.708e-05/0.4132, allocations: 25.7 kB / 0.8092 GB, free: 28.35 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 5.319e-05/0.4133, allocations: 4 kB / 0.8092 GB, free: 28.35 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.4133, allocations: 4 kB / 0.8092 GB, free: 28.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4133, allocations: 0 / 0.8092 GB, free: 28.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.596e-06/0.4133, allocations: 0 / 0.8092 GB, free: 28.34 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.0002217/0.4135, allocations: 315.4 kB / 0.8095 GB, free: 27.99 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.4136, allocations: 8.031 kB / 0.8095 GB, free: 27.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.739e-05/0.4136, allocations: 3.938 kB / 0.8095 GB, free: 27.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.29e-05/0.4137, allocations: 163.1 kB / 0.8096 GB, free: 27.78 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-06/0.4137, allocations: 0 / 0.8096 GB, free: 27.78 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.195e-05/0.4137, allocations: 4 kB / 0.8096 GB, free: 27.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.855e-05/0.4138, allocations: 33.69 kB / 0.8097 GB, free: 27.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.4138, allocations: 0 / 0.8097 GB, free: 27.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.396e-06/0.4139, allocations: 3.953 kB / 0.8097 GB, free: 27.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.4139, allocations: 4 kB / 0.8097 GB, free: 27.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.312e-05/0.4139, allocations: 0 / 0.8097 GB, free: 27.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001143/0.414, allocations: 149.7 kB / 0.8098 GB, free: 27.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.935e-05/0.4141, allocations: 30.52 kB / 0.8098 GB, free: 27.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.192e-05/0.4141, allocations: 16.92 kB / 0.8099 GB, free: 27.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001474/0.4143, allocations: 77.11 kB / 0.8099 GB, free: 27.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.013e-05/0.4143, allocations: 34.56 kB / 0.81 GB, free: 27.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 2.435e-06/0.4143, allocations: 0 / 0.81 GB, free: 27.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001377/0.4145, allocations: 45.62 kB / 0.81 GB, free: 27.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.854e-05/0.4145, allocations: 59.3 kB / 0.8101 GB, free: 27.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.251e-05/0.4145, allocations: 89.86 kB / 0.8102 GB, free: 27.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.985e-06/0.4146, allocations: 25.83 kB / 0.8102 GB, free: 27.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.352e-05/0.4146, allocations: 84.14 kB / 0.8103 GB, free: 27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.711e-05/0.4146, allocations: 7.906 kB / 0.8103 GB, free: 26.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.436e-06/0.4146, allocations: 0 / 0.8103 GB, free: 26.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.005e-05/0.4147, allocations: 310.8 kB / 0.8106 GB, free: 26.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.544e-05/0.4147, allocations: 11.92 kB / 0.8106 GB, free: 26.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.067e-05/0.4147, allocations: 4 kB / 0.8106 GB, free: 26.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.637e-05/0.4148, allocations: 0 / 0.8106 GB, free: 26.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.4148, allocations: 0 / 0.8106 GB, free: 26.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.367e-05/0.4148, allocations: 37.77 kB / 0.8106 GB, free: 26.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.4149, allocations: 8 kB / 0.8106 GB, free: 26.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.4149, allocations: 0 / 0.8106 GB, free: 26.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.4149, allocations: 3.984 kB / 0.8106 GB, free: 26.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.33e-05/0.415, allocations: 4 kB / 0.8106 GB, free: 26.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.415, allocations: 0 / 0.8106 GB, free: 26.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.965e-05/0.415, allocations: 14 kB / 0.8106 GB, free: 26.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.909e-06/0.415, allocations: 0 / 0.8106 GB, free: 26.59 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 5.106e-05/0.4151, allocations: 106.5 kB / 0.8107 GB, free: 26.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.386e-06/0.4151, allocations: 8.031 kB / 0.8108 GB, free: 26.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.599e-05/0.4152, allocations: 44.81 kB / 0.8108 GB, free: 26.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.4152, allocations: 4 kB / 0.8108 GB, free: 26.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.4152, allocations: 0 / 0.8108 GB, free: 26.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.325e-05/0.4153, allocations: 77.11 kB / 0.8109 GB, free: 26.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.4153, allocations: 3.953 kB / 0.8109 GB, free: 26.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.506e-05/0.4153, allocations: 0 / 0.8109 GB, free: 26.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.711e-05/0.4154, allocations: 7.984 kB / 0.8109 GB, free: 26.31 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.377e-05/0.4154, allocations: 120.9 kB / 0.811 GB, free: 26.19 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 9.667e-05/0.4156, allocations: 210.8 kB / 0.8112 GB, free: 25.96 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.371e-05/0.4156, allocations: 0 / 0.8112 GB, free: 25.96 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.328e-05/0.4156, allocations: 75.28 kB / 0.8113 GB, free: 25.89 MB / 378.7 MB Notification: Performance of Backend: time 4.51e-07/0.4156, allocations: 0 / 0.8113 GB, free: 25.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003943/0.416, allocations: 102.3 kB / 0.8114 GB, free: 25.79 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002396/0.4163, allocations: 0.535 MB / 0.8119 GB, free: 25.2 MB / 378.7 MB Notification: Performance of Templates: time 0.002551/0.4188, allocations: 321.3 kB / 0.8122 GB, free: 24.89 MB / 378.7 MB