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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 177.6 kB / 8.004 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4881/0.4881, allocations: 90.91 MB / 99.34 MB, free: 2.215 MB / 74.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 221.5 MB / 343.2 MB, free: 1.57 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008662/0.000866, allocations: 91.83 kB / 415.9 MB, free: 11.12 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.806e-05/1.809e-05, allocations: 8 kB / 494.5 MB, free: 52.41 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1281, allocations: 72.31 MB / 0.5535 GB, free: 12.28 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4276/0.5557, allocations: 101.1 MB / 0.6522 GB, free: 9.199 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002353/0.556, allocations: 69.59 kB / 0.6523 GB, free: 9.164 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002674/0.5586, allocations: 0.9466 MB / 0.6532 GB, free: 8.328 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.5587, allocations: 0 / 0.6532 GB, free: 8.328 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.5587, allocations: 0 / 0.6532 GB, free: 8.328 MB / 458.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.0003417/0.559, allocations: 339 kB / 0.6535 GB, free: 7.953 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.5591, allocations: 12.03 kB / 0.6536 GB, free: 7.941 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.145e-05/0.5591, allocations: 7.328 kB / 0.6536 GB, free: 7.938 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.5593, allocations: 171.1 kB / 0.6537 GB, free: 7.73 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.5593, allocations: 0 / 0.6537 GB, free: 7.73 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/0.5593, allocations: 0 / 0.6537 GB, free: 7.73 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.966e-05/0.5594, allocations: 19 kB / 0.6537 GB, free: 7.715 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.786e-05/0.5595, allocations: 47.19 kB / 0.6538 GB, free: 7.668 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.5595, allocations: 0 / 0.6538 GB, free: 7.668 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.407e-06/0.5595, allocations: 0 / 0.6538 GB, free: 7.668 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.5595, allocations: 3.953 kB / 0.6538 GB, free: 7.664 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003866/0.5599, allocations: 259.9 kB / 0.654 GB, free: 7.383 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001991/0.5601, allocations: 41.75 kB / 0.6541 GB, free: 7.34 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.653e-05/0.5601, allocations: 16.47 kB / 0.6541 GB, free: 7.324 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001065/0.5603, allocations: 81.11 kB / 0.6542 GB, free: 7.227 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.5603, allocations: 34.56 kB / 0.6542 GB, free: 7.184 MB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.5603, allocations: 0 / 0.6542 GB, free: 7.184 MB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001639/0.5605, allocations: 60.89 kB / 0.6543 GB, free: 7.125 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.089e-05/0.5605, allocations: 51.41 kB / 0.6543 GB, free: 7.062 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.953e-05/0.5606, allocations: 96.61 kB / 0.6544 GB, free: 6.965 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.5606, allocations: 29.7 kB / 0.6544 GB, free: 6.93 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.504e-05/0.5606, allocations: 80.14 kB / 0.6545 GB, free: 6.848 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.288e-05/0.5607, allocations: 3.906 kB / 0.6545 GB, free: 6.844 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.907e-06/0.5607, allocations: 4 kB / 0.6545 GB, free: 6.84 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9e-05/0.5608, allocations: 314.5 kB / 0.6548 GB, free: 6.527 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.739e-05/0.5608, allocations: 7.984 kB / 0.6548 GB, free: 6.52 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.392e-05/0.5608, allocations: 11.62 kB / 0.6548 GB, free: 6.512 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.401e-05/0.5609, allocations: 7.625 kB / 0.6548 GB, free: 6.508 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.5609, allocations: 0 / 0.6548 GB, free: 6.508 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.121e-05/0.561, allocations: 45.25 kB / 0.6549 GB, free: 6.461 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.561, allocations: 4 kB / 0.6549 GB, free: 6.457 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.561, allocations: 0 / 0.6549 GB, free: 6.457 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.878e-06/0.561, allocations: 3.938 kB / 0.6549 GB, free: 6.453 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.027e-05/0.5611, allocations: 19.98 kB / 0.6549 GB, free: 6.434 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.5611, allocations: 3.938 kB / 0.6549 GB, free: 6.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.265e-05/0.5612, allocations: 15.94 kB / 0.6549 GB, free: 6.414 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.5612, allocations: 0 / 0.6549 GB, free: 6.414 MB / 458.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 5.792e-05/0.5613, allocations: 104.7 kB / 0.655 GB, free: 6.309 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.39e-05/0.5613, allocations: 7.906 kB / 0.655 GB, free: 6.301 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000126/0.5614, allocations: 59.36 kB / 0.6551 GB, free: 6.238 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.5614, allocations: 0 / 0.6551 GB, free: 6.238 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.5614, allocations: 0 / 0.6551 GB, free: 6.238 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.5614, allocations: 0 / 0.6551 GB, free: 6.238 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001165/0.5616, allocations: 145.5 kB / 0.6552 GB, free: 6.066 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.5616, allocations: 0 / 0.6552 GB, free: 6.066 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.218e-05/0.5617, allocations: 15.94 kB / 0.6552 GB, free: 6.051 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.5617, allocations: 3.984 kB / 0.6553 GB, free: 6.047 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.5617, allocations: 0 / 0.6553 GB, free: 6.047 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.5617, allocations: 7.938 kB / 0.6553 GB, free: 6.039 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.5617, allocations: 0 / 0.6553 GB, free: 6.039 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001163/0.5618, allocations: 146.8 kB / 0.6554 GB, free: 5.887 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.127e-05/0.5619, allocations: 77.58 kB / 0.6555 GB, free: 5.793 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.5619, allocations: 0 / 0.6555 GB, free: 5.793 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.742e-05/0.562, allocations: 12.86 kB / 0.6555 GB, free: 5.781 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.952e-05/0.562, allocations: 7.984 kB / 0.6555 GB, free: 5.773 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.047e-06/0.562, allocations: 4 kB / 0.6555 GB, free: 5.77 MB / 458.7 MB Notification: Performance of sorting global known variables: time 2.823e-05/0.5621, allocations: 86.89 kB / 0.6556 GB, free: 5.688 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5621, allocations: 0 / 0.6556 GB, free: 5.688 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0002114/0.5623, allocations: 19.84 kB / 0.6556 GB, free: 5.668 MB / 458.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.00014/0.5624, allocations: 107.2 kB / 0.6557 GB, free: 5.555 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 7.663e-05/0.5625, allocations: 23.12 kB / 0.6557 GB, free: 5.539 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.5625, allocations: 0 / 0.6557 GB, free: 5.539 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 2.493e-05/0.5625, allocations: 11.62 kB / 0.6557 GB, free: 5.531 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001597/0.5627, allocations: 12.73 kB / 0.6557 GB, free: 5.52 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001858/0.5629, allocations: 63.55 kB / 0.6558 GB, free: 5.438 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.5631, allocations: 0.6807 MB / 0.6565 GB, free: 4.73 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 3.341e-05/0.5632, allocations: 4 kB / 0.6565 GB, free: 4.727 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.248e-05/0.5632, allocations: 7.438 kB / 0.6565 GB, free: 4.719 MB / 458.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5632, allocations: 4 kB / 0.6565 GB, free: 4.715 MB / 458.7 MB Notification: Performance of Templates: time 0.002235/0.5654, allocations: 0.5651 MB / 0.657 GB, free: 4.16 MB / 458.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)