Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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/Complex 4.0.0+maint.om/package.mo): time 0.0009756/0.0009756, allocations: 190.9 kB / 7.807 MB, free: 2.438 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4412/0.4412, allocations: 90.85 MB / 99.07 MB, free: 14.95 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.16/1.16, allocations: 221.4 MB / 342.8 MB, free: 5.227 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008868/0.000887, allocations: 98.78 kB / 415.5 MB, free: 6.461 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 6.492e-06/6.512e-06, allocations: 0 / 493.9 MB, free: 8.109 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3348, allocations: 72.3 MB / 0.5529 GB, free: 73.45 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1106/0.4455, allocations: 101 MB / 0.6515 GB, free: 9.129 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002363/0.4458, allocations: 64.88 kB / 0.6516 GB, free: 9.066 MB / 474.7 MB Notification: Performance of FrontEnd: time 0.00265/0.4485, allocations: 0.6371 MB / 0.6522 GB, free: 8.445 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.4485, allocations: 4.781 kB / 0.6522 GB, free: 8.441 MB / 474.7 MB 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.0004174/0.4489, allocations: 340.9 kB / 0.6525 GB, free: 8.066 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.449, allocations: 10.75 kB / 0.6526 GB, free: 8.059 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.088e-05/0.449, allocations: 0 / 0.6526 GB, free: 8.059 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/0.4491, allocations: 171 kB / 0.6527 GB, free: 7.852 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.4492, allocations: 2.031 kB / 0.6527 GB, free: 7.852 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.4492, allocations: 5.672 kB / 0.6527 GB, free: 7.848 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.535e-05/0.4493, allocations: 20 kB / 0.6527 GB, free: 7.828 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.734e-05/0.4494, allocations: 45.62 kB / 0.6528 GB, free: 7.777 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.894e-06/0.4494, allocations: 0 / 0.6528 GB, free: 7.777 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.4494, allocations: 0.8438 kB / 0.6528 GB, free: 7.777 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.4494, allocations: 0 / 0.6528 GB, free: 7.777 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004641/0.4499, allocations: 265 kB / 0.653 GB, free: 7.484 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002407/0.4501, allocations: 39.78 kB / 0.6531 GB, free: 7.438 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.334e-05/0.4502, allocations: 17.98 kB / 0.6531 GB, free: 7.418 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001266/0.4503, allocations: 77.11 kB / 0.6532 GB, free: 7.324 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.4503, allocations: 39.16 kB / 0.6532 GB, free: 7.277 MB / 474.7 MB Notification: Performance of pre-optimization done (n=3): time 1.392e-06/0.4503, allocations: 0.7812 kB / 0.6532 GB, free: 7.277 MB / 474.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002076/0.4506, allocations: 53.69 kB / 0.6533 GB, free: 7.219 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.969e-05/0.4506, allocations: 52.78 kB / 0.6533 GB, free: 7.156 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.515e-05/0.4507, allocations: 92.98 kB / 0.6534 GB, free: 7.059 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.4507, allocations: 27.95 kB / 0.6534 GB, free: 7.027 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.818e-05/0.4508, allocations: 84.14 kB / 0.6535 GB, free: 6.938 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.526e-05/0.4508, allocations: 4.438 kB / 0.6535 GB, free: 6.934 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.788e-06/0.4508, allocations: 4.688 kB / 0.6535 GB, free: 6.93 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.4509, allocations: 312.1 kB / 0.6538 GB, free: 6.617 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.36e-05/0.451, allocations: 11.98 kB / 0.6538 GB, free: 6.605 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.625e-05/0.451, allocations: 8 kB / 0.6538 GB, free: 6.598 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.827e-05/0.451, allocations: 4.75 kB / 0.6538 GB, free: 6.594 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.451, allocations: 0 / 0.6538 GB, free: 6.594 MB / 474.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001092/0.4512, allocations: 54.47 kB / 0.6539 GB, free: 6.535 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.4512, allocations: 8 kB / 0.6539 GB, free: 6.527 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.4512, allocations: 0 / 0.6539 GB, free: 6.527 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.748e-06/0.4512, allocations: 0.9062 kB / 0.6539 GB, free: 6.527 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.4513, allocations: 16.98 kB / 0.6539 GB, free: 6.512 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.4513, allocations: 6.594 kB / 0.6539 GB, free: 6.508 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.899e-05/0.4514, allocations: 9.109 kB / 0.6539 GB, free: 6.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.4514, allocations: 11.22 kB / 0.6539 GB, free: 6.492 MB / 474.7 MB 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.297e-05/0.4515, allocations: 105.7 kB / 0.654 GB, free: 6.383 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.485e-05/0.4515, allocations: 0 / 0.654 GB, free: 6.383 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001527/0.4517, allocations: 58.42 kB / 0.6541 GB, free: 6.316 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.4517, allocations: 4.422 kB / 0.6541 GB, free: 6.312 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.4517, allocations: 1.844 kB / 0.6541 GB, free: 6.312 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.4517, allocations: 4.5 kB / 0.6541 GB, free: 6.309 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001375/0.4519, allocations: 138.2 kB / 0.6542 GB, free: 6.137 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.4519, allocations: 1.406 kB / 0.6542 GB, free: 6.137 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.991e-05/0.452, allocations: 16.52 kB / 0.6542 GB, free: 6.121 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.452, allocations: 4.609 kB / 0.6543 GB, free: 6.117 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.452, allocations: 3.984 kB / 0.6543 GB, free: 6.113 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.452, allocations: 1.219 kB / 0.6543 GB, free: 6.113 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.452, allocations: 1.312 kB / 0.6543 GB, free: 6.113 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001558/0.4522, allocations: 148.5 kB / 0.6544 GB, free: 5.953 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.625e-05/0.4522, allocations: 78.86 kB / 0.6545 GB, free: 5.859 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.819e-05/0.4522, allocations: 3.906 kB / 0.6545 GB, free: 5.855 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.4524, allocations: 12.52 kB / 0.6545 GB, free: 5.844 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.275e-05/0.4524, allocations: 8.578 kB / 0.6545 GB, free: 5.836 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.4524, allocations: 0 / 0.6545 GB, free: 5.836 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.825e-05/0.4525, allocations: 80.12 kB / 0.6546 GB, free: 5.758 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0002335/0.4527, allocations: 23.88 kB / 0.6546 GB, free: 5.734 MB / 474.7 MB 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.000192/0.4529, allocations: 104.8 kB / 0.6547 GB, free: 5.625 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 9.482e-05/0.453, allocations: 20.61 kB / 0.6547 GB, free: 5.605 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/0.453, allocations: 0 / 0.6547 GB, free: 5.605 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 3.202e-05/0.4531, allocations: 16.66 kB / 0.6547 GB, free: 5.59 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001806/0.4533, allocations: 11 kB / 0.6547 GB, free: 5.582 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002578/0.4535, allocations: 71.7 kB / 0.6548 GB, free: 5.488 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000335/0.4539, allocations: 0.6876 MB / 0.6555 GB, free: 4.777 MB / 474.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4539, allocations: 0 / 0.6555 GB, free: 4.777 MB / 474.7 MB Notification: Performance of Templates: time 0.003112/0.457, allocations: 0.656 MB / 0.6561 GB, free: 4.152 MB / 474.7 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)