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.0015/0.001501, allocations: 103.9 kB / 16.27 MB, free: 6.047 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.001649/0.001649, allocations: 186.7 kB / 17.19 MB, free: 5.688 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.428/1.428, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7923/0.7923, allocations: 122.9 MB / 413.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 71.88 kB / 0.4911 GB, free: 7.434 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3643/0.3657, allocations: 77.92 MB / 0.5672 GB, free: 32.7 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002642/0.3684, allocations: 1.499 MB / 0.5687 GB, free: 31.66 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003641/0.3688, allocations: 125.3 kB / 0.5688 GB, free: 31.57 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.362e-05/0.3688, allocations: 0 / 0.5688 GB, free: 31.57 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.009e-05/0.3689, allocations: 2.219 kB / 0.5688 GB, free: 31.57 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.01e-05/0.3689, allocations: 3.938 kB / 0.5688 GB, free: 31.57 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002492/0.3692, allocations: 28.06 kB / 0.5688 GB, free: 31.55 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.844e-05/0.3693, allocations: 28.12 kB / 0.5689 GB, free: 31.54 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.3694, allocations: 15.36 kB / 0.5689 GB, free: 31.54 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.1e-05/0.3694, allocations: 12.23 kB / 0.5689 GB, free: 31.53 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.138e-05/0.3695, allocations: 16.56 kB / 0.5689 GB, free: 31.52 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.487e-05/0.3695, allocations: 2 kB / 0.5689 GB, free: 31.52 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.453e-05/0.3696, allocations: 13.03 kB / 0.5689 GB, free: 31.52 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.322e-05/0.3696, allocations: 7.078 kB / 0.5689 GB, free: 31.52 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.085e-05/0.3697, allocations: 16.84 kB / 0.5689 GB, free: 31.5 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001115/0.3698, allocations: 35.02 kB / 0.569 GB, free: 31.49 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3698, allocations: 0.6875 kB / 0.569 GB, free: 31.49 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3698, allocations: 0.6094 kB / 0.569 GB, free: 31.49 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.3698, allocations: 0.6875 kB / 0.569 GB, free: 31.49 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.000397/0.3702, allocations: 343.8 kB / 0.5693 GB, free: 31.13 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.3702, allocations: 9.938 kB / 0.5693 GB, free: 31.13 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.566e-05/0.3703, allocations: 4.719 kB / 0.5693 GB, free: 31.13 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.249e-05/0.3704, allocations: 171.6 kB / 0.5695 GB, free: 30.93 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.3704, allocations: 5.469 kB / 0.5695 GB, free: 30.92 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.3704, allocations: 3.562 kB / 0.5695 GB, free: 30.92 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001754/0.3706, allocations: 55.22 kB / 0.5695 GB, free: 30.89 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.3706, allocations: 2.938 kB / 0.5695 GB, free: 30.89 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.3706, allocations: 9 kB / 0.5696 GB, free: 30.88 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.3706, allocations: 3.984 kB / 0.5696 GB, free: 30.88 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/0.3708, allocations: 42.41 kB / 0.5696 GB, free: 30.87 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003041/0.3711, allocations: 264.6 kB / 0.5699 GB, free: 30.59 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.3714, allocations: 62.8 kB / 0.5699 GB, free: 30.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.811e-05/0.3716, allocations: 27.5 kB / 0.5699 GB, free: 30.54 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.777e-05/0.3717, allocations: 82.8 kB / 0.57 GB, free: 30.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.425e-05/0.3717, allocations: 31.78 kB / 0.57 GB, free: 30.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.3717, allocations: 5 kB / 0.5701 GB, free: 30.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003673/0.3721, allocations: 93.88 kB / 0.5701 GB, free: 30.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.112e-05/0.3721, allocations: 52.3 kB / 0.5702 GB, free: 30.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.834e-05/0.3721, allocations: 102.7 kB / 0.5703 GB, free: 30.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.235e-06/0.3722, allocations: 26.23 kB / 0.5703 GB, free: 30.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.589e-05/0.3722, allocations: 86.92 kB / 0.5704 GB, free: 30.08 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.562e-05/0.3722, allocations: 5.984 kB / 0.5704 GB, free: 30.07 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-05/0.3722, allocations: 15.67 kB / 0.5704 GB, free: 30.06 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.157e-05/0.3723, allocations: 313.3 kB / 0.5707 GB, free: 29.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.398e-05/0.3724, allocations: 21.83 kB / 0.5707 GB, free: 29.74 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.017e-05/0.3725, allocations: 20.55 kB / 0.5708 GB, free: 29.74 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001686/0.3727, allocations: 50.55 kB / 0.5708 GB, free: 29.72 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3727, allocations: 6.062 kB / 0.5708 GB, free: 29.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002018/0.3729, allocations: 74.45 kB / 0.5709 GB, free: 29.68 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.3729, allocations: 4.781 kB / 0.5709 GB, free: 29.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.3729, allocations: 0 / 0.5709 GB, free: 29.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.3729, allocations: 1.656 kB / 0.5709 GB, free: 29.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.819e-05/0.373, allocations: 12.56 kB / 0.5709 GB, free: 29.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.373, allocations: 0 / 0.5709 GB, free: 29.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.622e-05/0.3731, allocations: 14.09 kB / 0.5709 GB, free: 29.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.3731, allocations: 3.031 kB / 0.5709 GB, free: 29.67 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 4.856e-05/0.3731, allocations: 115.5 kB / 0.571 GB, free: 29.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.42e-05/0.3732, allocations: 1.125 kB / 0.571 GB, free: 29.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002443/0.3734, allocations: 82.06 kB / 0.5711 GB, free: 29.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.3734, allocations: 3.141 kB / 0.5711 GB, free: 29.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.3734, allocations: 4 kB / 0.5711 GB, free: 29.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.3735, allocations: 2.156 kB / 0.5711 GB, free: 29.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/0.3736, allocations: 166.3 kB / 0.5713 GB, free: 29.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3736, allocations: 1.062 kB / 0.5713 GB, free: 29.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.223e-05/0.3737, allocations: 16.05 kB / 0.5713 GB, free: 29.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.3737, allocations: 5.219 kB / 0.5713 GB, free: 29.29 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-06/0.3737, allocations: 1.5 kB / 0.5713 GB, free: 29.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.3737, allocations: 1.188 kB / 0.5713 GB, free: 29.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3737, allocations: 1.266 kB / 0.5713 GB, free: 29.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002264/0.3739, allocations: 177.5 kB / 0.5715 GB, free: 29.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.785e-05/0.374, allocations: 83.5 kB / 0.5715 GB, free: 29.04 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.62e-05/0.374, allocations: 7.016 kB / 0.5716 GB, free: 29.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.3741, allocations: 6.891 kB / 0.5716 GB, free: 29.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.018e-05/0.3741, allocations: 4.719 kB / 0.5716 GB, free: 29.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.3741, allocations: 2.859 kB / 0.5716 GB, free: 29.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.43e-05/0.3742, allocations: 84.23 kB / 0.5716 GB, free: 28.96 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3742, allocations: 0.5 kB / 0.5716 GB, free: 28.96 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002195/0.3744, allocations: 6.625 kB / 0.5717 GB, free: 28.96 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.0001188/0.3745, allocations: 101.8 kB / 0.5718 GB, free: 28.87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002489/0.3748, allocations: 54.73 kB / 0.5718 GB, free: 28.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3748, allocations: 0.5 kB / 0.5718 GB, free: 28.86 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.3749, allocations: 25.27 kB / 0.5718 GB, free: 28.85 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.3752, allocations: 7.828 kB / 0.5718 GB, free: 28.85 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002785/0.3755, allocations: 115.9 kB / 0.5719 GB, free: 28.74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001053/0.3756, allocations: 0.6768 MB / 0.5726 GB, free: 28.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.071e-05/0.3756, allocations: 3.641 kB / 0.5726 GB, free: 28.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.355e-05/0.3757, allocations: 10.83 kB / 0.5726 GB, free: 28.04 MB / 446.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3757, allocations: 1.031 kB / 0.5726 GB, free: 28.04 MB / 446.1 MB Notification: Performance of Templates: time 0.002984/0.3786, allocations: 0.7082 MB / 0.5733 GB, free: 27.99 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)