Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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 8.0.0/package.mo): time 2.424/2.424, allocations: 284.9 MB / 292.2 MB, free: 10.79 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002222/0.002222, allocations: 181.3 kB / 360.4 MB, free: 7.547 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.845/1.845, allocations: 205.2 MB / 0.6188 GB, free: 13.18 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001183/0.001183, allocations: 88.58 kB / 0.7318 GB, free: 45.11 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.7e-05/1.724e-05, allocations: 4 kB / 0.8503 GB, free: 3.98 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6375/0.6375, allocations: 115.2 MB / 0.9628 GB, free: 78.24 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2064/0.844, allocations: 136.3 MB / 1.096 GB, free: 4.484 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.8443, allocations: 68.61 kB / 1.096 GB, free: 4.418 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.001346/0.8457, allocations: 204.3 kB / 1.096 GB, free: 4.223 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.201e-06/0.8457, allocations: 0 / 1.096 GB, free: 4.223 MB / 0.698 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.0002955/0.846, allocations: 317.5 kB / 1.096 GB, free: 3.875 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.8461, allocations: 12.03 kB / 1.096 GB, free: 3.863 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.898e-05/0.8461, allocations: 1.438 kB / 1.096 GB, free: 3.863 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/0.8462, allocations: 167.7 kB / 1.097 GB, free: 3.664 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.8463, allocations: 3.844 kB / 1.097 GB, free: 3.664 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.053e-05/0.8463, allocations: 0 / 1.097 GB, free: 3.664 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.491e-05/0.8463, allocations: 11.88 kB / 1.097 GB, free: 3.652 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.062e-05/0.8464, allocations: 33.69 kB / 1.097 GB, free: 3.613 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.8464, allocations: 0 / 1.097 GB, free: 3.613 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.8465, allocations: 0 / 1.097 GB, free: 3.613 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.8465, allocations: 0 / 1.097 GB, free: 3.613 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001385/0.8466, allocations: 129.8 kB / 1.097 GB, free: 3.453 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 5.095e-05/0.8467, allocations: 18.61 kB / 1.097 GB, free: 3.426 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.573e-05/0.8467, allocations: 16.81 kB / 1.097 GB, free: 3.406 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002268/0.847, allocations: 82.28 kB / 1.097 GB, free: 3.309 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.847, allocations: 38.5 kB / 1.097 GB, free: 3.262 MB / 0.698 GB Notification: Performance of pre-optimization done (n=2): time 1.543e-06/0.847, allocations: 1.312 kB / 1.097 GB, free: 3.262 MB / 0.698 GB Notification: Performance of matching and sorting (n=2): time 0.0001822/0.8472, allocations: 37.69 kB / 1.097 GB, free: 3.219 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.37e-05/0.8473, allocations: 51.41 kB / 1.097 GB, free: 3.156 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.519e-05/0.8473, allocations: 85.56 kB / 1.097 GB, free: 3.066 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.8473, allocations: 26.2 kB / 1.097 GB, free: 3.035 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.158e-05/0.8474, allocations: 80.98 kB / 1.097 GB, free: 2.953 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.951e-05/0.8474, allocations: 0 / 1.097 GB, free: 2.953 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-06/0.8474, allocations: 0.6875 kB / 1.097 GB, free: 2.953 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.8475, allocations: 325.8 kB / 1.098 GB, free: 2.629 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.141e-05/0.8476, allocations: 0 / 1.098 GB, free: 2.629 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.669e-06/0.8476, allocations: 0 / 1.098 GB, free: 2.629 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.546e-05/0.8476, allocations: 4 kB / 1.098 GB, free: 2.625 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.8476, allocations: 0 / 1.098 GB, free: 2.625 MB / 0.698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001026/0.8478, allocations: 41.62 kB / 1.098 GB, free: 2.578 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.8478, allocations: 4 kB / 1.098 GB, free: 2.574 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.8478, allocations: 2.906 kB / 1.098 GB, free: 2.574 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.8478, allocations: 0.625 kB / 1.098 GB, free: 2.574 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.372e-05/0.8479, allocations: 4 kB / 1.098 GB, free: 2.57 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.8479, allocations: 0.6875 kB / 1.098 GB, free: 2.57 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.27e-05/0.848, allocations: 4.75 kB / 1.098 GB, free: 2.566 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.848, allocations: 7.906 kB / 1.098 GB, free: 2.559 MB / 0.698 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 8.298e-05/0.8481, allocations: 113.5 kB / 1.098 GB, free: 2.441 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.799e-06/0.8481, allocations: 0.875 kB / 1.098 GB, free: 2.441 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001343/0.8482, allocations: 37.48 kB / 1.098 GB, free: 2.398 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.8482, allocations: 0 / 1.098 GB, free: 2.398 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.8483, allocations: 0.5938 kB / 1.098 GB, free: 2.398 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.8483, allocations: 4.969 kB / 1.098 GB, free: 2.395 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.717e-05/0.8484, allocations: 131 kB / 1.098 GB, free: 2.23 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.8484, allocations: 0 / 1.098 GB, free: 2.23 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.014e-05/0.8484, allocations: 5.719 kB / 1.098 GB, free: 2.227 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.8485, allocations: 5 kB / 1.098 GB, free: 2.223 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.8485, allocations: 4.781 kB / 1.098 GB, free: 2.219 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.8485, allocations: 0 / 1.098 GB, free: 2.219 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.8485, allocations: 0.6875 kB / 1.098 GB, free: 2.219 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001134/0.8486, allocations: 62.41 kB / 1.098 GB, free: 2.141 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.75e-05/0.8487, allocations: 77.61 kB / 1.098 GB, free: 2.047 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.8487, allocations: 0 / 1.098 GB, free: 2.047 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.208e-05/0.8487, allocations: 10.55 kB / 1.098 GB, free: 2.039 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.156e-05/0.8488, allocations: 4.188 kB / 1.098 GB, free: 2.035 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.928e-06/0.8488, allocations: 4 kB / 1.098 GB, free: 2.031 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.095e-05/0.8488, allocations: 75.28 kB / 1.098 GB, free: 1.957 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002566/0.8491, allocations: 5.219 kB / 1.098 GB, free: 1.953 MB / 0.698 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.0001902/0.8493, allocations: 111.2 kB / 1.098 GB, free: 1.836 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 7.931e-05/0.8494, allocations: 11.92 kB / 1.098 GB, free: 1.824 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.8494, allocations: 3.938 kB / 1.098 GB, free: 1.82 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 1.68e-05/0.8494, allocations: 4 kB / 1.098 GB, free: 1.816 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001117/0.8495, allocations: 13.58 kB / 1.098 GB, free: 1.805 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001828/0.8497, allocations: 44.08 kB / 1.098 GB, free: 1.738 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002765/0.85, allocations: 0.6841 MB / 1.099 GB, free: 1.027 MB / 0.698 GB Notification: Performance of SimCode: time 6.81e-07/0.85, allocations: 0 / 1.099 GB, free: 1.027 MB / 0.698 GB Notification: Performance of Templates: time 0.002646/0.8527, allocations: 341.9 kB / 1.099 GB, free: 0.7227 MB / 0.698 GB make -j1 -f Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)