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.001689/0.001689, allocations: 111.4 kB / 16.64 MB, free: 6.816 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.001979/0.001979, allocations: 190 kB / 17.57 MB, free: 5.922 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.335/1.335, allocations: 222.9 MB / 241.2 MB, free: 13.7 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7457/0.7457, allocations: 122.9 MB / 414.2 MB, free: 84 kB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 67.89 kB / 0.4912 GB, free: 7.809 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3347, allocations: 77.92 MB / 0.5673 GB, free: 31.97 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002388/0.3372, allocations: 1.566 MB / 0.5689 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002795/0.3375, allocations: 115.5 kB / 0.569 GB, free: 30.81 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.887e-05/0.3375, allocations: 2.219 kB / 0.569 GB, free: 30.81 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.078e-05/0.3375, allocations: 5.203 kB / 0.569 GB, free: 30.8 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.634e-05/0.3376, allocations: 4.5 kB / 0.569 GB, free: 30.8 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002063/0.3378, allocations: 27.53 kB / 0.569 GB, free: 30.79 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.284e-05/0.3379, allocations: 32.12 kB / 0.569 GB, free: 30.77 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.226e-05/0.338, allocations: 10.02 kB / 0.569 GB, free: 30.77 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.682e-05/0.338, allocations: 12.23 kB / 0.5691 GB, free: 30.76 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.262e-05/0.338, allocations: 20.41 kB / 0.5691 GB, free: 30.75 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.163e-05/0.3381, allocations: 2.469 kB / 0.5691 GB, free: 30.75 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.04e-05/0.3381, allocations: 8.125 kB / 0.5691 GB, free: 30.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.26e-05/0.3381, allocations: 8.875 kB / 0.5691 GB, free: 30.75 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.28e-05/0.3382, allocations: 12.33 kB / 0.5691 GB, free: 30.74 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.547e-05/0.3382, allocations: 18.62 kB / 0.5691 GB, free: 30.73 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3383, allocations: 4.141 kB / 0.5691 GB, free: 30.73 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3383, allocations: 0 / 0.5691 GB, free: 30.73 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.3383, allocations: 1.219 kB / 0.5691 GB, free: 30.73 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.0003554/0.3386, allocations: 342.3 kB / 0.5695 GB, free: 30.38 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.3387, allocations: 9.156 kB / 0.5695 GB, free: 30.38 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.96e-05/0.3387, allocations: 11.19 kB / 0.5695 GB, free: 30.37 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.487e-05/0.3388, allocations: 175.2 kB / 0.5696 GB, free: 30.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.3388, allocations: 2.875 kB / 0.5696 GB, free: 30.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.3388, allocations: 2.031 kB / 0.5696 GB, free: 30.16 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001687/0.339, allocations: 63.8 kB / 0.5697 GB, free: 30.12 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.339, allocations: 1.688 kB / 0.5697 GB, free: 30.12 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.339, allocations: 4.5 kB / 0.5697 GB, free: 30.11 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.339, allocations: 1.125 kB / 0.5697 GB, free: 30.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.3392, allocations: 38.28 kB / 0.5697 GB, free: 30.11 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002911/0.3395, allocations: 262.8 kB / 0.57 GB, free: 29.83 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003056/0.3398, allocations: 63.09 kB / 0.5701 GB, free: 29.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.303e-05/0.3399, allocations: 26.61 kB / 0.5701 GB, free: 29.79 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-05/0.34, allocations: 81.23 kB / 0.5702 GB, free: 29.69 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.421e-05/0.34, allocations: 41.8 kB / 0.5702 GB, free: 29.64 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.34, allocations: 0 / 0.5702 GB, free: 29.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003587/0.3404, allocations: 90.17 kB / 0.5703 GB, free: 29.61 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.509e-05/0.3404, allocations: 57.53 kB / 0.5703 GB, free: 29.54 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.362e-05/0.3405, allocations: 100.9 kB / 0.5704 GB, free: 29.44 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.257e-06/0.3405, allocations: 26.91 kB / 0.5705 GB, free: 29.41 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.118e-05/0.3405, allocations: 87.8 kB / 0.5705 GB, free: 29.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.474e-05/0.3406, allocations: 5.25 kB / 0.5706 GB, free: 29.32 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.019e-05/0.3406, allocations: 16.47 kB / 0.5706 GB, free: 29.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.286e-05/0.3406, allocations: 317.1 kB / 0.5709 GB, free: 28.98 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.907e-05/0.3407, allocations: 16.66 kB / 0.5709 GB, free: 28.98 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.889e-05/0.3408, allocations: 21.16 kB / 0.5709 GB, free: 28.98 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.341, allocations: 51.09 kB / 0.571 GB, free: 28.96 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.341, allocations: 5.031 kB / 0.571 GB, free: 28.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001943/0.3412, allocations: 78.42 kB / 0.571 GB, free: 28.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.3412, allocations: 8.125 kB / 0.571 GB, free: 28.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3412, allocations: 0.5625 kB / 0.571 GB, free: 28.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.3412, allocations: 3.984 kB / 0.571 GB, free: 28.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.088e-05/0.3413, allocations: 16.89 kB / 0.5711 GB, free: 28.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.3413, allocations: 1.281 kB / 0.5711 GB, free: 28.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.75e-05/0.3414, allocations: 6.703 kB / 0.5711 GB, free: 28.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-06/0.3414, allocations: 5.672 kB / 0.5711 GB, free: 28.9 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.912e-05/0.3415, allocations: 113.8 kB / 0.5712 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.336e-05/0.3415, allocations: 2.125 kB / 0.5712 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000236/0.3417, allocations: 86.8 kB / 0.5713 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.3418, allocations: 2.688 kB / 0.5713 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.3418, allocations: 0 / 0.5713 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3418, allocations: 6.812 kB / 0.5713 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000118/0.3419, allocations: 162.4 kB / 0.5714 GB, free: 28.53 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3419, allocations: 1.031 kB / 0.5714 GB, free: 28.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.606e-05/0.342, allocations: 11.52 kB / 0.5714 GB, free: 28.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.342, allocations: 0.7969 kB / 0.5714 GB, free: 28.53 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.342, allocations: 1.844 kB / 0.5714 GB, free: 28.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.342, allocations: 0.5 kB / 0.5714 GB, free: 28.53 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.342, allocations: 0.6562 kB / 0.5714 GB, free: 28.53 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002208/0.3422, allocations: 181 kB / 0.5716 GB, free: 28.38 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.732e-05/0.3423, allocations: 82.95 kB / 0.5717 GB, free: 28.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.3423, allocations: 1.156 kB / 0.5717 GB, free: 28.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.42e-05/0.3424, allocations: 5.828 kB / 0.5717 GB, free: 28.29 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.648e-05/0.3424, allocations: 5.719 kB / 0.5717 GB, free: 28.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-06/0.3424, allocations: 1.562 kB / 0.5717 GB, free: 28.29 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.267e-05/0.3425, allocations: 85.81 kB / 0.5718 GB, free: 28.21 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.3425, allocations: 0 / 0.5718 GB, free: 28.21 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002222/0.3427, allocations: 12.81 kB / 0.5718 GB, free: 28.2 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.0001172/0.3428, allocations: 99.02 kB / 0.5719 GB, free: 28.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002235/0.3431, allocations: 47.28 kB / 0.5719 GB, free: 28.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.3431, allocations: 1.562 kB / 0.5719 GB, free: 28.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.394e-05/0.3432, allocations: 25.06 kB / 0.572 GB, free: 28.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002531/0.3434, allocations: 7.266 kB / 0.572 GB, free: 28.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002569/0.3437, allocations: 153.9 kB / 0.5721 GB, free: 27.94 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.628e-05/0.3438, allocations: 0.6781 MB / 0.5728 GB, free: 27.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.788e-05/0.3438, allocations: 11.58 kB / 0.5728 GB, free: 27.24 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3438, allocations: 3.938 kB / 0.5728 GB, free: 27.24 MB / 446.1 MB Notification: Performance of Templates: time 0.002255/0.3461, allocations: 0.7347 MB / 0.5735 GB, free: 27.22 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)