Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial") translateModel(IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 182.7 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5705/0.5705, allocations: 92 MB / 108.5 MB, free: 13.07 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.613/1.613, allocations: 223.2 MB / 354.3 MB, free: 12.05 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.001115/0.001115, allocations: 95.2 kB / 427.4 MB, free: 3.797 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003666/0.0003666, allocations: 16 kB / 0.4983 GB, free: 42.29 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1745/0.1749, allocations: 72.31 MB / 0.5689 GB, free: 1.914 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.569/0.744, allocations: 100.8 MB / 0.6673 GB, free: 3.645 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/0.7443, allocations: 75.95 kB / 0.6674 GB, free: 3.57 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00114/0.7455, allocations: 0.5253 MB / 0.6679 GB, free: 3.055 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.7455, allocations: 0 / 0.6679 GB, free: 3.055 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.7455, allocations: 0 / 0.6679 GB, free: 3.055 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002907/0.7458, allocations: 316.9 kB / 0.6682 GB, free: 2.703 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.7459, allocations: 8.031 kB / 0.6682 GB, free: 2.695 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.17e-05/0.7459, allocations: 3.953 kB / 0.6682 GB, free: 2.691 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001386/0.7461, allocations: 167.1 kB / 0.6684 GB, free: 2.488 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.7461, allocations: 4 kB / 0.6684 GB, free: 2.484 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.066e-05/0.7461, allocations: 3.938 kB / 0.6684 GB, free: 2.48 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001043/0.7462, allocations: 29.7 kB / 0.6684 GB, free: 2.445 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.7463, allocations: 0 / 0.6684 GB, free: 2.445 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.7463, allocations: 7.875 kB / 0.6684 GB, free: 2.438 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.7463, allocations: 0 / 0.6684 GB, free: 2.438 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.132e-05/0.7463, allocations: 19.92 kB / 0.6685 GB, free: 2.418 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001722/0.7465, allocations: 149.3 kB / 0.6686 GB, free: 2.227 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.286e-05/0.7466, allocations: 26.67 kB / 0.6686 GB, free: 2.191 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001564/0.7467, allocations: 89.03 kB / 0.6687 GB, free: 2.086 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.7468, allocations: 30.56 kB / 0.6687 GB, free: 2.047 MB / 458.7 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.7468, allocations: 4 kB / 0.6687 GB, free: 2.043 MB / 458.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001525/0.7469, allocations: 41.69 kB / 0.6688 GB, free: 1.996 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/0.747, allocations: 51.41 kB / 0.6688 GB, free: 1.934 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.937e-05/0.747, allocations: 88.91 kB / 0.6689 GB, free: 1.84 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.7471, allocations: 29.83 kB / 0.6689 GB, free: 1.805 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.218e-05/0.7471, allocations: 80.14 kB / 0.669 GB, free: 1.723 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.085e-05/0.7471, allocations: 0 / 0.669 GB, free: 1.723 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.114e-06/0.7471, allocations: 0 / 0.669 GB, free: 1.723 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.7473, allocations: 318.8 kB / 0.6693 GB, free: 1.402 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.245e-05/0.7473, allocations: 4 kB / 0.6693 GB, free: 1.398 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.874e-05/0.7473, allocations: 7.938 kB / 0.6693 GB, free: 1.391 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.067e-05/0.7473, allocations: 0 / 0.6693 GB, free: 1.391 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.7473, allocations: 0 / 0.6693 GB, free: 1.391 MB / 458.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.585e-05/0.7474, allocations: 45.75 kB / 0.6694 GB, free: 1.34 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.7474, allocations: 5.719 kB / 0.6694 GB, free: 1.336 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.778e-06/0.7474, allocations: 4 kB / 0.6694 GB, free: 1.332 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.7475, allocations: 0 / 0.6694 GB, free: 1.332 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.51e-05/0.7475, allocations: 0 / 0.6694 GB, free: 1.332 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.7475, allocations: 4 kB / 0.6694 GB, free: 1.328 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.472e-05/0.7476, allocations: 0 / 0.6694 GB, free: 1.328 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.7476, allocations: 0 / 0.6694 GB, free: 1.328 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,n) * Number of discrete states: 0 () * Number of clocked 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 7.548e-05/0.7476, allocations: 121.8 kB / 0.6695 GB, free: 1.199 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-06/0.7477, allocations: 0 / 0.6695 GB, free: 1.199 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.7478, allocations: 48.75 kB / 0.6696 GB, free: 1.148 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.7478, allocations: 0 / 0.6696 GB, free: 1.148 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.7478, allocations: 4 kB / 0.6696 GB, free: 1.145 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.7478, allocations: 0 / 0.6696 GB, free: 1.145 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.307e-05/0.7479, allocations: 145.6 kB / 0.6697 GB, free: 0.9531 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.7479, allocations: 0 / 0.6697 GB, free: 0.9531 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.463e-05/0.7479, allocations: 4 kB / 0.6697 GB, free: 0.9492 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.7479, allocations: 3.984 kB / 0.6697 GB, free: 0.9453 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.022e-06/0.748, allocations: 4.031 kB / 0.6697 GB, free: 0.9414 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.748, allocations: 0 / 0.6697 GB, free: 0.9414 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.748, allocations: 4 kB / 0.6697 GB, free: 0.9375 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.09e-05/0.7481, allocations: 76.5 kB / 0.6698 GB, free: 0.8477 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.726e-05/0.7481, allocations: 85.03 kB / 0.6699 GB, free: 0.7461 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.072e-05/0.7481, allocations: 0 / 0.6699 GB, free: 0.7461 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.154e-05/0.7482, allocations: 0 / 0.6699 GB, free: 0.7461 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.58e-05/0.7482, allocations: 4 kB / 0.6699 GB, free: 0.7422 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-06/0.7482, allocations: 4.031 kB / 0.6699 GB, free: 0.7383 MB / 458.7 MB Notification: Performance of sorting global known variables: time 3.69e-05/0.7482, allocations: 75.28 kB / 0.6699 GB, free: 0.6641 MB / 458.7 MB Notification: Performance of sort global known variables: time 1e-07/0.7482, allocations: 0 / 0.6699 GB, free: 0.6641 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0002258/0.7485, allocations: 8 kB / 0.67 GB, free: 0.6562 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,n) * Number of discrete states: 0 () * Number of clocked 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.0001969/0.7487, allocations: 107.2 kB / 0.6701 GB, free: 0.543 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 7.47e-05/0.7488, allocations: 11.94 kB / 0.6701 GB, free: 0.5312 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.7488, allocations: 0 / 0.6701 GB, free: 0.5312 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 1.927e-05/0.7488, allocations: 12 kB / 0.6701 GB, free: 0.5195 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.882e-05/0.7489, allocations: 4 kB / 0.6701 GB, free: 0.5156 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002376/0.7491, allocations: 87.14 kB / 0.6702 GB, free: 412 kB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.7495, allocations: 0.677 MB / 0.6708 GB, free: 15.7 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 1.841e-05/0.7495, allocations: 4 kB / 0.6708 GB, free: 15.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.638e-05/0.7495, allocations: 7.438 kB / 0.6708 GB, free: 15.69 MB / 474.7 MB Notification: Performance of SimCode: time 3.11e-07/0.7495, allocations: 0 / 0.6708 GB, free: 15.69 MB / 474.7 MB Notification: Performance of Templates: time 0.002154/0.7517, allocations: 296 kB / 0.6711 GB, free: 15.4 MB / 474.7 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)