Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial") [: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 loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.125/2.125, allocations: 253.1 MB / 260.4 MB, free: 7.488 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001536/0.001536, allocations: 181.3 kB / 319.6 MB, free: 3.324 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.953/1.953, allocations: 205.4 MB / 0.5704 GB, free: 15.06 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001245/0.001244, allocations: 102.6 kB / 0.6746 GB, free: 4.43 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.043e-05/1.058e-05, allocations: 0 / 0.7843 GB, free: 102.4 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1962/0.1963, allocations: 106.2 MB / 0.8881 GB, free: 12.01 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6177/0.814, allocations: 131 MB / 1.016 GB, free: 7.156 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002959/0.8144, allocations: 71.02 kB / 1.016 GB, free: 7.117 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.001356/0.8157, allocations: 209.8 kB / 1.016 GB, free: 6.957 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.8158, allocations: 2.625 kB / 1.016 GB, free: 6.957 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002734/0.8161, allocations: 312.2 kB / 1.017 GB, free: 6.613 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.8161, allocations: 12.03 kB / 1.017 GB, free: 6.602 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.981e-05/0.8162, allocations: 3.906 kB / 1.017 GB, free: 6.598 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.8163, allocations: 159.1 kB / 1.017 GB, free: 6.402 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.8163, allocations: 0 / 1.017 GB, free: 6.402 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.286e-06/0.8163, allocations: 3.531 kB / 1.017 GB, free: 6.402 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.408e-05/0.8164, allocations: 4 kB / 1.017 GB, free: 6.398 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.499e-05/0.8165, allocations: 38.88 kB / 1.017 GB, free: 6.359 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.8165, allocations: 0 / 1.017 GB, free: 6.359 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.8165, allocations: 0 / 1.017 GB, free: 6.359 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.8165, allocations: 0 / 1.017 GB, free: 6.359 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001494/0.8167, allocations: 130.1 kB / 1.017 GB, free: 6.195 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.37e-05/0.8168, allocations: 26.7 kB / 1.017 GB, free: 6.164 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.455e-05/0.8168, allocations: 12.92 kB / 1.017 GB, free: 6.148 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001857/0.817, allocations: 85.09 kB / 1.017 GB, free: 6.047 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.817, allocations: 30.56 kB / 1.017 GB, free: 6.008 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.473e-06/0.8171, allocations: 0 / 1.017 GB, free: 6.008 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001823/0.8172, allocations: 41.44 kB / 1.017 GB, free: 5.965 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.8173, allocations: 55.39 kB / 1.017 GB, free: 5.898 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.046e-05/0.8173, allocations: 85 kB / 1.017 GB, free: 5.809 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.8174, allocations: 25.73 kB / 1.017 GB, free: 5.777 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.257e-05/0.8174, allocations: 88.08 kB / 1.017 GB, free: 5.688 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/0.8175, allocations: 3.906 kB / 1.017 GB, free: 5.684 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.327e-06/0.8175, allocations: 0 / 1.017 GB, free: 5.684 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.8176, allocations: 310.8 kB / 1.018 GB, free: 5.371 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.201e-05/0.8176, allocations: 7.312 kB / 1.018 GB, free: 5.367 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.032e-05/0.8177, allocations: 0 / 1.018 GB, free: 5.367 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.957e-05/0.8177, allocations: 4 kB / 1.018 GB, free: 5.363 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.8177, allocations: 0 / 1.018 GB, free: 5.363 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001024/0.8178, allocations: 42.59 kB / 1.018 GB, free: 5.316 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.8179, allocations: 4 kB / 1.018 GB, free: 5.312 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.8179, allocations: 3.906 kB / 1.018 GB, free: 5.309 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.8179, allocations: 0 / 1.018 GB, free: 5.309 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.066e-05/0.818, allocations: 4 kB / 1.018 GB, free: 5.305 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.818, allocations: 0 / 1.018 GB, free: 5.305 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.911e-05/0.818, allocations: 0 / 1.018 GB, free: 5.305 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.8181, allocations: 4 kB / 1.018 GB, free: 5.301 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,n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.132e-05/0.8182, allocations: 104 kB / 1.018 GB, free: 5.195 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.284e-05/0.8182, allocations: 7.969 kB / 1.018 GB, free: 5.188 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001394/0.8183, allocations: 52.64 kB / 1.018 GB, free: 5.133 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.8184, allocations: 0 / 1.018 GB, free: 5.133 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.8184, allocations: 0 / 1.018 GB, free: 5.133 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.8184, allocations: 3.938 kB / 1.018 GB, free: 5.129 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.8185, allocations: 139 kB / 1.018 GB, free: 4.961 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.8185, allocations: 0 / 1.018 GB, free: 4.961 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.369e-05/0.8186, allocations: 0 / 1.018 GB, free: 4.961 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.8186, allocations: 4 kB / 1.018 GB, free: 4.957 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.8186, allocations: 0 / 1.018 GB, free: 4.957 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.8186, allocations: 8.562 kB / 1.018 GB, free: 4.949 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.8186, allocations: 0 / 1.018 GB, free: 4.949 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001162/0.8187, allocations: 64.19 kB / 1.018 GB, free: 4.871 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.903e-05/0.8188, allocations: 77.11 kB / 1.018 GB, free: 4.777 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.8188, allocations: 0 / 1.018 GB, free: 4.777 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.059e-05/0.8189, allocations: 7.906 kB / 1.018 GB, free: 4.77 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.14e-05/0.8189, allocations: 7.984 kB / 1.018 GB, free: 4.762 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-06/0.8189, allocations: 4.031 kB / 1.018 GB, free: 4.758 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.681e-05/0.819, allocations: 75.28 kB / 1.018 GB, free: 4.684 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002607/0.8192, allocations: 8 kB / 1.018 GB, free: 4.676 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,n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001982/0.8194, allocations: 103.2 kB / 1.018 GB, free: 4.562 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.622e-05/0.8195, allocations: 11.86 kB / 1.018 GB, free: 4.555 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.8195, allocations: 0 / 1.018 GB, free: 4.555 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.152e-05/0.8196, allocations: 7.938 kB / 1.018 GB, free: 4.547 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001131/0.8197, allocations: 8.125 kB / 1.018 GB, free: 4.539 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001841/0.8199, allocations: 47.92 kB / 1.018 GB, free: 4.469 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003671/0.8203, allocations: 0.6841 MB / 1.019 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of SimCode: time 6.62e-07/0.8203, allocations: 3.938 kB / 1.019 GB, free: 3.754 MB / 0.6355 GB Notification: Performance of Templates: time 0.0029/0.8232, allocations: 336.3 kB / 1.019 GB, free: 3.438 MB / 0.6355 GB