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 3.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 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.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.001423/0.001423, allocations: 171.7 kB / 16.76 MB, free: 5.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 0.4562/0.4562, allocations: 86.27 MB / 103.8 MB, free: 14.56 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.366/1.366, allocations: 223.3 MB / 348.4 MB, free: 4.965 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.000796/0.000796, allocations: 95.56 kB / 420.2 MB, free: 9.664 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005185/0.0005186, allocations: 16 kB / 0.4901 GB, free: 7.996 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3443, allocations: 71.01 MB / 0.5595 GB, free: 43.73 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1184/0.4627, allocations: 99.44 MB / 0.6566 GB, free: 10.09 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/0.463, allocations: 71.95 kB / 0.6566 GB, free: 10.02 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001087/0.4641, allocations: 0.5219 MB / 0.6571 GB, free: 9.496 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4641, allocations: 0 / 0.6571 GB, free: 9.496 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.4642, allocations: 0 / 0.6571 GB, free: 9.496 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002316/0.4644, allocations: 317.7 kB / 0.6575 GB, free: 9.137 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.4644, allocations: 13.25 kB / 0.6575 GB, free: 9.125 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.805e-05/0.4645, allocations: 0.9375 kB / 0.6575 GB, free: 9.125 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.789e-05/0.4646, allocations: 164.4 kB / 0.6576 GB, free: 8.926 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.4646, allocations: 3.875 kB / 0.6576 GB, free: 8.926 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.544e-06/0.4646, allocations: 384 / 0.6576 GB, free: 8.926 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.846e-05/0.4647, allocations: 38.19 kB / 0.6577 GB, free: 8.883 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.4647, allocations: 4.172 kB / 0.6577 GB, free: 8.879 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.4647, allocations: 3.938 kB / 0.6577 GB, free: 8.875 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.4647, allocations: 0 / 0.6577 GB, free: 8.875 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.09e-05/0.4648, allocations: 4 kB / 0.6577 GB, free: 8.871 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001532/0.4649, allocations: 153.7 kB / 0.6578 GB, free: 8.672 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.43e-05/0.465, allocations: 22.61 kB / 0.6578 GB, free: 8.641 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.903e-05/0.465, allocations: 12.92 kB / 0.6579 GB, free: 8.625 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001282/0.4652, allocations: 77.11 kB / 0.6579 GB, free: 8.531 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.565e-05/0.4652, allocations: 46.42 kB / 0.658 GB, free: 8.477 MB / 474.7 MB Notification: Performance of pre-optimization done (n=2): time 1.133e-06/0.4652, allocations: 0 / 0.658 GB, free: 8.477 MB / 474.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001394/0.4653, allocations: 41.64 kB / 0.658 GB, free: 8.43 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.4654, allocations: 55.53 kB / 0.6581 GB, free: 8.363 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.776e-05/0.4654, allocations: 89.86 kB / 0.6582 GB, free: 8.266 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.448e-05/0.4655, allocations: 25.7 kB / 0.6582 GB, free: 8.234 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.593e-05/0.4655, allocations: 84.08 kB / 0.6583 GB, free: 8.148 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/0.4655, allocations: 3.906 kB / 0.6583 GB, free: 8.145 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.924e-06/0.4655, allocations: 0 / 0.6583 GB, free: 8.145 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.4656, allocations: 318.8 kB / 0.6586 GB, free: 7.824 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.074e-05/0.4657, allocations: 4 kB / 0.6586 GB, free: 7.82 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.887e-06/0.4657, allocations: 8 kB / 0.6586 GB, free: 7.812 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.908e-05/0.4657, allocations: 12.8 kB / 0.6586 GB, free: 7.797 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.4657, allocations: 0 / 0.6586 GB, free: 7.797 MB / 474.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.785e-05/0.4658, allocations: 41.69 kB / 0.6586 GB, free: 7.75 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.4658, allocations: 4 kB / 0.6586 GB, free: 7.746 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.4658, allocations: 0 / 0.6586 GB, free: 7.746 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.4658, allocations: 3.938 kB / 0.6586 GB, free: 7.742 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.25e-05/0.4659, allocations: 4 kB / 0.6586 GB, free: 7.738 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.4659, allocations: 3.984 kB / 0.6586 GB, free: 7.734 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.41e-05/0.4659, allocations: 4.094 kB / 0.6586 GB, free: 7.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.4659, allocations: 4 kB / 0.6586 GB, free: 7.727 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,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.535e-05/0.466, allocations: 105.8 kB / 0.6588 GB, free: 7.613 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.811e-06/0.466, allocations: 0 / 0.6588 GB, free: 7.613 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.04e-05/0.4661, allocations: 52.69 kB / 0.6588 GB, free: 7.551 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.4661, allocations: 0 / 0.6588 GB, free: 7.551 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.4661, allocations: 0 / 0.6588 GB, free: 7.551 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.4661, allocations: 0 / 0.6588 GB, free: 7.551 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.4662, allocations: 165.6 kB / 0.659 GB, free: 7.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.4662, allocations: 4.031 kB / 0.659 GB, free: 7.336 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.058e-05/0.4663, allocations: 4 kB / 0.659 GB, free: 7.332 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.4663, allocations: 0 / 0.659 GB, free: 7.332 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.4663, allocations: 3.938 kB / 0.659 GB, free: 7.328 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.4663, allocations: 0 / 0.659 GB, free: 7.328 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.4663, allocations: 0 / 0.659 GB, free: 7.328 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.085e-05/0.4664, allocations: 65.06 kB / 0.659 GB, free: 7.246 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.252e-05/0.4664, allocations: 81.14 kB / 0.6591 GB, free: 7.148 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.074e-05/0.4664, allocations: 7.938 kB / 0.6591 GB, free: 7.141 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.008e-05/0.4665, allocations: 0 / 0.6591 GB, free: 7.141 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.49e-05/0.4665, allocations: 3.984 kB / 0.6591 GB, free: 7.137 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.4665, allocations: 0 / 0.6591 GB, free: 7.137 MB / 474.7 MB Notification: Performance of sorting global known variables: time 2.38e-05/0.4665, allocations: 79.28 kB / 0.6592 GB, free: 7.059 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4665, allocations: 0 / 0.6592 GB, free: 7.059 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.000202/0.4667, allocations: 4 kB / 0.6592 GB, free: 7.055 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,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.0001869/0.4669, allocations: 111.2 kB / 0.6593 GB, free: 6.934 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 6.389e-05/0.467, allocations: 11.98 kB / 0.6593 GB, free: 6.922 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.467, allocations: 0 / 0.6593 GB, free: 6.922 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 1.404e-05/0.467, allocations: 7.938 kB / 0.6593 GB, free: 6.914 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001178/0.4672, allocations: 3.938 kB / 0.6593 GB, free: 6.91 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001793/0.4673, allocations: 90.59 kB / 0.6594 GB, free: 6.793 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.4676, allocations: 0.6731 MB / 0.6601 GB, free: 6.094 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 1.316e-05/0.4676, allocations: 0 / 0.6601 GB, free: 6.094 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.389e-05/0.4676, allocations: 11.56 kB / 0.6601 GB, free: 6.082 MB / 474.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4676, allocations: 0 / 0.6601 GB, free: 6.082 MB / 474.7 MB Notification: Performance of Templates: time 0.001935/0.4696, allocations: 302.8 kB / 0.6604 GB, free: 5.789 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)