Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.496/1.496, allocations: 289.8 MB / 297.1 MB, free: 6.625 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001022/0.001022, allocations: 181.3 kB / 366.3 MB, free: 1.965 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 205.1 MB / 0.6256 GB, free: 5.797 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009009/0.0009008, allocations: 85.17 kB / 0.7396 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.977e-06/8.987e-06, allocations: 0 / 0.859 GB, free: 13.36 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6307/0.6308, allocations: 116.3 MB / 0.9726 GB, free: 68.01 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1838/0.8147, allocations: 138.4 MB / 1.108 GB, free: 10.07 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/0.815, allocations: 75.94 kB / 1.108 GB, free: 9.992 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.002494/0.8175, allocations: 0.625 MB / 1.108 GB, free: 9.379 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.8175, allocations: 0 / 1.108 GB, free: 9.379 MB / 0.7136 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.0003969/0.8179, allocations: 338.4 kB / 1.109 GB, free: 9.004 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.818, allocations: 12.78 kB / 1.109 GB, free: 8.992 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.739e-05/0.818, allocations: 11.91 kB / 1.109 GB, free: 8.98 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001347/0.8181, allocations: 163.1 kB / 1.109 GB, free: 8.781 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.557e-05/0.8182, allocations: 0 / 1.109 GB, free: 8.781 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.12e-05/0.8182, allocations: 8.5 kB / 1.109 GB, free: 8.773 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.563e-05/0.8183, allocations: 15.91 kB / 1.109 GB, free: 8.758 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.978e-05/0.8184, allocations: 41.69 kB / 1.109 GB, free: 8.711 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.8184, allocations: 0.5625 kB / 1.109 GB, free: 8.711 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.8184, allocations: 0.6562 kB / 1.109 GB, free: 8.711 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.8184, allocations: 0 / 1.109 GB, free: 8.711 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004512/0.8189, allocations: 265.4 kB / 1.109 GB, free: 8.414 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002374/0.8191, allocations: 50.5 kB / 1.109 GB, free: 8.355 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.894e-05/0.8192, allocations: 8.922 kB / 1.109 GB, free: 8.344 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001275/0.8193, allocations: 85.19 kB / 1.109 GB, free: 8.242 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.8193, allocations: 35.25 kB / 1.109 GB, free: 8.199 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.8193, allocations: 0.8438 kB / 1.109 GB, free: 8.199 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0001997/0.8195, allocations: 45.69 kB / 1.109 GB, free: 8.148 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.8196, allocations: 51.41 kB / 1.109 GB, free: 8.086 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.655e-05/0.8197, allocations: 104.9 kB / 1.11 GB, free: 7.977 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.8197, allocations: 25.7 kB / 1.11 GB, free: 7.945 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.531e-05/0.8198, allocations: 84.14 kB / 1.11 GB, free: 7.859 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.697e-05/0.8198, allocations: 3.906 kB / 1.11 GB, free: 7.855 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-06/0.8198, allocations: 0 / 1.11 GB, free: 7.855 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.8199, allocations: 322.8 kB / 1.11 GB, free: 7.531 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.814e-05/0.82, allocations: 8.781 kB / 1.11 GB, free: 7.523 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.57e-05/0.82, allocations: 8 kB / 1.11 GB, free: 7.516 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.583e-05/0.82, allocations: 4 kB / 1.11 GB, free: 7.512 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.82, allocations: 8 kB / 1.11 GB, free: 7.504 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.852e-05/0.8201, allocations: 53.59 kB / 1.11 GB, free: 7.445 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.8202, allocations: 4 kB / 1.11 GB, free: 7.441 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.8202, allocations: 0 / 1.11 GB, free: 7.441 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.8202, allocations: 0 / 1.11 GB, free: 7.441 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.591e-05/0.8203, allocations: 15.98 kB / 1.11 GB, free: 7.426 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.8203, allocations: 0.6562 kB / 1.11 GB, free: 7.426 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.042e-05/0.8204, allocations: 16.73 kB / 1.11 GB, free: 7.41 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-06/0.8204, allocations: 0 / 1.11 GB, free: 7.41 MB / 0.7136 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.49e-05/0.8205, allocations: 101 kB / 1.11 GB, free: 7.305 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.648e-05/0.8205, allocations: 7.906 kB / 1.11 GB, free: 7.297 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001521/0.8207, allocations: 62.05 kB / 1.11 GB, free: 7.223 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.8207, allocations: 0 / 1.11 GB, free: 7.223 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.8207, allocations: 5.031 kB / 1.11 GB, free: 7.219 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.8207, allocations: 0 / 1.11 GB, free: 7.219 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000147/0.8208, allocations: 150.1 kB / 1.11 GB, free: 7.035 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.8209, allocations: 0.6875 kB / 1.11 GB, free: 7.035 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.821, allocations: 11.98 kB / 1.11 GB, free: 7.023 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.821, allocations: 4 kB / 1.11 GB, free: 7.02 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.821, allocations: 0 / 1.11 GB, free: 7.02 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.821, allocations: 1 kB / 1.11 GB, free: 7.02 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.821, allocations: 4 kB / 1.11 GB, free: 7.016 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001469/0.8212, allocations: 147.4 kB / 1.111 GB, free: 6.855 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.338e-05/0.8212, allocations: 81.11 kB / 1.111 GB, free: 6.758 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.8212, allocations: 1.406 kB / 1.111 GB, free: 6.758 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.955e-05/0.8213, allocations: 11.98 kB / 1.111 GB, free: 6.746 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.996e-05/0.8214, allocations: 11.92 kB / 1.111 GB, free: 6.734 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.8214, allocations: 4 kB / 1.111 GB, free: 6.73 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.123e-05/0.8215, allocations: 79.28 kB / 1.111 GB, free: 6.652 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002186/0.8217, allocations: 19.84 kB / 1.111 GB, free: 6.633 MB / 0.7136 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.0001607/0.8218, allocations: 107.2 kB / 1.111 GB, free: 6.52 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.574e-05/0.8219, allocations: 16 kB / 1.111 GB, free: 6.504 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.822, allocations: 2.469 kB / 1.111 GB, free: 6.504 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.269e-05/0.822, allocations: 15.94 kB / 1.111 GB, free: 6.488 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000162/0.8222, allocations: 7.984 kB / 1.111 GB, free: 6.48 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002813/0.8225, allocations: 65.89 kB / 1.111 GB, free: 6.395 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002863/0.8227, allocations: 0.6915 MB / 1.112 GB, free: 5.68 MB / 0.7136 GB Notification: Performance of SimCode: time 2.4e-07/0.8228, allocations: 0 / 1.112 GB, free: 5.68 MB / 0.7136 GB Notification: Performance of Templates: time 0.002758/0.8255, allocations: 0.662 MB / 1.112 GB, free: 5.047 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_8_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)