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.01122/0.01123, allocations: 107.2 kB / 15.06 MB, free: 5.555 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.001286/0.001286, allocations: 182.9 kB / 15.95 MB, free: 5.52 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 1.971/1.971, allocations: 194.6 MB / 211.3 MB, free: 11.27 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.528/2.528, allocations: 236.2 MB / 492.6 MB, free: 11.3 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004793/0.0004798, allocations: 12 kB / 0.587 GB, free: 2.039 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6547/0.6552, allocations: 98.7 MB / 0.6834 GB, free: 16.86 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002061/0.6573, allocations: 1.206 MB / 0.6846 GB, free: 15.97 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0004585/0.6578, allocations: 118.1 kB / 0.6847 GB, free: 15.89 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.756e-05/0.6579, allocations: 1.094 kB / 0.6847 GB, free: 15.89 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 1.681e-05/0.6579, allocations: 0 / 0.6847 GB, free: 15.89 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 5.83e-05/0.658, allocations: 5.875 kB / 0.6847 GB, free: 15.89 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.6582, allocations: 20.88 kB / 0.6847 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 6.785e-05/0.6583, allocations: 15.61 kB / 0.6848 GB, free: 15.87 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.6584, allocations: 14.34 kB / 0.6848 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 4.447e-05/0.6585, allocations: 5.109 kB / 0.6848 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 5.888e-05/0.6586, allocations: 16.33 kB / 0.6848 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 1.528e-05/0.6586, allocations: 1.312 kB / 0.6848 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 6.511e-05/0.6587, allocations: 7.031 kB / 0.6848 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 1.359e-05/0.6587, allocations: 6.656 kB / 0.6848 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 2.461e-05/0.6587, allocations: 31.2 kB / 0.6848 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 9.77e-05/0.6588, allocations: 23.59 kB / 0.6849 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.6588, allocations: 0 / 0.6849 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.044e-06/0.6589, allocations: 0 / 0.6849 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.6589, allocations: 0 / 0.6849 GB, free: 15.8 MB / 0.5261 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.0004898/0.6594, allocations: 339.9 kB / 0.6852 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.237e-05/0.6594, allocations: 9.094 kB / 0.6852 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.438e-05/0.6595, allocations: 44.83 kB / 0.6852 GB, free: 15.4 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.933e-05/0.6595, allocations: 5.5 kB / 0.6852 GB, free: 15.4 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.505e-05/0.6596, allocations: 170.5 kB / 0.6854 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.6596, allocations: 1.469 kB / 0.6854 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.719e-05/0.6597, allocations: 1.344 kB / 0.6854 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002705/0.66, allocations: 66.92 kB / 0.6855 GB, free: 15.15 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.66, allocations: 0 / 0.6855 GB, free: 15.15 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.66, allocations: 1.531 kB / 0.6855 GB, free: 15.15 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.66, allocations: 4.516 kB / 0.6855 GB, free: 15.15 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003233/0.6603, allocations: 47.36 kB / 0.6855 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004334/0.6608, allocations: 272.4 kB / 0.6858 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005185/0.6613, allocations: 57.89 kB / 0.6858 GB, free: 14.83 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001468/0.6615, allocations: 80.88 kB / 0.6859 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.195e-05/0.6615, allocations: 36.44 kB / 0.6859 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 3.036e-06/0.6615, allocations: 0 / 0.6859 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0006534/0.6622, allocations: 115.9 kB / 0.6861 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.139e-05/0.6623, allocations: 55.36 kB / 0.6861 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.742e-05/0.6624, allocations: 113.9 kB / 0.6862 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.6624, allocations: 25.7 kB / 0.6862 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.763e-05/0.6624, allocations: 82.88 kB / 0.6863 GB, free: 14.35 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.032e-05/0.6625, allocations: 10 kB / 0.6863 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-06/0.6625, allocations: 0 / 0.6863 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.207e-05/0.6625, allocations: 313.8 kB / 0.6866 GB, free: 14.03 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.6627, allocations: 24.12 kB / 0.6866 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.6629, allocations: 29.86 kB / 0.6867 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001674/0.6631, allocations: 20.78 kB / 0.6867 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.6631, allocations: 3.938 kB / 0.6867 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003964/0.6635, allocations: 90.72 kB / 0.6868 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.6635, allocations: 5.016 kB / 0.6868 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.6635, allocations: 0.9688 kB / 0.6868 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.6636, allocations: 0 / 0.6868 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.6637, allocations: 14.66 kB / 0.6868 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.6637, allocations: 3.984 kB / 0.6868 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.6639, allocations: 17.98 kB / 0.6868 GB, free: 13.95 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.6639, allocations: 0 / 0.6868 GB, free: 13.95 MB / 0.5261 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 8.392e-05/0.664, allocations: 113.5 kB / 0.6869 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.668e-05/0.664, allocations: 4.844 kB / 0.6869 GB, free: 13.83 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004345/0.6645, allocations: 96.38 kB / 0.687 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.6645, allocations: 1.188 kB / 0.687 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.6645, allocations: 0 / 0.687 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.6645, allocations: 2.031 kB / 0.687 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001884/0.6647, allocations: 166.5 kB / 0.6872 GB, free: 13.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.6647, allocations: 0 / 0.6872 GB, free: 13.58 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.6649, allocations: 14 kB / 0.6872 GB, free: 13.58 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.6649, allocations: 0.6094 kB / 0.6872 GB, free: 13.58 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.6649, allocations: 5.438 kB / 0.6872 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.6649, allocations: 0.75 kB / 0.6872 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.6649, allocations: 0 / 0.6872 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004126/0.6654, allocations: 183 kB / 0.6874 GB, free: 13.43 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 2.908e-05/0.6654, allocations: 86.97 kB / 0.6875 GB, free: 13.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.6654, allocations: 1.875 kB / 0.6875 GB, free: 13.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.6656, allocations: 15.83 kB / 0.6875 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.268e-05/0.6657, allocations: 6.734 kB / 0.6875 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.317e-06/0.6657, allocations: 1.344 kB / 0.6875 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.816e-05/0.6657, allocations: 79.23 kB / 0.6876 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.01e-07/0.6657, allocations: 0 / 0.6876 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003079/0.666, allocations: 12.75 kB / 0.6876 GB, free: 13.24 MB / 0.5261 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.0007116/0.6668, allocations: 0.7356 MB / 0.6883 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0003891/0.6672, allocations: 62.67 kB / 0.6884 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.6672, allocations: 3.938 kB / 0.6884 GB, free: 12.53 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.6674, allocations: 35.17 kB / 0.6884 GB, free: 12.52 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002524/0.6677, allocations: 2.938 kB / 0.6884 GB, free: 12.52 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005583/0.6682, allocations: 152.5 kB / 0.6885 GB, free: 12.37 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001323/0.6684, allocations: 0.6789 MB / 0.6892 GB, free: 11.67 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 5.527e-05/0.6685, allocations: 6.281 kB / 0.6892 GB, free: 11.67 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.245e-05/0.6685, allocations: 12.95 kB / 0.6892 GB, free: 11.66 MB / 0.5261 GB Notification: Performance of SimCode: time 1.032e-06/0.6685, allocations: 0 / 0.6892 GB, free: 11.66 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02298/0.6915, allocations: 1.277 MB / 0.6905 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002714/0.6919, allocations: 174.6 kB / 0.6906 GB, free: 11.24 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.267/2.959, allocations: 4 kB / 0.6906 GB, free: 11.24 MB / 0.5261 GB