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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Buildings): time 4.234/4.234, allocations: 433 MB / 440.3 MB, free: 4.812 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5093/4.743, allocations: 104.3 MB / 0.5319 GB, free: 12.95 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/4.999, allocations: 98.72 MB / 0.6283 GB, free: 9.785 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.251/5.25, allocations: 123.9 MB / 0.7493 GB, free: 13.67 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004069/5.25, allocations: 79.53 kB / 0.7494 GB, free: 13.59 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.006654/5.257, allocations: 0.9433 MB / 0.7503 GB, free: 12.61 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/5.257, allocations: 8 kB / 0.7503 GB, free: 12.6 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.073e-05/5.257, allocations: 4 kB / 0.7503 GB, free: 12.59 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001774/5.257, allocations: 163 kB / 0.7505 GB, free: 12.39 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/5.257, allocations: 3.984 kB / 0.7505 GB, free: 12.39 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.194e-05/5.258, allocations: 8 kB / 0.7505 GB, free: 12.38 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001381/5.258, allocations: 16 kB / 0.7505 GB, free: 12.37 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001617/5.258, allocations: 45.69 kB / 0.7506 GB, free: 12.32 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/5.258, allocations: 0 / 0.7506 GB, free: 12.32 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/5.258, allocations: 0 / 0.7506 GB, free: 12.32 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.032e-05/5.258, allocations: 3.984 kB / 0.7506 GB, free: 12.31 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009012/5.259, allocations: 269.4 kB / 0.7508 GB, free: 12.01 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005353/5.259, allocations: 38.56 kB / 0.7509 GB, free: 11.96 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.713e-05/5.26, allocations: 12.92 kB / 0.7509 GB, free: 11.95 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002087/5.26, allocations: 81.11 kB / 0.7509 GB, free: 11.85 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/5.26, allocations: 34.56 kB / 0.751 GB, free: 11.81 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 3.216e-06/5.26, allocations: 0 / 0.751 GB, free: 11.81 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0003516/5.26, allocations: 57.62 kB / 0.751 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/5.26, allocations: 55.34 kB / 0.7511 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/5.26, allocations: 92.98 kB / 0.7512 GB, free: 11.58 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/5.26, allocations: 25.7 kB / 0.7512 GB, free: 11.55 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.781e-05/5.261, allocations: 84.14 kB / 0.7513 GB, free: 11.46 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.025e-05/5.261, allocations: 11.84 kB / 0.7513 GB, free: 11.45 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.426e-06/5.261, allocations: 4 kB / 0.7513 GB, free: 11.45 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001594/5.261, allocations: 314.8 kB / 0.7516 GB, free: 11.13 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.323e-05/5.261, allocations: 11.98 kB / 0.7516 GB, free: 11.12 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.855e-05/5.261, allocations: 8 kB / 0.7516 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.514e-05/5.261, allocations: 4 kB / 0.7516 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/5.261, allocations: 0 / 0.7516 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002555/5.261, allocations: 53.69 kB / 0.7517 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/5.261, allocations: 4 kB / 0.7517 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/5.261, allocations: 3.938 kB / 0.7517 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/5.261, allocations: 4 kB / 0.7517 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002869/5.262, allocations: 15.98 kB / 0.7517 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/5.262, allocations: 0 / 0.7517 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001804/5.262, allocations: 15.89 kB / 0.7517 GB, free: 11.01 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.397e-05/5.262, allocations: 0 / 0.7517 GB, free: 11.01 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 0.0001353/5.262, allocations: 105 kB / 0.7518 GB, free: 10.9 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.977e-05/5.262, allocations: 4 kB / 0.7518 GB, free: 10.89 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003104/5.263, allocations: 53.36 kB / 0.7519 GB, free: 10.84 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/5.263, allocations: 3.906 kB / 0.7519 GB, free: 10.83 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/5.263, allocations: 0 / 0.7519 GB, free: 10.83 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/5.263, allocations: 0 / 0.7519 GB, free: 10.83 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003297/5.263, allocations: 142.2 kB / 0.752 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/5.263, allocations: 4 kB / 0.752 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002532/5.263, allocations: 19.92 kB / 0.752 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/5.263, allocations: 0 / 0.752 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.953e-05/5.263, allocations: 3.984 kB / 0.752 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/5.263, allocations: 4 kB / 0.752 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/5.263, allocations: 0 / 0.752 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003526/5.264, allocations: 143.9 kB / 0.7522 GB, free: 10.47 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004555/5.264, allocations: 0.5233 MB / 0.7527 GB, free: 9.926 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.318e-05/5.264, allocations: 77.11 kB / 0.7528 GB, free: 9.832 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.636e-05/5.264, allocations: 7.906 kB / 0.7528 GB, free: 9.824 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002709/5.265, allocations: 11.98 kB / 0.7528 GB, free: 9.812 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.814e-05/5.265, allocations: 15.92 kB / 0.7528 GB, free: 9.797 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/5.265, allocations: 0 / 0.7528 GB, free: 9.797 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.861e-05/5.265, allocations: 83.28 kB / 0.7529 GB, free: 9.715 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001972/5.267, allocations: 8 kB / 0.7529 GB, free: 9.707 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.0003261/5.267, allocations: 115.2 kB / 0.753 GB, free: 9.582 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002/5.268, allocations: 23.94 kB / 0.753 GB, free: 9.559 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/5.268, allocations: 0 / 0.753 GB, free: 9.559 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.976e-05/5.268, allocations: 15.98 kB / 0.753 GB, free: 9.543 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/5.268, allocations: 4 kB / 0.753 GB, free: 9.539 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004335/5.268, allocations: 67.72 kB / 0.7531 GB, free: 9.449 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004677/5.269, allocations: 0.6954 MB / 0.7538 GB, free: 8.73 MB / 0.6355 GB Notification: Performance of SimCode: time 1.393e-06/5.269, allocations: 0 / 0.7538 GB, free: 8.73 MB / 0.6355 GB