Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 8.1.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.637/1.637, allocations: 297.4 MB / 312.6 MB, free: 2.922 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009642/0.0009642, allocations: 182 kB / 382.3 MB, free: 14.82 MB / 314.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 225.7 MB / 0.6617 GB, free: 7.207 MB / 490.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007749/0.000775, allocations: 92.11 kB / 0.7789 GB, free: 46.86 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.000469/0.000469, allocations: 14.69 kB / 0.9059 GB, free: 4.898 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5397/0.5402, allocations: 119.2 MB / 1.022 GB, free: 57.66 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0006102/0.5409, allocations: 324.2 kB / 1.023 GB, free: 57.52 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0002542/0.5411, allocations: 120.9 kB / 1.023 GB, free: 57.41 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.869e-06/0.5412, allocations: 1.781 kB / 1.023 GB, free: 57.41 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 1.069e-05/0.5412, allocations: 1 kB / 1.023 GB, free: 57.41 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 4.979e-06/0.5412, allocations: 0 / 1.023 GB, free: 57.41 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001597/0.5414, allocations: 9.594 kB / 1.023 GB, free: 57.41 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 3.257e-05/0.5414, allocations: 11.56 kB / 1.023 GB, free: 57.4 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 4.903e-05/0.5415, allocations: 1.75 kB / 1.023 GB, free: 57.4 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 1.192e-05/0.5415, allocations: 1.844 kB / 1.023 GB, free: 57.4 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 2.159e-05/0.5415, allocations: 3.094 kB / 1.023 GB, free: 57.4 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 7.564e-06/0.5415, allocations: 0 / 1.023 GB, free: 57.4 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 5.582e-05/0.5416, allocations: 7.938 kB / 1.023 GB, free: 57.4 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 8.656e-06/0.5416, allocations: 7.406 kB / 1.023 GB, free: 57.39 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 2.131e-05/0.5416, allocations: 25.7 kB / 1.023 GB, free: 57.36 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 6.842e-05/0.5417, allocations: 12.81 kB / 1.023 GB, free: 57.36 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.5417, allocations: 1.531 kB / 1.023 GB, free: 57.36 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.753e-06/0.5417, allocations: 0 / 1.023 GB, free: 57.36 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.226e-06/0.5417, allocations: 0 / 1.023 GB, free: 57.36 MB / 0.698 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.0001794/0.5419, allocations: 317.9 kB / 1.023 GB, free: 57.01 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.542, allocations: 8.25 kB / 1.023 GB, free: 57.01 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.115e-05/0.542, allocations: 4.938 kB / 1.023 GB, free: 57.01 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.172e-05/0.542, allocations: 164.3 kB / 1.023 GB, free: 56.81 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.174e-06/0.542, allocations: 1.75 kB / 1.023 GB, free: 56.81 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.147e-06/0.5421, allocations: 384 / 1.023 GB, free: 56.81 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.439e-05/0.5421, allocations: 39.31 kB / 1.023 GB, free: 56.78 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.5421, allocations: 192 / 1.023 GB, free: 56.78 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-06/0.5422, allocations: 3.938 kB / 1.023 GB, free: 56.77 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.5422, allocations: 3.312 kB / 1.023 GB, free: 56.77 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.571e-05/0.5422, allocations: 4.125 kB / 1.023 GB, free: 56.77 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.35e-05/0.5423, allocations: 151 kB / 1.023 GB, free: 56.58 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 3.007e-05/0.5423, allocations: 27.33 kB / 1.023 GB, free: 56.55 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.36e-05/0.5423, allocations: 7.391 kB / 1.023 GB, free: 56.54 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001183/0.5425, allocations: 84.83 kB / 1.024 GB, free: 56.45 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.446e-05/0.5425, allocations: 35.62 kB / 1.024 GB, free: 56.41 MB / 0.698 GB Notification: Performance of pre-optimization done (n=2): time 9.51e-07/0.5425, allocations: 0.5312 kB / 1.024 GB, free: 56.41 MB / 0.698 GB Notification: Performance of matching and sorting (n=2): time 0.0001039/0.5426, allocations: 41.83 kB / 1.024 GB, free: 56.37 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.195e-05/0.5426, allocations: 55.41 kB / 1.024 GB, free: 56.31 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.725e-05/0.5427, allocations: 93.86 kB / 1.024 GB, free: 56.21 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.638e-06/0.5427, allocations: 32.08 kB / 1.024 GB, free: 56.17 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.474e-06/0.5427, allocations: 80.14 kB / 1.024 GB, free: 56.09 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.192e-05/0.5427, allocations: 3.906 kB / 1.024 GB, free: 56.09 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.924e-06/0.5427, allocations: 0 / 1.024 GB, free: 56.09 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 3.34e-05/0.5427, allocations: 310.8 kB / 1.024 GB, free: 55.77 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.997e-06/0.5428, allocations: 4.016 kB / 1.024 GB, free: 55.77 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.892e-06/0.5428, allocations: 1.656 kB / 1.024 GB, free: 55.77 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.647e-05/0.5428, allocations: 18.89 kB / 1.024 GB, free: 55.76 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.5428, allocations: 1.031 kB / 1.024 GB, free: 55.76 MB / 0.698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.47e-05/0.5429, allocations: 37.08 kB / 1.024 GB, free: 55.73 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.5429, allocations: 15.62 kB / 1.024 GB, free: 55.72 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-06/0.5429, allocations: 0 / 1.024 GB, free: 55.72 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.5429, allocations: 4.641 kB / 1.024 GB, free: 55.71 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.667e-05/0.543, allocations: 12.09 kB / 1.024 GB, free: 55.71 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.543, allocations: 0.9375 kB / 1.024 GB, free: 55.71 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.225e-05/0.543, allocations: 0 / 1.024 GB, free: 55.71 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-06/0.543, allocations: 1.594 kB / 1.024 GB, free: 55.71 MB / 0.698 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 3.584e-05/0.543, allocations: 108.4 kB / 1.024 GB, free: 55.6 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.262e-06/0.543, allocations: 3.688 kB / 1.024 GB, free: 55.6 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.883e-05/0.5431, allocations: 52.94 kB / 1.024 GB, free: 55.55 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.5431, allocations: 1.375 kB / 1.024 GB, free: 55.55 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.5431, allocations: 2.188 kB / 1.024 GB, free: 55.55 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.5431, allocations: 0 / 1.024 GB, free: 55.55 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.372e-05/0.5432, allocations: 149 kB / 1.025 GB, free: 55.36 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.5432, allocations: 0.6562 kB / 1.025 GB, free: 55.36 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.093e-05/0.5432, allocations: 2.75 kB / 1.025 GB, free: 55.36 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.5432, allocations: 3.312 kB / 1.025 GB, free: 55.36 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.2e-06/0.5432, allocations: 7.875 kB / 1.025 GB, free: 55.35 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.5432, allocations: 5.312 kB / 1.025 GB, free: 55.35 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.5432, allocations: 1.5 kB / 1.025 GB, free: 55.35 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.076e-05/0.5433, allocations: 68.31 kB / 1.025 GB, free: 55.28 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.148e-05/0.5433, allocations: 78.48 kB / 1.025 GB, free: 55.18 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.418e-06/0.5433, allocations: 7.312 kB / 1.025 GB, free: 55.18 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.148e-05/0.5434, allocations: 1.375 kB / 1.025 GB, free: 55.18 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.209e-05/0.5434, allocations: 1.375 kB / 1.025 GB, free: 55.18 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-06/0.5434, allocations: 0 / 1.025 GB, free: 55.18 MB / 0.698 GB Notification: Performance of sorting global known variables: time 9.408e-06/0.5434, allocations: 76.94 kB / 1.025 GB, free: 55.11 MB / 0.698 GB Notification: Performance of sort global known variables: time 9e-08/0.5434, allocations: 4 kB / 1.025 GB, free: 55.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002073/0.5436, allocations: 4.125 kB / 1.025 GB, free: 55.1 MB / 0.698 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001043/0.5437, allocations: 111.1 kB / 1.025 GB, free: 55.02 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 6e-05/0.5438, allocations: 14.81 kB / 1.025 GB, free: 55.01 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.5438, allocations: 0 / 1.025 GB, free: 55.01 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 1.181e-05/0.5438, allocations: 4.125 kB / 1.025 GB, free: 55.01 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.544, allocations: 1.375 kB / 1.025 GB, free: 55.01 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001179/0.5441, allocations: 89 kB / 1.025 GB, free: 54.91 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.373e-05/0.5442, allocations: 0.6719 MB / 1.026 GB, free: 54.21 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 1.767e-05/0.5442, allocations: 6.266 kB / 1.026 GB, free: 54.21 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.086e-05/0.5442, allocations: 8.812 kB / 1.026 GB, free: 54.2 MB / 0.698 GB Notification: Performance of SimCode: time 2.91e-07/0.5442, allocations: 0 / 1.026 GB, free: 54.2 MB / 0.698 GB Notification: Performance of Templates: time 0.001721/0.546, allocations: 310.1 kB / 1.026 GB, free: 54.15 MB / 0.698 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)