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 ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_6_0_0_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.35/4.35, allocations: 433.2 MB / 440.7 MB, free: 4.609 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.49e-05/2.5e-05, allocations: 5.562 kB / 0.5325 GB, free: 12.79 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2156/0.2157, allocations: 98.74 MB / 0.6289 GB, free: 9.18 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2276/0.4433, allocations: 124 MB / 0.75 GB, free: 13 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002824/0.4437, allocations: 67.97 kB / 0.7501 GB, free: 12.93 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.00364/0.4473, allocations: 0.9026 MB / 0.751 GB, free: 12.03 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.664e-06/0.4474, allocations: 0 / 0.751 GB, free: 12.03 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.4474, allocations: 0 / 0.751 GB, free: 12.03 MB / 0.6355 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.0005156/0.4479, allocations: 355.1 kB / 0.7513 GB, free: 11.64 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.448, allocations: 12.03 kB / 0.7513 GB, free: 11.62 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.492e-05/0.448, allocations: 7.953 kB / 0.7513 GB, free: 11.62 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001375/0.4482, allocations: 163.1 kB / 0.7515 GB, free: 11.42 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.379e-05/0.4482, allocations: 0 / 0.7515 GB, free: 11.42 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.129e-05/0.4482, allocations: 0 / 0.7515 GB, free: 11.42 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001016/0.4484, allocations: 19.98 kB / 0.7515 GB, free: 11.4 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000101/0.4485, allocations: 45.61 kB / 0.7515 GB, free: 11.35 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.4485, allocations: 8 kB / 0.7515 GB, free: 11.34 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.4485, allocations: 0 / 0.7515 GB, free: 11.34 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.4485, allocations: 0 / 0.7515 GB, free: 11.34 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005477/0.4491, allocations: 257.3 kB / 0.7518 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003356/0.4494, allocations: 46.62 kB / 0.7518 GB, free: 11 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.158e-05/0.4495, allocations: 17 kB / 0.7518 GB, free: 10.98 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000142/0.4497, allocations: 85.05 kB / 0.7519 GB, free: 10.88 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.4497, allocations: 30.56 kB / 0.752 GB, free: 10.84 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.763e-06/0.4497, allocations: 0 / 0.752 GB, free: 10.84 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002233/0.45, allocations: 45.69 kB / 0.752 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.45, allocations: 51.41 kB / 0.752 GB, free: 10.72 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.005e-05/0.4501, allocations: 96.95 kB / 0.7521 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.4501, allocations: 29.7 kB / 0.7522 GB, free: 10.58 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.759e-05/0.4502, allocations: 92.06 kB / 0.7523 GB, free: 10.49 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.4502, allocations: 7.906 kB / 0.7523 GB, free: 10.48 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.821e-06/0.4502, allocations: 0 / 0.7523 GB, free: 10.48 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.4504, allocations: 314.8 kB / 0.7526 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.055e-05/0.4504, allocations: 8 kB / 0.7526 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.648e-05/0.4505, allocations: 4 kB / 0.7526 GB, free: 10.15 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.772e-05/0.4505, allocations: 15.98 kB / 0.7526 GB, free: 10.14 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.4505, allocations: 0 / 0.7526 GB, free: 10.14 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001367/0.4507, allocations: 57.53 kB / 0.7526 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.4507, allocations: 4 kB / 0.7526 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.4507, allocations: 0 / 0.7526 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.4508, allocations: 0 / 0.7526 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.4509, allocations: 15.98 kB / 0.7527 GB, free: 10.05 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.4509, allocations: 0 / 0.7527 GB, free: 10.05 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.908e-05/0.451, allocations: 8 kB / 0.7527 GB, free: 10.05 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.4511, allocations: 7.938 kB / 0.7527 GB, free: 10.04 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.y,fac.u) * Number of discrete 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 7.457e-05/0.4512, allocations: 105 kB / 0.7528 GB, free: 9.93 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000154/0.4513, allocations: 57.62 kB / 0.7528 GB, free: 9.867 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.82e-05/0.4514, allocations: 0 / 0.7528 GB, free: 9.867 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001735/0.4515, allocations: 49.81 kB / 0.7529 GB, free: 9.812 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.4516, allocations: 480 / 0.7529 GB, free: 9.812 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.4516, allocations: 3.953 kB / 0.7529 GB, free: 9.809 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.4516, allocations: 3.984 kB / 0.7529 GB, free: 9.805 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001916/0.4518, allocations: 146.1 kB / 0.753 GB, free: 9.625 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.4518, allocations: 4 kB / 0.753 GB, free: 9.621 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.452, allocations: 11.98 kB / 0.753 GB, free: 9.609 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.452, allocations: 3.984 kB / 0.753 GB, free: 9.605 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.452, allocations: 11.94 kB / 0.7531 GB, free: 9.594 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.452, allocations: 0 / 0.7531 GB, free: 9.594 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.452, allocations: 0 / 0.7531 GB, free: 9.594 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001858/0.4522, allocations: 147.4 kB / 0.7532 GB, free: 9.434 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.7e-05/0.4523, allocations: 89.11 kB / 0.7533 GB, free: 9.328 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.695e-05/0.4523, allocations: 0 / 0.7533 GB, free: 9.328 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.4525, allocations: 7.984 kB / 0.7533 GB, free: 9.32 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.765e-05/0.4525, allocations: 4 kB / 0.7533 GB, free: 9.316 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-06/0.4526, allocations: 0 / 0.7533 GB, free: 9.316 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.403e-05/0.4526, allocations: 83.27 kB / 0.7534 GB, free: 9.234 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.61e-07/0.4526, allocations: 0 / 0.7534 GB, free: 9.234 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000315/0.4529, allocations: 12 kB / 0.7534 GB, free: 9.223 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.y,fac.u) * Number of discrete 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.0005758/0.4535, allocations: 0.7006 MB / 0.7541 GB, free: 8.492 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001179/0.4537, allocations: 16 kB / 0.7541 GB, free: 8.477 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4537, allocations: 0 / 0.7541 GB, free: 8.477 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.981e-05/0.4537, allocations: 12 kB / 0.7541 GB, free: 8.465 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002369/0.454, allocations: 7.938 kB / 0.7541 GB, free: 8.457 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004562/0.4545, allocations: 102.1 kB / 0.7542 GB, free: 8.32 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002843/0.4548, allocations: 0.6807 MB / 0.7549 GB, free: 7.613 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.958e-05/0.4548, allocations: 0 / 0.7549 GB, free: 7.613 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.553e-05/0.4549, allocations: 19.42 kB / 0.7549 GB, free: 7.594 MB / 0.6355 GB Notification: Performance of SimCode: time 7.62e-07/0.4549, allocations: 3.938 kB / 0.7549 GB, free: 7.59 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03539/0.4903, allocations: 0.97 MB / 0.7558 GB, free: 6.629 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002989/0.4907, allocations: 126.6 kB / 0.756 GB, free: 6.441 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.279/2.769, allocations: 3.938 kB / 0.756 GB, free: 6.438 MB / 0.6355 GB