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: "" <> 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 loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.0167/0.0167, allocations: 221.9 kB / 15.17 MB, free: 5.992 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.001979/0.001979, allocations: 182 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 4.158/4.158, allocations: 389.1 MB / 405.9 MB, free: 13.36 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.246/4.246, allocations: 472.3 MB / 0.9017 GB, free: 3.605 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006881/0.0006885, allocations: 19.98 kB / 1.008 GB, free: 10.18 MB / 0.6667 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6964/0.6972, allocations: 98.71 MB / 1.104 GB, free: 212.7 MB / 0.7292 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001881/0.6991, allocations: 1.217 MB / 1.105 GB, free: 212 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.0003551/0.6995, allocations: 111.2 kB / 1.105 GB, free: 212 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.419e-05/0.6996, allocations: 4.188 kB / 1.105 GB, free: 212 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 1.864e-05/0.6996, allocations: 0 / 1.105 GB, free: 212 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 4.126e-05/0.6996, allocations: 3.938 kB / 1.105 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001906/0.6998, allocations: 13.91 kB / 1.105 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 7.005e-05/0.6999, allocations: 25.91 kB / 1.105 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 8.742e-05/0.7, allocations: 9.656 kB / 1.105 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 4.054e-05/0.7001, allocations: 12.41 kB / 1.105 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 4.958e-05/0.7001, allocations: 18.16 kB / 1.105 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 1.423e-05/0.7002, allocations: 1.25 kB / 1.105 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 5.749e-05/0.7002, allocations: 6.766 kB / 1.106 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 1.325e-05/0.7003, allocations: 7.031 kB / 1.106 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 2.167e-05/0.7003, allocations: 38.17 kB / 1.106 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 8.013e-05/0.7004, allocations: 20.22 kB / 1.106 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.7004, allocations: 1.125 kB / 1.106 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.365e-06/0.7004, allocations: 0 / 1.106 GB, free: 211.9 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 9.658e-06/0.7004, allocations: 0 / 1.106 GB, free: 211.9 MB / 0.7292 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.0004583/0.7009, allocations: 338.4 kB / 1.106 GB, free: 211.5 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.7009, allocations: 12.44 kB / 1.106 GB, free: 211.5 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3e-05/0.701, allocations: 34.56 kB / 1.106 GB, free: 211.5 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.695e-05/0.701, allocations: 6.281 kB / 1.106 GB, free: 211.5 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.395e-05/0.7011, allocations: 174.5 kB / 1.106 GB, free: 211.3 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.7012, allocations: 1.062 kB / 1.106 GB, free: 211.3 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.537e-05/0.7012, allocations: 1.688 kB / 1.106 GB, free: 211.3 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002464/0.7014, allocations: 64.25 kB / 1.106 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.7015, allocations: 1.25 kB / 1.106 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.7015, allocations: 3.094 kB / 1.106 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.7015, allocations: 1 kB / 1.106 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003146/0.7018, allocations: 54.91 kB / 1.106 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003639/0.7022, allocations: 267.2 kB / 1.106 GB, free: 210.9 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004953/0.7027, allocations: 63.72 kB / 1.107 GB, free: 210.9 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.7029, allocations: 33.27 kB / 1.107 GB, free: 210.9 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001126/0.703, allocations: 80.42 kB / 1.107 GB, free: 210.8 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.688e-05/0.703, allocations: 35.69 kB / 1.107 GB, free: 210.8 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 1.724e-06/0.7031, allocations: 0 / 1.107 GB, free: 210.8 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0005718/0.7036, allocations: 107 kB / 1.107 GB, free: 210.7 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.7037, allocations: 55.92 kB / 1.107 GB, free: 210.7 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.964e-05/0.7037, allocations: 107 kB / 1.107 GB, free: 210.6 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.7038, allocations: 28.95 kB / 1.107 GB, free: 210.5 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 3.49e-05/0.7038, allocations: 86.83 kB / 1.107 GB, free: 210.4 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.708e-05/0.7038, allocations: 6.109 kB / 1.107 GB, free: 210.4 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.054e-06/0.7039, allocations: 0 / 1.107 GB, free: 210.4 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 5.735e-05/0.7039, allocations: 317.8 kB / 1.107 GB, free: 210.1 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.7041, allocations: 23.39 kB / 1.107 GB, free: 210.1 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/0.7042, allocations: 37.86 kB / 1.107 GB, free: 210.1 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001515/0.7044, allocations: 24.91 kB / 1.107 GB, free: 210.1 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.7044, allocations: 0 / 1.107 GB, free: 210.1 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003434/0.7048, allocations: 79.59 kB / 1.108 GB, free: 210.1 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.7048, allocations: 10 kB / 1.108 GB, free: 210.1 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-06/0.7048, allocations: 0 / 1.108 GB, free: 210.1 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.7048, allocations: 0 / 1.108 GB, free: 210.1 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.705, allocations: 18.55 kB / 1.108 GB, free: 210.1 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.705, allocations: 6.016 kB / 1.108 GB, free: 210.1 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.452e-05/0.7051, allocations: 7.438 kB / 1.108 GB, free: 210.1 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.718e-06/0.7051, allocations: 1.625 kB / 1.108 GB, free: 210.1 MB / 0.7292 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.579e-05/0.7052, allocations: 109.4 kB / 1.108 GB, free: 209.9 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.08e-05/0.7052, allocations: 7.641 kB / 1.108 GB, free: 209.9 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003909/0.7056, allocations: 107 kB / 1.108 GB, free: 209.9 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.7057, allocations: 0 / 1.108 GB, free: 209.9 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.7057, allocations: 2.75 kB / 1.108 GB, free: 209.9 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.7057, allocations: 3.953 kB / 1.108 GB, free: 209.9 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.7059, allocations: 159.3 kB / 1.108 GB, free: 209.7 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.7059, allocations: 1.969 kB / 1.108 GB, free: 209.7 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000124/0.706, allocations: 12.8 kB / 1.108 GB, free: 209.7 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.706, allocations: 0 / 1.108 GB, free: 209.7 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.706, allocations: 5 kB / 1.108 GB, free: 209.7 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.7061, allocations: 0 / 1.108 GB, free: 209.7 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.7061, allocations: 0 / 1.108 GB, free: 209.7 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003683/0.7064, allocations: 191.3 kB / 1.108 GB, free: 209.5 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.516e-05/0.7065, allocations: 84.23 kB / 1.108 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/0.7065, allocations: 0 / 1.108 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.7066, allocations: 11.75 kB / 1.108 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.839e-05/0.7067, allocations: 5.938 kB / 1.108 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.7067, allocations: 0 / 1.108 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.969e-05/0.7068, allocations: 82.12 kB / 1.108 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of sort global known variables: time 3.31e-07/0.7068, allocations: 2.938 kB / 1.108 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000288/0.7071, allocations: 4.469 kB / 1.108 GB, free: 209.4 MB / 0.7292 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.0006017/0.7077, allocations: 0.7413 MB / 1.109 GB, free: 208.7 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003605/0.7081, allocations: 56.19 kB / 1.109 GB, free: 208.7 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.7081, allocations: 0 / 1.109 GB, free: 208.7 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001709/0.7083, allocations: 30.95 kB / 1.109 GB, free: 208.7 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003371/0.7086, allocations: 3.969 kB / 1.109 GB, free: 208.7 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004998/0.7091, allocations: 154.1 kB / 1.109 GB, free: 208.5 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001265/0.7093, allocations: 0.6803 MB / 1.11 GB, free: 207.8 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 4.907e-05/0.7093, allocations: 6.125 kB / 1.11 GB, free: 207.8 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.503e-05/0.7094, allocations: 14.09 kB / 1.11 GB, free: 207.8 MB / 0.7292 GB Notification: Performance of SimCode: time 7.52e-07/0.7094, allocations: 0 / 1.11 GB, free: 207.8 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02301/0.7324, allocations: 1.284 MB / 1.111 GB, free: 207.8 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002196/0.7327, allocations: 181.5 kB / 1.111 GB, free: 207.6 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.336/3.069, allocations: 0 / 1.111 GB, free: 207.6 MB / 0.7292 GB