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.001578/0.001578, allocations: 115.1 kB / 17.04 MB, free: 5.805 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.001855/0.001854, allocations: 195 kB / 17.98 MB, free: 5.031 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.337/1.337, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7058/0.7058, allocations: 115.1 MB / 407 MB, free: 6.336 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 67.84 kB / 494.8 MB, free: 15.88 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3236, allocations: 76.14 MB / 0.5576 GB, free: 36.67 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002421/0.3261, allocations: 1.502 MB / 0.559 GB, free: 35.65 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002901/0.3264, allocations: 127.2 kB / 0.5592 GB, free: 35.57 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.281e-05/0.3264, allocations: 0 / 0.5592 GB, free: 35.57 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.647e-05/0.3265, allocations: 5.469 kB / 0.5592 GB, free: 35.56 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.286e-05/0.3265, allocations: 5.594 kB / 0.5592 GB, free: 35.56 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.3267, allocations: 20.83 kB / 0.5592 GB, free: 35.55 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.44e-05/0.3268, allocations: 33.47 kB / 0.5592 GB, free: 35.54 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.489e-05/0.3269, allocations: 9.969 kB / 0.5592 GB, free: 35.53 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.238e-05/0.3269, allocations: 9.984 kB / 0.5592 GB, free: 35.53 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.01e-05/0.327, allocations: 17.39 kB / 0.5593 GB, free: 35.52 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.507e-05/0.327, allocations: 3.656 kB / 0.5593 GB, free: 35.52 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.95e-05/0.3271, allocations: 12.83 kB / 0.5593 GB, free: 35.52 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.437e-05/0.3271, allocations: 19.3 kB / 0.5593 GB, free: 35.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.445e-05/0.3271, allocations: 12.45 kB / 0.5593 GB, free: 35.49 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 9.789e-05/0.3272, allocations: 30.5 kB / 0.5593 GB, free: 35.48 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.3273, allocations: 1.312 kB / 0.5593 GB, free: 35.48 MB / 446.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.3273, allocations: 1 kB / 0.5593 GB, free: 35.48 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.107e-06/0.3273, allocations: 0 / 0.5593 GB, free: 35.48 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.0003628/0.3276, allocations: 343.8 kB / 0.5597 GB, free: 35.12 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.3277, allocations: 9.812 kB / 0.5597 GB, free: 35.12 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.474e-05/0.3277, allocations: 3.312 kB / 0.5597 GB, free: 35.12 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.987e-05/0.3278, allocations: 171.9 kB / 0.5598 GB, free: 34.92 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.265e-05/0.3278, allocations: 1.984 kB / 0.5598 GB, free: 34.92 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.027e-05/0.3278, allocations: 2.562 kB / 0.5598 GB, free: 34.92 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.328, allocations: 60.2 kB / 0.5599 GB, free: 34.88 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.328, allocations: 0.9375 kB / 0.5599 GB, free: 34.88 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.497e-06/0.3281, allocations: 3.938 kB / 0.5599 GB, free: 34.88 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.3281, allocations: 4.641 kB / 0.5599 GB, free: 34.88 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001768/0.3283, allocations: 42.62 kB / 0.5599 GB, free: 34.87 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003017/0.3286, allocations: 270.5 kB / 0.5602 GB, free: 34.59 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002849/0.3289, allocations: 59.31 kB / 0.5603 GB, free: 34.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.116e-05/0.329, allocations: 28.84 kB / 0.5603 GB, free: 34.54 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.601e-05/0.3291, allocations: 81.61 kB / 0.5604 GB, free: 34.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.644e-05/0.3291, allocations: 32.77 kB / 0.5604 GB, free: 34.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.3291, allocations: 0.5312 kB / 0.5604 GB, free: 34.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003484/0.3294, allocations: 93.94 kB / 0.5605 GB, free: 34.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.368e-05/0.3295, allocations: 58.62 kB / 0.5605 GB, free: 34.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.807e-05/0.3295, allocations: 96.88 kB / 0.5606 GB, free: 34.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.777e-06/0.3295, allocations: 27.14 kB / 0.5607 GB, free: 34.17 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.808e-05/0.3296, allocations: 87.34 kB / 0.5607 GB, free: 34.08 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.258e-05/0.3296, allocations: 6.281 kB / 0.5608 GB, free: 34.08 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.987e-05/0.3296, allocations: 17.94 kB / 0.5608 GB, free: 34.06 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.193e-05/0.3297, allocations: 314.9 kB / 0.5611 GB, free: 33.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.674e-05/0.3298, allocations: 24.06 kB / 0.5611 GB, free: 33.74 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.575e-05/0.3299, allocations: 17.53 kB / 0.5611 GB, free: 33.74 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001517/0.33, allocations: 51.06 kB / 0.5612 GB, free: 33.72 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.33, allocations: 3.938 kB / 0.5612 GB, free: 33.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001945/0.3302, allocations: 78.94 kB / 0.5612 GB, free: 33.68 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.3303, allocations: 5.094 kB / 0.5612 GB, free: 33.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3303, allocations: 0.5625 kB / 0.5612 GB, free: 33.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.3303, allocations: 1.781 kB / 0.5612 GB, free: 33.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.885e-05/0.3304, allocations: 16.3 kB / 0.5613 GB, free: 33.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.3304, allocations: 0.75 kB / 0.5613 GB, free: 33.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.642e-05/0.3304, allocations: 10.11 kB / 0.5613 GB, free: 33.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.573e-06/0.3304, allocations: 5.859 kB / 0.5613 GB, free: 33.66 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.919e-05/0.3305, allocations: 118.2 kB / 0.5614 GB, free: 33.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.433e-05/0.3305, allocations: 3.016 kB / 0.5614 GB, free: 33.54 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002321/0.3308, allocations: 83.8 kB / 0.5615 GB, free: 33.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.3308, allocations: 1.375 kB / 0.5615 GB, free: 33.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.3308, allocations: 0.5156 kB / 0.5615 GB, free: 33.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.3308, allocations: 0 / 0.5615 GB, free: 33.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/0.3309, allocations: 167.7 kB / 0.5616 GB, free: 33.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.3309, allocations: 3.312 kB / 0.5616 GB, free: 33.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.475e-05/0.331, allocations: 11.03 kB / 0.5616 GB, free: 33.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.331, allocations: 0 / 0.5616 GB, free: 33.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.331, allocations: 1.953 kB / 0.5616 GB, free: 33.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.331, allocations: 0 / 0.5616 GB, free: 33.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.331, allocations: 0.7812 kB / 0.5616 GB, free: 33.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002131/0.3313, allocations: 171.3 kB / 0.5618 GB, free: 33.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.869e-05/0.3313, allocations: 87.09 kB / 0.5619 GB, free: 33.05 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.31e-05/0.3313, allocations: 7.047 kB / 0.5619 GB, free: 33.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.228e-05/0.3314, allocations: 6.484 kB / 0.5619 GB, free: 33.05 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.326e-05/0.3314, allocations: 9.281 kB / 0.5619 GB, free: 33.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/0.3314, allocations: 1.969 kB / 0.5619 GB, free: 33.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.124e-05/0.3315, allocations: 79.92 kB / 0.562 GB, free: 32.97 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3315, allocations: 1.375 kB / 0.562 GB, free: 32.97 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002187/0.3317, allocations: 7.719 kB / 0.562 GB, free: 32.97 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.0001132/0.3318, allocations: 109.4 kB / 0.5621 GB, free: 32.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002258/0.3321, allocations: 42.73 kB / 0.5621 GB, free: 32.87 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3321, allocations: 0 / 0.5621 GB, free: 32.87 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.357e-05/0.3322, allocations: 31.81 kB / 0.5622 GB, free: 32.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002387/0.3324, allocations: 9.516 kB / 0.5622 GB, free: 32.86 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002432/0.3327, allocations: 115.5 kB / 0.5623 GB, free: 32.75 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.799e-05/0.3328, allocations: 0.6779 MB / 0.563 GB, free: 32.05 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.957e-05/0.3328, allocations: 4.672 kB / 0.563 GB, free: 32.05 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.526e-05/0.3328, allocations: 10.45 kB / 0.563 GB, free: 32.04 MB / 446.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3328, allocations: 1.062 kB / 0.563 GB, free: 32.04 MB / 446.1 MB Notification: Performance of Templates: time 0.003122/0.336, allocations: 0.7098 MB / 0.5637 GB, free: 31.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 -s gbode -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)