Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_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.3/package.mo): time 0.01005/0.01005, allocations: 92.88 kB / 15.04 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001155/0.001155, allocations: 173.5 kB / 15.92 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.263/2.263, allocations: 205.5 MB / 222.2 MB, free: 13.58 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.311/2.311, allocations: 252.8 MB / 0.511 GB, free: 8.312 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006531/0.0006533, allocations: 11.31 kB / 0.6243 GB, free: 20.95 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2267, allocations: 106.2 MB / 0.7281 GB, free: 8.094 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002218/0.229, allocations: 1.235 MB / 0.7293 GB, free: 6.844 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0004323/0.2295, allocations: 116.6 kB / 0.7294 GB, free: 6.727 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.587e-05/0.2295, allocations: 4 kB / 0.7294 GB, free: 6.723 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 1.878e-05/0.2296, allocations: 3.984 kB / 0.7294 GB, free: 6.719 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 5.14e-05/0.2296, allocations: 0 / 0.7294 GB, free: 6.719 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002276/0.2299, allocations: 19.92 kB / 0.7294 GB, free: 6.699 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 6.997e-05/0.23, allocations: 19.92 kB / 0.7294 GB, free: 6.68 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.2301, allocations: 7.984 kB / 0.7294 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 4.742e-05/0.2301, allocations: 11.98 kB / 0.7294 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 5.897e-05/0.2302, allocations: 11.92 kB / 0.7295 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.2302, allocations: 0 / 0.7295 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 7.058e-05/0.2303, allocations: 15.98 kB / 0.7295 GB, free: 6.633 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 1.406e-05/0.2303, allocations: 4 kB / 0.7295 GB, free: 6.629 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 3.133e-05/0.2304, allocations: 25.7 kB / 0.7295 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 9.785e-05/0.2305, allocations: 15.97 kB / 0.7295 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.2305, allocations: 7.938 kB / 0.7295 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.984e-06/0.2305, allocations: 0 / 0.7295 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.548e-06/0.2305, allocations: 0 / 0.7295 GB, free: 6.574 MB / 0.5573 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.0005835/0.2311, allocations: 347.6 kB / 0.7299 GB, free: 6.188 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.803e-05/0.2312, allocations: 16.02 kB / 0.7299 GB, free: 6.172 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.205e-05/0.2313, allocations: 30.56 kB / 0.7299 GB, free: 6.133 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.125e-05/0.2313, allocations: 3.906 kB / 0.7299 GB, free: 6.129 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.2314, allocations: 171 kB / 0.7301 GB, free: 5.922 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.82e-05/0.2315, allocations: 7.938 kB / 0.7301 GB, free: 5.914 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.786e-05/0.2315, allocations: 0 / 0.7301 GB, free: 5.914 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002753/0.2318, allocations: 61.66 kB / 0.7301 GB, free: 5.848 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.2318, allocations: 4 kB / 0.7301 GB, free: 5.844 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.2318, allocations: 0 / 0.7301 GB, free: 5.844 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.2319, allocations: 4 kB / 0.7301 GB, free: 5.84 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003311/0.2322, allocations: 51.89 kB / 0.7302 GB, free: 5.789 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004818/0.2327, allocations: 264.9 kB / 0.7304 GB, free: 5.48 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005211/0.2332, allocations: 62.53 kB / 0.7305 GB, free: 5.41 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001543/0.2334, allocations: 81.17 kB / 0.7306 GB, free: 5.312 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.2335, allocations: 38.5 kB / 0.7306 GB, free: 5.266 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=3): time 2.284e-06/0.2335, allocations: 0 / 0.7306 GB, free: 5.266 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3): time 0.0006498/0.2341, allocations: 109.7 kB / 0.7307 GB, free: 5.152 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.2342, allocations: 63.3 kB / 0.7308 GB, free: 5.078 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.2343, allocations: 101.8 kB / 0.7309 GB, free: 4.969 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.2344, allocations: 25.7 kB / 0.7309 GB, free: 4.938 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 5.387e-05/0.2344, allocations: 84.05 kB / 0.731 GB, free: 4.852 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 2.564e-05/0.2345, allocations: 11.84 kB / 0.731 GB, free: 4.84 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.316e-06/0.2345, allocations: 4 kB / 0.731 GB, free: 4.836 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.2346, allocations: 314.8 kB / 0.7313 GB, free: 4.52 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001637/0.2348, allocations: 27.98 kB / 0.7313 GB, free: 4.492 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.235, allocations: 19.98 kB / 0.7313 GB, free: 4.473 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000172/0.2351, allocations: 31.91 kB / 0.7314 GB, free: 4.441 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.2352, allocations: 0 / 0.7314 GB, free: 4.441 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003933/0.2356, allocations: 86.17 kB / 0.7315 GB, free: 4.352 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.2356, allocations: 4 kB / 0.7315 GB, free: 4.348 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.2356, allocations: 4 kB / 0.7315 GB, free: 4.344 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.2356, allocations: 0 / 0.7315 GB, free: 4.344 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.2358, allocations: 19.98 kB / 0.7315 GB, free: 4.324 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.2358, allocations: 0 / 0.7315 GB, free: 4.324 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.2359, allocations: 11.94 kB / 0.7315 GB, free: 4.312 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.223e-05/0.236, allocations: 4 kB / 0.7315 GB, free: 4.309 MB / 0.5573 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 9.619e-05/0.2361, allocations: 109.8 kB / 0.7316 GB, free: 4.191 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.2361, allocations: 7.984 kB / 0.7316 GB, free: 4.184 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004425/0.2366, allocations: 93.08 kB / 0.7317 GB, free: 4.082 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.2366, allocations: 4 kB / 0.7317 GB, free: 4.078 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.2366, allocations: 0 / 0.7317 GB, free: 4.078 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2366, allocations: 0 / 0.7317 GB, free: 4.078 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/0.2368, allocations: 169.5 kB / 0.7319 GB, free: 3.863 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2369, allocations: 0 / 0.7319 GB, free: 3.863 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.237, allocations: 19.98 kB / 0.7319 GB, free: 3.844 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.237, allocations: 0 / 0.7319 GB, free: 3.844 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.237, allocations: 3.938 kB / 0.7319 GB, free: 3.84 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.2371, allocations: 0 / 0.7319 GB, free: 3.84 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.2371, allocations: 0 / 0.7319 GB, free: 3.84 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004317/0.2375, allocations: 191.4 kB / 0.7321 GB, free: 3.637 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 3.965e-05/0.2376, allocations: 77.11 kB / 0.7321 GB, free: 3.543 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.2376, allocations: 3.938 kB / 0.7321 GB, free: 3.539 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.2377, allocations: 11.98 kB / 0.7322 GB, free: 3.527 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.944e-05/0.2378, allocations: 7.984 kB / 0.7322 GB, free: 3.52 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.2378, allocations: 4 kB / 0.7322 GB, free: 3.516 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 4.205e-05/0.2379, allocations: 75.28 kB / 0.7322 GB, free: 3.441 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.91e-07/0.2379, allocations: 8 kB / 0.7322 GB, free: 3.434 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0003258/0.2382, allocations: 4 kB / 0.7323 GB, free: 3.43 MB / 0.5573 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.0007571/0.239, allocations: 0.7202 MB / 0.733 GB, free: 2.68 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0003706/0.2394, allocations: 59.89 kB / 0.733 GB, free: 2.621 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2394, allocations: 0 / 0.733 GB, free: 2.621 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001783/0.2396, allocations: 31.97 kB / 0.733 GB, free: 2.59 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002392/0.2399, allocations: 8 kB / 0.7331 GB, free: 2.582 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005351/0.2404, allocations: 142.3 kB / 0.7332 GB, free: 2.406 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002525/0.2407, allocations: 0.6809 MB / 0.7339 GB, free: 1.699 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 5.057e-05/0.2407, allocations: 8 kB / 0.7339 GB, free: 1.691 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.299e-05/0.2408, allocations: 15.44 kB / 0.7339 GB, free: 1.676 MB / 0.5573 GB Notification: Performance of SimCode: time 9.52e-07/0.2408, allocations: 0 / 0.7339 GB, free: 1.676 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02241/0.2632, allocations: 1.278 MB / 0.7351 GB, free: 0.5039 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000303/0.2636, allocations: 176.7 kB / 0.7353 GB, free: 268 kB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.356/2.62, allocations: 7.938 kB / 0.7353 GB, free: 260 kB / 0.5573 GB