Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Utilities.Math.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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01733/0.01734, allocations: 220.3 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.001774/0.001773, allocations: 175.6 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.52/3.52, allocations: 389.1 MB / 405.9 MB, free: 67.63 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.297/4.297, allocations: 472.3 MB / 0.9018 GB, free: 13.37 MB / 0.573 GB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 12 kB / 1.008 GB, free: 0.8203 MB / 0.6667 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5179/0.519, allocations: 98.72 MB / 1.104 GB, free: 183.8 MB / 0.6823 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001363/0.5204, allocations: 1.216 MB / 1.105 GB, free: 182.5 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.0002798/0.5207, allocations: 115.2 kB / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.131e-05/0.5208, allocations: 0 / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 1.543e-05/0.5208, allocations: 0 / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 3.599e-05/0.5208, allocations: 7.938 kB / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001782/0.521, allocations: 11.98 kB / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 5.302e-05/0.5211, allocations: 24.58 kB / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 8.175e-05/0.5212, allocations: 15.33 kB / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 3.376e-05/0.5212, allocations: 7.984 kB / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 4.453e-05/0.5213, allocations: 15.92 kB / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.5213, allocations: 4 kB / 1.105 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 4.708e-05/0.5214, allocations: 4 kB / 1.105 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 1.046e-05/0.5214, allocations: 7.984 kB / 1.105 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 1.866e-05/0.5214, allocations: 34.67 kB / 1.105 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 7.102e-05/0.5215, allocations: 23.89 kB / 1.105 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.673e-06/0.5215, allocations: 3.25 kB / 1.105 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.081e-06/0.5215, allocations: 0 / 1.105 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.78e-06/0.5215, allocations: 4 kB / 1.105 GB, free: 182.3 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003594/0.5219, allocations: 336.7 kB / 1.106 GB, free: 181.9 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.5219, allocations: 8.031 kB / 1.106 GB, free: 181.9 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.845e-05/0.522, allocations: 11.34 kB / 1.106 GB, free: 181.9 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.1e-05/0.5221, allocations: 171 kB / 1.106 GB, free: 181.7 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.196e-05/0.5221, allocations: 4 kB / 1.106 GB, free: 181.7 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.5221, allocations: 0 / 1.106 GB, free: 181.7 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001896/0.5223, allocations: 63.39 kB / 1.106 GB, free: 181.6 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.344e-06/0.5223, allocations: 0.8906 kB / 1.106 GB, free: 181.6 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.683e-06/0.5224, allocations: 3.312 kB / 1.106 GB, free: 181.6 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.5224, allocations: 0 / 1.106 GB, free: 181.6 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002137/0.5226, allocations: 51.89 kB / 1.106 GB, free: 181.6 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003269/0.5229, allocations: 267.2 kB / 1.106 GB, free: 181.2 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003425/0.5233, allocations: 66 kB / 1.106 GB, free: 181.2 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.5234, allocations: 32.12 kB / 1.106 GB, free: 181.1 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 9.921e-05/0.5235, allocations: 77.11 kB / 1.107 GB, free: 181 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.791e-05/0.5236, allocations: 48.77 kB / 1.107 GB, free: 181 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 2.159e-06/0.5236, allocations: 0 / 1.107 GB, free: 181 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0004209/0.524, allocations: 100.2 kB / 1.107 GB, free: 180.9 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.2e-05/0.5241, allocations: 55.36 kB / 1.107 GB, free: 180.8 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.861e-05/0.5241, allocations: 109.8 kB / 1.107 GB, free: 180.7 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.033e-05/0.5241, allocations: 29.02 kB / 1.107 GB, free: 180.7 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 2.936e-05/0.5242, allocations: 80.14 kB / 1.107 GB, free: 180.6 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.819e-05/0.5242, allocations: 8.938 kB / 1.107 GB, free: 180.6 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-06/0.5242, allocations: 4 kB / 1.107 GB, free: 180.6 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 4.909e-05/0.5243, allocations: 314.8 kB / 1.107 GB, free: 180.3 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.5244, allocations: 27.48 kB / 1.107 GB, free: 180.2 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.891e-05/0.5245, allocations: 27.92 kB / 1.107 GB, free: 180.2 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001024/0.5246, allocations: 23.91 kB / 1.107 GB, free: 180.2 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.501e-06/0.5246, allocations: 5.781 kB / 1.107 GB, free: 180.2 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002669/0.5249, allocations: 85.09 kB / 1.107 GB, free: 180.1 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.5249, allocations: 4 kB / 1.107 GB, free: 180.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.178e-06/0.525, allocations: 1 kB / 1.107 GB, free: 180.1 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.525, allocations: 0 / 1.107 GB, free: 180.1 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.5251, allocations: 16.64 kB / 1.107 GB, free: 180.1 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.985e-06/0.5251, allocations: 0 / 1.107 GB, free: 180.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.378e-05/0.5252, allocations: 15.44 kB / 1.107 GB, free: 180.1 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.07e-06/0.5252, allocations: 1.219 kB / 1.107 GB, free: 180.1 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.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.06e-05/0.5253, allocations: 113.8 kB / 1.108 GB, free: 179.9 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.542e-05/0.5253, allocations: 0 / 1.108 GB, free: 179.9 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002958/0.5256, allocations: 97.42 kB / 1.108 GB, free: 179.8 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.922e-06/0.5257, allocations: 1.031 kB / 1.108 GB, free: 179.8 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.593e-06/0.5257, allocations: 0 / 1.108 GB, free: 179.8 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.823e-06/0.5257, allocations: 4 kB / 1.108 GB, free: 179.8 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001545/0.5258, allocations: 169.5 kB / 1.108 GB, free: 179.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.899e-06/0.5259, allocations: 0 / 1.108 GB, free: 179.6 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.774e-05/0.526, allocations: 20.2 kB / 1.108 GB, free: 179.6 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.659e-06/0.526, allocations: 1.594 kB / 1.108 GB, free: 179.6 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.579e-06/0.526, allocations: 0 / 1.108 GB, free: 179.6 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.526, allocations: 0 / 1.108 GB, free: 179.6 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.572e-06/0.526, allocations: 0 / 1.108 GB, free: 179.6 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002788/0.5263, allocations: 185.5 kB / 1.108 GB, free: 179.4 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 2.045e-05/0.5263, allocations: 85.98 kB / 1.108 GB, free: 179.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.5264, allocations: 4.219 kB / 1.108 GB, free: 179.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.5265, allocations: 7.984 kB / 1.108 GB, free: 179.3 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.347e-05/0.5266, allocations: 11.98 kB / 1.108 GB, free: 179.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.016e-06/0.5266, allocations: 0 / 1.108 GB, free: 179.3 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 2.603e-05/0.5266, allocations: 79.28 kB / 1.108 GB, free: 179.2 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6.56e-07/0.5266, allocations: 0 / 1.108 GB, free: 179.2 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003082/0.5269, allocations: 12 kB / 1.108 GB, free: 179.2 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.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.0001375/0.5271, allocations: 124.1 kB / 1.108 GB, free: 179.1 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002608/0.5274, allocations: 51.17 kB / 1.108 GB, free: 179 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.342e-06/0.5274, allocations: 0.8438 kB / 1.108 GB, free: 179 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001213/0.5275, allocations: 35.33 kB / 1.108 GB, free: 179 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003267/0.5279, allocations: 11.95 kB / 1.108 GB, free: 179 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002888/0.5282, allocations: 120.6 kB / 1.109 GB, free: 178.8 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001202/0.5283, allocations: 0.6815 MB / 1.109 GB, free: 178.1 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.995e-05/0.5283, allocations: 8.25 kB / 1.109 GB, free: 178.1 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.848e-05/0.5284, allocations: 7.438 kB / 1.109 GB, free: 178.1 MB / 0.6823 GB Notification: Performance of SimCode: time 1.396e-06/0.5284, allocations: 0.75 kB / 1.109 GB, free: 178.1 MB / 0.6823 GB Notification: Performance of Templates: time 0.003037/0.5314, allocations: 0.6029 MB / 1.11 GB, free: 177.6 MB / 0.6823 GB