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.000971/0.000971, allocations: 179.5 kB / 13.19 MB, free: 2.133 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4685/0.4685, allocations: 90.81 MB / 104.5 MB, free: 9.789 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.224/1.224, allocations: 221.3 MB / 348.3 MB, free: 448 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008569/0.000857, allocations: 99.98 kB / 421.2 MB, free: 5.473 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.559e-05/2.56e-05, allocations: 4 kB / 0.4896 GB, free: 5.352 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3246, allocations: 72.3 MB / 0.5602 GB, free: 40.44 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1161/0.4407, allocations: 101.7 MB / 0.6596 GB, free: 2.578 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001886/0.4409, allocations: 79.58 kB / 0.6596 GB, free: 2.504 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002435/0.4434, allocations: 0.9346 MB / 0.6606 GB, free: 1.578 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4434, allocations: 0.8438 kB / 0.6606 GB, free: 1.578 MB / 474.7 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.4434, allocations: 0 / 0.6606 GB, free: 1.578 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.0003464/0.4438, allocations: 345 kB / 0.6609 GB, free: 1.199 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.4438, allocations: 15.97 kB / 0.6609 GB, free: 1.184 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.347e-05/0.4438, allocations: 7.953 kB / 0.6609 GB, free: 1.176 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.444, allocations: 159.1 kB / 0.6611 GB, free: 0.9805 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.444, allocations: 11.98 kB / 0.6611 GB, free: 0.9688 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.007e-05/0.444, allocations: 0 / 0.6611 GB, free: 0.9688 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001005/0.4441, allocations: 45.69 kB / 0.6611 GB, free: 0.918 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.4441, allocations: 5.25 kB / 0.6611 GB, free: 0.9141 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.4441, allocations: 0 / 0.6611 GB, free: 0.9141 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.4442, allocations: 7.938 kB / 0.6611 GB, free: 0.9062 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.065e-05/0.4442, allocations: 15.95 kB / 0.6611 GB, free: 0.8906 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003972/0.4446, allocations: 281 kB / 0.6614 GB, free: 0.5664 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002146/0.4448, allocations: 46.5 kB / 0.6615 GB, free: 0.5117 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.986e-05/0.4449, allocations: 12.92 kB / 0.6615 GB, free: 0.4961 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001008/0.445, allocations: 89.17 kB / 0.6616 GB, free: 400 kB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.445, allocations: 37.5 kB / 0.6616 GB, free: 356 kB / 474.7 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.445, allocations: 0 / 0.6616 GB, free: 356 kB / 474.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001478/0.4452, allocations: 57.55 kB / 0.6616 GB, free: 292 kB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.662e-05/0.4452, allocations: 55.41 kB / 0.6617 GB, free: 224 kB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.171e-05/0.4453, allocations: 93 kB / 0.6618 GB, free: 124 kB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/0.4453, allocations: 25.7 kB / 0.6618 GB, free: 92 kB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.54e-05/0.4453, allocations: 87.97 kB / 0.6619 GB, free: 4 kB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.781e-05/0.4454, allocations: 7.953 kB / 0.6619 GB, free: 15.99 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-06/0.4454, allocations: 0 / 0.6619 GB, free: 15.99 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.474e-05/0.4455, allocations: 318.8 kB / 0.6622 GB, free: 15.67 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.125e-05/0.4455, allocations: 7.938 kB / 0.6622 GB, free: 15.66 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.218e-05/0.4455, allocations: 8 kB / 0.6622 GB, free: 15.66 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.471e-05/0.4456, allocations: 11.94 kB / 0.6622 GB, free: 15.65 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.4456, allocations: 0 / 0.6622 GB, free: 15.65 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.784e-05/0.4457, allocations: 49.69 kB / 0.6623 GB, free: 15.59 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/0.4457, allocations: 4 kB / 0.6623 GB, free: 15.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.4457, allocations: 0 / 0.6623 GB, free: 15.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.4457, allocations: 0 / 0.6623 GB, free: 15.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.132e-05/0.4458, allocations: 23.94 kB / 0.6623 GB, free: 15.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.4458, allocations: 0 / 0.6623 GB, free: 15.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.083e-05/0.4459, allocations: 11.94 kB / 0.6623 GB, free: 15.55 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.4459, allocations: 0 / 0.6623 GB, free: 15.55 MB / 490.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.57e-05/0.4459, allocations: 109 kB / 0.6624 GB, free: 15.44 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/0.446, allocations: 11.84 kB / 0.6624 GB, free: 15.43 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001212/0.4461, allocations: 57.56 kB / 0.6625 GB, free: 15.36 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.4461, allocations: 4.031 kB / 0.6625 GB, free: 15.36 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.4461, allocations: 3.953 kB / 0.6625 GB, free: 15.36 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.4461, allocations: 0 / 0.6625 GB, free: 15.36 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00015/0.4463, allocations: 161.7 kB / 0.6626 GB, free: 15.15 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.4463, allocations: 0 / 0.6626 GB, free: 15.15 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.894e-05/0.4464, allocations: 11.98 kB / 0.6627 GB, free: 15.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.4464, allocations: 4 kB / 0.6627 GB, free: 15.13 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.4464, allocations: 0 / 0.6627 GB, free: 15.13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.4464, allocations: 0 / 0.6627 GB, free: 15.13 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.4464, allocations: 4 kB / 0.6627 GB, free: 15.13 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001135/0.4465, allocations: 155.4 kB / 0.6628 GB, free: 14.96 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.379e-05/0.4466, allocations: 77.11 kB / 0.6629 GB, free: 14.87 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.4466, allocations: 4 kB / 0.6629 GB, free: 14.86 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.108e-05/0.4467, allocations: 15.98 kB / 0.6629 GB, free: 14.85 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.551e-05/0.4467, allocations: 0 / 0.6629 GB, free: 14.85 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.4467, allocations: 4 kB / 0.6629 GB, free: 14.84 MB / 490.7 MB Notification: Performance of sorting global known variables: time 3.142e-05/0.4468, allocations: 87.27 kB / 0.663 GB, free: 14.76 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4468, allocations: 0 / 0.663 GB, free: 14.76 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.000198/0.447, allocations: 27.8 kB / 0.663 GB, free: 14.73 MB / 490.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.0001313/0.4471, allocations: 103.2 kB / 0.6631 GB, free: 14.62 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 8.074e-05/0.4472, allocations: 23.92 kB / 0.6631 GB, free: 14.59 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.4472, allocations: 0 / 0.6631 GB, free: 14.59 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 3.286e-05/0.4473, allocations: 17.03 kB / 0.6632 GB, free: 14.58 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001428/0.4474, allocations: 4 kB / 0.6632 GB, free: 14.57 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000199/0.4476, allocations: 72.92 kB / 0.6632 GB, free: 14.48 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002134/0.4478, allocations: 0.6848 MB / 0.6639 GB, free: 13.77 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 2.932e-05/0.4479, allocations: 0 / 0.6639 GB, free: 13.77 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.449e-05/0.4479, allocations: 11.44 kB / 0.6639 GB, free: 13.76 MB / 490.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4479, allocations: 0 / 0.6639 GB, free: 13.76 MB / 490.7 MB Notification: Performance of Templates: time 0.002211/0.4501, allocations: 0.5979 MB / 0.6645 GB, free: 13.19 MB / 490.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)