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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_6_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.02503/0.02503, allocations: 108 kB / 15.05 MB, free: 5.934 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.001306/0.001306, allocations: 181 kB / 15.94 MB, free: 5.898 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 2.057/2.057, allocations: 194.6 MB / 211.2 MB, free: 11.1 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.262/2.262, allocations: 236.2 MB / 492.6 MB, free: 11.37 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006556/0.0006558, allocations: 12 kB / 0.587 GB, free: 2.074 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6759/0.6767, allocations: 98.72 MB / 0.6834 GB, free: 16.71 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2388/0.9155, allocations: 123.9 MB / 0.8044 GB, free: 2.293 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003358/0.9159, allocations: 79.94 kB / 0.8045 GB, free: 2.215 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.001576/0.9175, allocations: 0.5162 MB / 0.805 GB, free: 1.695 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.475e-06/0.9176, allocations: 0 / 0.805 GB, free: 1.695 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.345e-06/0.9176, allocations: 4 kB / 0.805 GB, free: 1.691 MB / 0.6198 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.0003248/0.9179, allocations: 319.4 kB / 0.8053 GB, free: 1.332 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.918, allocations: 8.031 kB / 0.8053 GB, free: 1.324 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.045e-05/0.918, allocations: 30.56 kB / 0.8053 GB, free: 1.285 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.582e-05/0.9181, allocations: 0 / 0.8053 GB, free: 1.285 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.9182, allocations: 171 kB / 0.8055 GB, free: 1.078 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.9182, allocations: 0 / 0.8055 GB, free: 1.078 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.512e-05/0.9182, allocations: 7.984 kB / 0.8055 GB, free: 1.07 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000105/0.9184, allocations: 25.7 kB / 0.8055 GB, free: 1.039 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.9184, allocations: 4 kB / 0.8055 GB, free: 1.035 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-06/0.9184, allocations: 0 / 0.8055 GB, free: 1.035 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.341e-06/0.9184, allocations: 0 / 0.8055 GB, free: 1.035 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.235e-05/0.9185, allocations: 11.88 kB / 0.8056 GB, free: 1.023 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001826/0.9187, allocations: 157.6 kB / 0.8057 GB, free: 0.8203 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 6.112e-05/0.9187, allocations: 26.55 kB / 0.8057 GB, free: 0.7852 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000178/0.9189, allocations: 89.16 kB / 0.8058 GB, free: 0.6797 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.919, allocations: 30.56 kB / 0.8058 GB, free: 0.6406 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=2): time 1.503e-06/0.919, allocations: 0 / 0.8058 GB, free: 0.6406 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2): time 0.0001647/0.9192, allocations: 37.64 kB / 0.8059 GB, free: 0.5977 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.9192, allocations: 55.41 kB / 0.8059 GB, free: 0.5312 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.93e-05/0.9193, allocations: 93.12 kB / 0.806 GB, free: 444 kB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.9193, allocations: 25.7 kB / 0.806 GB, free: 412 kB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.943e-05/0.9194, allocations: 84.12 kB / 0.8061 GB, free: 324 kB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.246e-05/0.9194, allocations: 0 / 0.8061 GB, free: 324 kB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-06/0.9194, allocations: 0 / 0.8061 GB, free: 324 kB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.9196, allocations: 310.8 kB / 0.8064 GB, free: 4 kB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.706e-05/0.9196, allocations: 4 kB / 0.8064 GB, free: 0 / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.988e-06/0.9196, allocations: 0 / 0.8064 GB, free: 0 / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.561e-05/0.9197, allocations: 12 kB / 0.8064 GB, free: 15.98 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.9197, allocations: 4.062 kB / 0.8064 GB, free: 15.98 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.134e-05/0.9198, allocations: 37.64 kB / 0.8065 GB, free: 15.94 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.9199, allocations: 7.938 kB / 0.8065 GB, free: 15.93 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.9199, allocations: 0 / 0.8065 GB, free: 15.93 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.9199, allocations: 4 kB / 0.8065 GB, free: 15.93 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.284e-05/0.92, allocations: 0 / 0.8065 GB, free: 15.93 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.92, allocations: 0 / 0.8065 GB, free: 15.93 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.506e-05/0.92, allocations: 7.906 kB / 0.8065 GB, free: 15.92 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.92, allocations: 3.984 kB / 0.8065 GB, free: 15.92 MB / 0.6355 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 8.673e-05/0.9201, allocations: 117.8 kB / 0.8066 GB, free: 15.79 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.386e-06/0.9202, allocations: 0 / 0.8066 GB, free: 15.79 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.9203, allocations: 44.81 kB / 0.8067 GB, free: 15.74 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.9203, allocations: 0 / 0.8067 GB, free: 15.74 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.9203, allocations: 0 / 0.8067 GB, free: 15.74 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.9203, allocations: 0 / 0.8067 GB, free: 15.74 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001241/0.9205, allocations: 153.6 kB / 0.8068 GB, free: 15.54 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.9205, allocations: 3.953 kB / 0.8068 GB, free: 15.54 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.879e-05/0.9205, allocations: 7.938 kB / 0.8068 GB, free: 15.53 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.9205, allocations: 4.031 kB / 0.8068 GB, free: 15.53 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.303e-06/0.9206, allocations: 0 / 0.8068 GB, free: 15.53 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.9206, allocations: 0 / 0.8068 GB, free: 15.53 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.9206, allocations: 0 / 0.8068 GB, free: 15.53 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001065/0.9207, allocations: 61.12 kB / 0.8069 GB, free: 15.45 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.737e-05/0.9208, allocations: 85.06 kB / 0.807 GB, free: 15.35 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.9208, allocations: 0 / 0.807 GB, free: 15.35 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.55e-05/0.9208, allocations: 3.938 kB / 0.807 GB, free: 15.34 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.426e-05/0.9208, allocations: 12.02 kB / 0.807 GB, free: 15.33 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.603e-06/0.9209, allocations: 4 kB / 0.807 GB, free: 15.33 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.279e-05/0.9209, allocations: 75.28 kB / 0.8071 GB, free: 15.25 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.1e-07/0.9209, allocations: 0 / 0.8071 GB, free: 15.25 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000247/0.9212, allocations: 5.547 kB / 0.8071 GB, free: 15.25 MB / 0.6355 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.0005271/0.9217, allocations: 0.6124 MB / 0.8077 GB, free: 14.61 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 8.446e-05/0.9218, allocations: 11.98 kB / 0.8077 GB, free: 14.6 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.9218, allocations: 0 / 0.8077 GB, free: 14.6 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.414e-05/0.9218, allocations: 7.938 kB / 0.8077 GB, free: 14.59 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001067/0.922, allocations: 4 kB / 0.8077 GB, free: 14.59 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003668/0.9223, allocations: 124.3 kB / 0.8078 GB, free: 14.43 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003165/0.9227, allocations: 0.6772 MB / 0.8085 GB, free: 13.72 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 2.209e-05/0.9227, allocations: 4 kB / 0.8085 GB, free: 13.72 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.097e-05/0.9228, allocations: 15.42 kB / 0.8085 GB, free: 13.7 MB / 0.6355 GB Notification: Performance of SimCode: time 6.51e-07/0.9228, allocations: 0 / 0.8085 GB, free: 13.7 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02008/0.9428, allocations: 0.8485 MB / 0.8093 GB, free: 12.96 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003398/0.9433, allocations: 189.8 kB / 0.8095 GB, free: 12.71 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.504/3.448, allocations: 0 / 0.8095 GB, free: 12.71 MB / 0.6355 GB