Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01111/0.01111, allocations: 221.9 kB / 15.17 MB, free: 6 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001114/0.001113, allocations: 180.9 kB / 16.06 MB, free: 5.871 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 3.56/3.56, allocations: 389.1 MB / 405.9 MB, free: 67.66 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.535/4.535, allocations: 472.3 MB / 0.9018 GB, free: 13.4 MB / 0.573 GB Notification: Performance of FrontEnd - loaded program: time 0.000538/0.0005384, allocations: 16 kB / 1.008 GB, free: 0.8203 MB / 0.6667 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5573/0.5579, allocations: 98.73 MB / 1.104 GB, free: 183.6 MB / 0.6823 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0005608/0.5585, allocations: 309.3 kB / 1.104 GB, free: 183.3 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.0001918/0.5587, allocations: 48.69 kB / 1.104 GB, free: 183.3 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.177e-05/0.5587, allocations: 0 / 1.104 GB, free: 183.3 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 8.141e-06/0.5588, allocations: 0 / 1.104 GB, free: 183.3 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 5.826e-06/0.5588, allocations: 0 / 1.104 GB, free: 183.3 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001473/0.5589, allocations: 15.2 kB / 1.104 GB, free: 183.3 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 3.429e-05/0.559, allocations: 8 kB / 1.104 GB, free: 183.3 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 4.292e-05/0.559, allocations: 2.344 kB / 1.104 GB, free: 183.3 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 1.306e-05/0.5591, allocations: 3.984 kB / 1.104 GB, free: 183.3 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 2.023e-05/0.5591, allocations: 0.6562 kB / 1.104 GB, free: 183.3 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 8.328e-06/0.5591, allocations: 0 / 1.104 GB, free: 183.3 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 5.289e-05/0.5592, allocations: 8 kB / 1.104 GB, free: 183.3 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 6.039e-06/0.5592, allocations: 0 / 1.104 GB, free: 183.3 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 1.654e-05/0.5592, allocations: 29.69 kB / 1.104 GB, free: 183.2 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 5e-05/0.5593, allocations: 4.719 kB / 1.104 GB, free: 183.2 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.355e-06/0.5593, allocations: 7.938 kB / 1.104 GB, free: 183.2 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.955e-06/0.5593, allocations: 3.938 kB / 1.104 GB, free: 183.2 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.495e-06/0.5593, allocations: 0 / 1.104 GB, free: 183.2 MB / 0.6823 GB 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.0001817/0.5595, allocations: 307.4 kB / 1.105 GB, free: 182.9 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.5595, allocations: 12.09 kB / 1.105 GB, free: 182.9 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.28e-05/0.5596, allocations: 0 / 1.105 GB, free: 182.9 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.416e-05/0.5596, allocations: 163 kB / 1.105 GB, free: 182.7 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.5597, allocations: 0.5625 kB / 1.105 GB, free: 182.7 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.667e-06/0.5597, allocations: 0 / 1.105 GB, free: 182.7 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.051e-05/0.5598, allocations: 40.97 kB / 1.105 GB, free: 182.6 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.01e-06/0.5598, allocations: 0 / 1.105 GB, free: 182.6 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.465e-06/0.5598, allocations: 0 / 1.105 GB, free: 182.6 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.957e-06/0.5598, allocations: 1.922 kB / 1.105 GB, free: 182.6 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.257e-05/0.5599, allocations: 5.125 kB / 1.105 GB, free: 182.6 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000101/0.56, allocations: 158.5 kB / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 4.789e-05/0.56, allocations: 25.5 kB / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.846e-05/0.5601, allocations: 12.86 kB / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001477/0.5602, allocations: 77.11 kB / 1.105 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.5602, allocations: 38.56 kB / 1.105 GB, free: 182.2 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=2): time 1.93e-06/0.5603, allocations: 0 / 1.105 GB, free: 182.2 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2): time 0.0001226/0.5604, allocations: 44.59 kB / 1.105 GB, free: 182.2 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.873e-05/0.5604, allocations: 51.41 kB / 1.105 GB, free: 182.1 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.256e-05/0.5605, allocations: 89.86 kB / 1.105 GB, free: 182 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 7.552e-06/0.5605, allocations: 29.7 kB / 1.105 GB, free: 182 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 1.265e-05/0.5605, allocations: 80.14 kB / 1.106 GB, free: 181.9 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.904e-05/0.5605, allocations: 0.9375 kB / 1.106 GB, free: 181.9 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.911e-06/0.5605, allocations: 6.094 kB / 1.106 GB, free: 181.9 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 4.55e-05/0.5606, allocations: 314.8 kB / 1.106 GB, free: 181.6 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.318e-05/0.5606, allocations: 3.984 kB / 1.106 GB, free: 181.6 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.035e-05/0.5606, allocations: 4 kB / 1.106 GB, free: 181.6 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.116e-05/0.5607, allocations: 7.438 kB / 1.106 GB, free: 181.6 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.905e-06/0.5607, allocations: 0 / 1.106 GB, free: 181.6 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.733e-05/0.5607, allocations: 37.61 kB / 1.106 GB, free: 181.5 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.5608, allocations: 8 kB / 1.106 GB, free: 181.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.356e-06/0.5608, allocations: 0 / 1.106 GB, free: 181.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.5608, allocations: 4.875 kB / 1.106 GB, free: 181.5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.511e-05/0.5609, allocations: 7.984 kB / 1.106 GB, free: 181.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.5609, allocations: 0 / 1.106 GB, free: 181.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.743e-05/0.5609, allocations: 4.156 kB / 1.106 GB, free: 181.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.93e-06/0.5609, allocations: 0 / 1.106 GB, free: 181.5 MB / 0.6823 GB 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.688e-05/0.561, allocations: 113.8 kB / 1.106 GB, free: 181.4 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.06e-05/0.561, allocations: 4 kB / 1.106 GB, free: 181.4 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.364e-05/0.5611, allocations: 36.81 kB / 1.106 GB, free: 181.3 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.962e-06/0.5611, allocations: 4 kB / 1.106 GB, free: 181.3 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.411e-06/0.5611, allocations: 4.781 kB / 1.106 GB, free: 181.3 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.258e-06/0.5611, allocations: 0.6562 kB / 1.106 GB, free: 181.3 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.035e-05/0.5612, allocations: 157.6 kB / 1.106 GB, free: 181.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.5612, allocations: 0 / 1.106 GB, free: 181.1 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.875e-05/0.5613, allocations: 7.938 kB / 1.106 GB, free: 181.1 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.531e-06/0.5613, allocations: 0.9844 kB / 1.106 GB, free: 181.1 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-06/0.5613, allocations: 0 / 1.106 GB, free: 181.1 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.67e-06/0.5613, allocations: 0 / 1.106 GB, free: 181.1 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.641e-06/0.5613, allocations: 9.719 kB / 1.106 GB, free: 181.1 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.009e-05/0.5614, allocations: 64.62 kB / 1.106 GB, free: 181 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 1.666e-05/0.5614, allocations: 82.33 kB / 1.106 GB, free: 180.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.103e-05/0.5614, allocations: 0 / 1.106 GB, free: 180.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.502e-05/0.5615, allocations: 0 / 1.106 GB, free: 180.9 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.875e-05/0.5615, allocations: 4 kB / 1.106 GB, free: 180.9 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.384e-06/0.5615, allocations: 3.984 kB / 1.106 GB, free: 180.9 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 1.293e-05/0.5615, allocations: 78.88 kB / 1.106 GB, free: 180.9 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6.1e-07/0.5615, allocations: 0 / 1.106 GB, free: 180.9 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002422/0.5618, allocations: 8.656 kB / 1.106 GB, free: 180.8 MB / 0.6823 GB 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.0001342/0.5619, allocations: 106.3 kB / 1.107 GB, free: 180.7 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 6.805e-05/0.562, allocations: 11.94 kB / 1.107 GB, free: 180.7 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.562, allocations: 0 / 1.107 GB, free: 180.7 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 1.893e-05/0.5621, allocations: 10.39 kB / 1.107 GB, free: 180.7 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001593/0.5622, allocations: 0 / 1.107 GB, free: 180.7 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001545/0.5624, allocations: 79.33 kB / 1.107 GB, free: 180.6 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001125/0.5625, allocations: 0.677 MB / 1.107 GB, free: 179.9 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 1.625e-05/0.5625, allocations: 4.531 kB / 1.107 GB, free: 179.9 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.353e-05/0.5626, allocations: 7.438 kB / 1.107 GB, free: 179.9 MB / 0.6823 GB Notification: Performance of SimCode: time 1.228e-06/0.5626, allocations: 0 / 1.107 GB, free: 179.9 MB / 0.6823 GB Notification: Performance of Templates: time 0.002358/0.5649, allocations: 309.6 kB / 1.108 GB, free: 179.6 MB / 0.6823 GB