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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 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) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 101.8 kB / 16.27 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 184.6 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7866/0.7866, allocations: 122.9 MB / 413.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 63.91 kB / 0.4911 GB, free: 7.449 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4028/0.4043, allocations: 77.92 MB / 0.5672 GB, free: 32.76 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002455/0.4068, allocations: 1.505 MB / 0.5687 GB, free: 31.71 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003048/0.4071, allocations: 119.8 kB / 0.5688 GB, free: 31.63 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.327e-05/0.4071, allocations: 2.438 kB / 0.5688 GB, free: 31.63 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.927e-05/0.4072, allocations: 4.688 kB / 0.5688 GB, free: 31.63 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.884e-05/0.4072, allocations: 3.938 kB / 0.5688 GB, free: 31.62 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002302/0.4075, allocations: 29.78 kB / 0.5688 GB, free: 31.61 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.781e-05/0.4075, allocations: 30.8 kB / 0.5688 GB, free: 31.59 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.588e-05/0.4076, allocations: 11.5 kB / 0.5689 GB, free: 31.59 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.33e-05/0.4077, allocations: 7.5 kB / 0.5689 GB, free: 31.59 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.992e-05/0.4077, allocations: 21.81 kB / 0.5689 GB, free: 31.58 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.394e-05/0.4078, allocations: 1.719 kB / 0.5689 GB, free: 31.58 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.21e-05/0.4078, allocations: 13.86 kB / 0.5689 GB, free: 31.57 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.443e-05/0.4078, allocations: 5.031 kB / 0.5689 GB, free: 31.57 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.755e-05/0.4079, allocations: 16.67 kB / 0.5689 GB, free: 31.56 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001156/0.408, allocations: 33.41 kB / 0.5689 GB, free: 31.55 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.408, allocations: 1.984 kB / 0.5689 GB, free: 31.55 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.408, allocations: 0 / 0.5689 GB, free: 31.55 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.408, allocations: 0 / 0.5689 GB, free: 31.55 MB / 446.1 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.0003947/0.4084, allocations: 342.7 kB / 0.5693 GB, free: 31.19 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.4085, allocations: 13.52 kB / 0.5693 GB, free: 31.19 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.334e-05/0.4085, allocations: 2.344 kB / 0.5693 GB, free: 31.19 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.635e-05/0.4086, allocations: 174.4 kB / 0.5695 GB, free: 30.98 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.4086, allocations: 2.531 kB / 0.5695 GB, free: 30.98 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.4086, allocations: 5.406 kB / 0.5695 GB, free: 30.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001782/0.4088, allocations: 55.69 kB / 0.5695 GB, free: 30.94 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.4088, allocations: 0.75 kB / 0.5695 GB, free: 30.94 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.4088, allocations: 3.938 kB / 0.5695 GB, free: 30.94 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.4089, allocations: 6.188 kB / 0.5695 GB, free: 30.93 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001883/0.409, allocations: 46.88 kB / 0.5696 GB, free: 30.92 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000302/0.4094, allocations: 264.5 kB / 0.5698 GB, free: 30.64 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003102/0.4097, allocations: 59.72 kB / 0.5699 GB, free: 30.61 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.839e-05/0.4098, allocations: 26.48 kB / 0.5699 GB, free: 30.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.216e-05/0.4099, allocations: 83.27 kB / 0.57 GB, free: 30.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.744e-05/0.4099, allocations: 32.92 kB / 0.57 GB, free: 30.46 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.4099, allocations: 0 / 0.57 GB, free: 30.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003714/0.4103, allocations: 101.9 kB / 0.5701 GB, free: 30.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.317e-05/0.4103, allocations: 54.12 kB / 0.5702 GB, free: 30.35 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.118e-05/0.4104, allocations: 101.8 kB / 0.5703 GB, free: 30.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.885e-06/0.4104, allocations: 26.7 kB / 0.5703 GB, free: 30.22 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.468e-05/0.4104, allocations: 86.05 kB / 0.5704 GB, free: 30.13 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.369e-05/0.4104, allocations: 1.094 kB / 0.5704 GB, free: 30.13 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-05/0.4105, allocations: 19.75 kB / 0.5704 GB, free: 30.11 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.012e-05/0.4105, allocations: 313.8 kB / 0.5707 GB, free: 29.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.758e-05/0.4106, allocations: 21.86 kB / 0.5707 GB, free: 29.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.447e-05/0.4107, allocations: 20.56 kB / 0.5707 GB, free: 29.79 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/0.4109, allocations: 44.22 kB / 0.5708 GB, free: 29.78 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4109, allocations: 4.469 kB / 0.5708 GB, free: 29.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002181/0.4111, allocations: 84.89 kB / 0.5709 GB, free: 29.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.4112, allocations: 6.844 kB / 0.5709 GB, free: 29.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.4112, allocations: 1.234 kB / 0.5709 GB, free: 29.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.4112, allocations: 0 / 0.5709 GB, free: 29.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.994e-05/0.4113, allocations: 13.14 kB / 0.5709 GB, free: 29.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.4113, allocations: 0.5625 kB / 0.5709 GB, free: 29.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.82e-05/0.4113, allocations: 6.219 kB / 0.5709 GB, free: 29.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.4114, allocations: 2.469 kB / 0.5709 GB, free: 29.73 MB / 446.1 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.227e-05/0.4114, allocations: 117.2 kB / 0.571 GB, free: 29.61 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.637e-05/0.4114, allocations: 2.859 kB / 0.571 GB, free: 29.61 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002518/0.4117, allocations: 83.39 kB / 0.5711 GB, free: 29.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.4117, allocations: 1.062 kB / 0.5711 GB, free: 29.55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.4117, allocations: 0.6562 kB / 0.5711 GB, free: 29.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.4117, allocations: 1.531 kB / 0.5711 GB, free: 29.55 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001241/0.4119, allocations: 167.6 kB / 0.5712 GB, free: 29.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4119, allocations: 4.641 kB / 0.5712 GB, free: 29.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.686e-05/0.412, allocations: 12.25 kB / 0.5713 GB, free: 29.35 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.412, allocations: 1 kB / 0.5713 GB, free: 29.35 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.412, allocations: 0.75 kB / 0.5713 GB, free: 29.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.412, allocations: 1.438 kB / 0.5713 GB, free: 29.35 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.412, allocations: 0.5312 kB / 0.5713 GB, free: 29.35 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000235/0.4122, allocations: 175.8 kB / 0.5714 GB, free: 29.21 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.706e-05/0.4123, allocations: 83.19 kB / 0.5715 GB, free: 29.11 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.4123, allocations: 8.641 kB / 0.5715 GB, free: 29.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.747e-05/0.4124, allocations: 10.95 kB / 0.5715 GB, free: 29.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.431e-05/0.4124, allocations: 5.891 kB / 0.5715 GB, free: 29.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.269e-06/0.4124, allocations: 3.422 kB / 0.5715 GB, free: 29.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.363e-05/0.4125, allocations: 84.78 kB / 0.5716 GB, free: 29.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4125, allocations: 0 / 0.5716 GB, free: 29.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002315/0.4127, allocations: 7.031 kB / 0.5716 GB, free: 29.02 MB / 446.1 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,rea2Int.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001122/0.4128, allocations: 105.3 kB / 0.5717 GB, free: 28.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002355/0.4131, allocations: 46.09 kB / 0.5718 GB, free: 28.92 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.4131, allocations: 0.5312 kB / 0.5718 GB, free: 28.92 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001092/0.4132, allocations: 30.62 kB / 0.5718 GB, free: 28.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/0.4134, allocations: 6.969 kB / 0.5718 GB, free: 28.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002512/0.4137, allocations: 120.9 kB / 0.5719 GB, free: 28.79 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001021/0.4138, allocations: 0.6774 MB / 0.5726 GB, free: 28.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.213e-05/0.4139, allocations: 7.438 kB / 0.5726 GB, free: 28.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.366e-05/0.4139, allocations: 14.97 kB / 0.5726 GB, free: 28.09 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4139, allocations: 0 / 0.5726 GB, free: 28.09 MB / 446.1 MB Notification: Performance of Templates: time 0.002778/0.4167, allocations: 0.7083 MB / 0.5733 GB, free: 28.04 MB / 446.1 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)