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 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.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.00118/0.00118, allocations: 182.7 kB / 16.63 MB, free: 5.117 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4643/0.4643, allocations: 87.5 MB / 104.9 MB, free: 13.02 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.433/1.433, allocations: 222.9 MB / 349.1 MB, free: 2.758 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.001152/0.001152, allocations: 97.08 kB / 420 MB, free: 8.504 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 59.91 kB / 0.4891 GB, free: 7.695 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3325, allocations: 70.06 MB / 0.5575 GB, free: 44.83 MB / 410.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.002106/0.3347, allocations: 0.6308 MB / 0.5581 GB, free: 44.37 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003319/0.3351, allocations: 52.53 kB / 0.5582 GB, free: 44.33 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.18e-05/0.3351, allocations: 0 / 0.5582 GB, free: 44.33 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.911e-05/0.3351, allocations: 0 / 0.5582 GB, free: 44.33 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.941e-06/0.3352, allocations: 0 / 0.5582 GB, free: 44.33 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002112/0.3354, allocations: 11.38 kB / 0.5582 GB, free: 44.32 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.729e-05/0.3354, allocations: 2.312 kB / 0.5582 GB, free: 44.32 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.595e-05/0.3355, allocations: 1.219 kB / 0.5582 GB, free: 44.32 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.738e-05/0.3355, allocations: 8 kB / 0.5582 GB, free: 44.32 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.606e-05/0.3355, allocations: 5.047 kB / 0.5582 GB, free: 44.32 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.032e-05/0.3355, allocations: 1.156 kB / 0.5582 GB, free: 44.32 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.005e-05/0.3356, allocations: 12.05 kB / 0.5582 GB, free: 44.31 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.407e-06/0.3356, allocations: 0 / 0.5582 GB, free: 44.31 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.008e-05/0.3357, allocations: 1.094 kB / 0.5582 GB, free: 44.31 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 8.594e-05/0.3358, allocations: 12.3 kB / 0.5582 GB, free: 44.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3358, allocations: 0 / 0.5582 GB, free: 44.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3358, allocations: 4 kB / 0.5582 GB, free: 44.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.3358, allocations: 0 / 0.5582 GB, free: 44.3 MB / 410.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.0003181/0.3361, allocations: 313.6 kB / 0.5585 GB, free: 43.95 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.3362, allocations: 9.25 kB / 0.5585 GB, free: 43.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.099e-05/0.3362, allocations: 0.9375 kB / 0.5585 GB, free: 43.95 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.067e-05/0.3363, allocations: 165.5 kB / 0.5587 GB, free: 43.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.3363, allocations: 4.312 kB / 0.5587 GB, free: 43.74 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.088e-05/0.3363, allocations: 6.094 kB / 0.5587 GB, free: 43.74 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001031/0.3364, allocations: 33.27 kB / 0.5587 GB, free: 43.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.3364, allocations: 192 / 0.5587 GB, free: 43.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-06/0.3364, allocations: 3.938 kB / 0.5587 GB, free: 43.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.3365, allocations: 1.719 kB / 0.5587 GB, free: 43.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.578e-05/0.3365, allocations: 7.109 kB / 0.5587 GB, free: 43.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001153/0.3366, allocations: 147 kB / 0.5589 GB, free: 43.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.068e-05/0.3367, allocations: 23.7 kB / 0.5589 GB, free: 43.48 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.971e-05/0.3367, allocations: 15.34 kB / 0.5589 GB, free: 43.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001607/0.3369, allocations: 87.98 kB / 0.559 GB, free: 43.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.3369, allocations: 31.81 kB / 0.559 GB, free: 43.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.3369, allocations: 0 / 0.559 GB, free: 43.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001493/0.3371, allocations: 46.06 kB / 0.5591 GB, free: 43.28 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.861e-05/0.3371, allocations: 56.88 kB / 0.5591 GB, free: 43.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.343e-05/0.3371, allocations: 89.86 kB / 0.5592 GB, free: 43.11 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.672e-06/0.3371, allocations: 25.7 kB / 0.5592 GB, free: 43.08 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.233e-05/0.3372, allocations: 84.27 kB / 0.5593 GB, free: 43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.137e-05/0.3372, allocations: 1.219 kB / 0.5593 GB, free: 43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.365e-05/0.3372, allocations: 12.28 kB / 0.5593 GB, free: 42.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.412e-05/0.3373, allocations: 320 kB / 0.5596 GB, free: 42.66 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.295e-05/0.3373, allocations: 5.422 kB / 0.5597 GB, free: 42.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.815e-06/0.3373, allocations: 2.062 kB / 0.5597 GB, free: 42.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.995e-05/0.3373, allocations: 10.36 kB / 0.5597 GB, free: 42.65 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3373, allocations: 0 / 0.5597 GB, free: 42.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.666e-05/0.3374, allocations: 42.11 kB / 0.5597 GB, free: 42.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.3374, allocations: 6.844 kB / 0.5597 GB, free: 42.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.3374, allocations: 0 / 0.5597 GB, free: 42.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.3375, allocations: 9.172 kB / 0.5597 GB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.84e-05/0.3375, allocations: 2.219 kB / 0.5597 GB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.3375, allocations: 5.094 kB / 0.5597 GB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.287e-05/0.3376, allocations: 0 / 0.5597 GB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.3376, allocations: 9.062 kB / 0.5597 GB, free: 42.59 MB / 410.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 (n,fac) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.159e-05/0.3376, allocations: 115 kB / 0.5598 GB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.672e-06/0.3376, allocations: 1.094 kB / 0.5598 GB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.454e-05/0.3377, allocations: 49.94 kB / 0.5599 GB, free: 42.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.3378, allocations: 1.062 kB / 0.5599 GB, free: 42.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3378, allocations: 0 / 0.5599 GB, free: 42.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3378, allocations: 1.156 kB / 0.5599 GB, free: 42.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.708e-05/0.3379, allocations: 155.2 kB / 0.56 GB, free: 42.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.3379, allocations: 0 / 0.56 GB, free: 42.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.005e-05/0.3379, allocations: 3.125 kB / 0.56 GB, free: 42.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.3379, allocations: 1 kB / 0.56 GB, free: 42.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.284e-06/0.3379, allocations: 7.969 kB / 0.5601 GB, free: 42.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.3379, allocations: 1.531 kB / 0.5601 GB, free: 42.22 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3379, allocations: 3.938 kB / 0.5601 GB, free: 42.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000224/0.3382, allocations: 0.616 MB / 0.5607 GB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.412e-05/0.3382, allocations: 78.27 kB / 0.5607 GB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.509e-05/0.3382, allocations: 1.406 kB / 0.5607 GB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.076e-05/0.3382, allocations: 4.031 kB / 0.5607 GB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.674e-05/0.3383, allocations: 1.375 kB / 0.5607 GB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.3383, allocations: 1.438 kB / 0.5607 GB, free: 41.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.933e-05/0.3383, allocations: 79.22 kB / 0.5608 GB, free: 41.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3383, allocations: 0 / 0.5608 GB, free: 41.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002952/0.3386, allocations: 4.281 kB / 0.5608 GB, free: 41.38 MB / 410.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 (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.0001736/0.3388, allocations: 103.1 kB / 0.5609 GB, free: 41.29 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.757e-05/0.3389, allocations: 14.75 kB / 0.5609 GB, free: 41.28 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3389, allocations: 0 / 0.5609 GB, free: 41.28 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.757e-05/0.3389, allocations: 4.438 kB / 0.5609 GB, free: 41.28 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001283/0.339, allocations: 9.031 kB / 0.5609 GB, free: 41.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002323/0.3393, allocations: 187.3 kB / 0.5611 GB, free: 41.05 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001151/0.3394, allocations: 0.6752 MB / 0.5618 GB, free: 40.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.685e-05/0.3394, allocations: 1.125 kB / 0.5618 GB, free: 40.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.243e-05/0.3394, allocations: 9.594 kB / 0.5618 GB, free: 40.35 MB / 410.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3395, allocations: 4 kB / 0.5618 GB, free: 40.34 MB / 410.7 MB Notification: Performance of Templates: time 0.002136/0.3416, allocations: 314 kB / 0.5621 GB, free: 40.06 MB / 410.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)