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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 111.2 kB / 17.03 MB, free: 5.77 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.0009845/0.0009845, allocations: 195 kB / 17.98 MB, free: 5.008 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.274/1.274, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6931/0.6931, allocations: 115.1 MB / 406.9 MB, free: 6.344 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 63.91 kB / 494.8 MB, free: 15.82 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3391, allocations: 76.14 MB / 0.5576 GB, free: 36.76 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001757/0.3409, allocations: 0.5679 MB / 0.5581 GB, free: 36.43 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002448/0.3411, allocations: 48.39 kB / 0.5582 GB, free: 36.4 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.987e-05/0.3412, allocations: 0 / 0.5582 GB, free: 36.4 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.423e-05/0.3412, allocations: 4.469 kB / 0.5582 GB, free: 36.4 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.54e-06/0.3412, allocations: 0.6875 kB / 0.5582 GB, free: 36.4 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002215/0.3414, allocations: 5.312 kB / 0.5582 GB, free: 36.4 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.847e-05/0.3415, allocations: 9.5 kB / 0.5582 GB, free: 36.39 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.919e-05/0.3415, allocations: 1.562 kB / 0.5582 GB, free: 36.39 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.731e-05/0.3416, allocations: 9.266 kB / 0.5582 GB, free: 36.39 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.115e-05/0.3416, allocations: 4.031 kB / 0.5582 GB, free: 36.39 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.367e-06/0.3416, allocations: 0 / 0.5582 GB, free: 36.39 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.984e-05/0.3417, allocations: 7.688 kB / 0.5582 GB, free: 36.38 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.437e-06/0.3417, allocations: 5.062 kB / 0.5582 GB, free: 36.38 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.688e-05/0.3417, allocations: 2.094 kB / 0.5582 GB, free: 36.38 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 8.424e-05/0.3418, allocations: 17.16 kB / 0.5582 GB, free: 36.37 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3418, allocations: 2.312 kB / 0.5582 GB, free: 36.37 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3418, allocations: 0 / 0.5582 GB, free: 36.37 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.3418, allocations: 0.5312 kB / 0.5582 GB, free: 36.37 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002355/0.3421, allocations: 316.5 kB / 0.5585 GB, free: 36.02 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.3421, allocations: 9.406 kB / 0.5586 GB, free: 36.02 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.714e-05/0.3421, allocations: 3.297 kB / 0.5586 GB, free: 36.02 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.586e-05/0.3422, allocations: 168.5 kB / 0.5587 GB, free: 35.82 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.3422, allocations: 1.438 kB / 0.5587 GB, free: 35.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.058e-05/0.3422, allocations: 1.5 kB / 0.5587 GB, free: 35.82 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.625e-05/0.3423, allocations: 40.64 kB / 0.5588 GB, free: 35.78 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.3424, allocations: 192 / 0.5588 GB, free: 35.78 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.3424, allocations: 3.938 kB / 0.5588 GB, free: 35.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.3424, allocations: 2.656 kB / 0.5588 GB, free: 35.77 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.205e-05/0.3424, allocations: 5.125 kB / 0.5588 GB, free: 35.77 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001159/0.3425, allocations: 145 kB / 0.5589 GB, free: 35.59 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.916e-05/0.3426, allocations: 31.69 kB / 0.5589 GB, free: 35.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.611e-05/0.3426, allocations: 6.453 kB / 0.5589 GB, free: 35.55 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001439/0.3428, allocations: 82.84 kB / 0.559 GB, free: 35.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.896e-05/0.3428, allocations: 33.53 kB / 0.5591 GB, free: 35.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.3428, allocations: 0 / 0.5591 GB, free: 35.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001352/0.3429, allocations: 47.08 kB / 0.5591 GB, free: 35.38 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.591e-05/0.343, allocations: 53 kB / 0.5592 GB, free: 35.31 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.853e-05/0.343, allocations: 95.3 kB / 0.5592 GB, free: 35.21 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.855e-06/0.343, allocations: 25.7 kB / 0.5593 GB, free: 35.18 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.475e-05/0.343, allocations: 81.23 kB / 0.5593 GB, free: 35.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.142e-05/0.3431, allocations: 9.125 kB / 0.5594 GB, free: 35.09 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.329e-05/0.3431, allocations: 13.53 kB / 0.5594 GB, free: 35.07 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.435e-05/0.3431, allocations: 313.3 kB / 0.5597 GB, free: 34.76 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.1e-05/0.3432, allocations: 1.344 kB / 0.5597 GB, free: 34.76 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.729e-06/0.3432, allocations: 9.016 kB / 0.5597 GB, free: 34.76 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.706e-05/0.3432, allocations: 10.03 kB / 0.5597 GB, free: 34.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.3432, allocations: 0 / 0.5597 GB, free: 34.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.177e-05/0.3433, allocations: 40.86 kB / 0.5597 GB, free: 34.71 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.3433, allocations: 6.781 kB / 0.5597 GB, free: 34.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.3433, allocations: 1.938 kB / 0.5597 GB, free: 34.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.3433, allocations: 3.938 kB / 0.5597 GB, free: 34.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.35e-05/0.3434, allocations: 8.188 kB / 0.5597 GB, free: 34.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.543e-06/0.3434, allocations: 4.547 kB / 0.5598 GB, free: 34.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.31e-05/0.3434, allocations: 2.25 kB / 0.5598 GB, free: 34.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.13e-06/0.3434, allocations: 8.703 kB / 0.5598 GB, free: 34.7 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 (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 4.59e-05/0.3435, allocations: 108.3 kB / 0.5599 GB, free: 34.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.754e-06/0.3435, allocations: 2.594 kB / 0.5599 GB, free: 34.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.911e-05/0.3436, allocations: 48.02 kB / 0.5599 GB, free: 34.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.3436, allocations: 1.156 kB / 0.5599 GB, free: 34.55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.3436, allocations: 0 / 0.5599 GB, free: 34.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3436, allocations: 1.969 kB / 0.5599 GB, free: 34.55 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.878e-05/0.3436, allocations: 148.6 kB / 0.5601 GB, free: 34.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3437, allocations: 1.219 kB / 0.5601 GB, free: 34.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.401e-05/0.3437, allocations: 7.469 kB / 0.5601 GB, free: 34.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3437, allocations: 4.781 kB / 0.5601 GB, free: 34.35 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.3437, allocations: 3.938 kB / 0.5601 GB, free: 34.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3437, allocations: 2.906 kB / 0.5601 GB, free: 34.35 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3437, allocations: 0 / 0.5601 GB, free: 34.35 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.543e-05/0.3438, allocations: 66.3 kB / 0.5601 GB, free: 34.28 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.011e-05/0.3438, allocations: 80.67 kB / 0.5602 GB, free: 34.18 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.037e-05/0.3438, allocations: 3.938 kB / 0.5602 GB, free: 34.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.121e-05/0.3438, allocations: 2 kB / 0.5602 GB, free: 34.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.899e-05/0.3439, allocations: 4.391 kB / 0.5602 GB, free: 34.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-06/0.3439, allocations: 0 / 0.5602 GB, free: 34.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.479e-05/0.3439, allocations: 75.28 kB / 0.5603 GB, free: 34.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3439, allocations: 0 / 0.5603 GB, free: 34.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0001824/0.3441, allocations: 6.688 kB / 0.5603 GB, free: 34.11 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,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.0001301/0.3442, allocations: 101.6 kB / 0.5604 GB, free: 34.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 7.754e-05/0.3443, allocations: 16.47 kB / 0.5604 GB, free: 34.01 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3443, allocations: 2.188 kB / 0.5604 GB, free: 34.01 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.455e-05/0.3443, allocations: 4.453 kB / 0.5604 GB, free: 34.01 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001281/0.3445, allocations: 3.156 kB / 0.5604 GB, free: 34.01 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001578/0.3446, allocations: 89.27 kB / 0.5605 GB, free: 33.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001016/0.3447, allocations: 0.6723 MB / 0.5612 GB, free: 33.21 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.14e-05/0.3448, allocations: 2.281 kB / 0.5612 GB, free: 33.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.153e-05/0.3448, allocations: 14.09 kB / 0.5612 GB, free: 33.2 MB / 446.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3448, allocations: 1.375 kB / 0.5612 GB, free: 33.2 MB / 446.1 MB Notification: Performance of Templates: time 0.001967/0.3468, allocations: 324.7 kB / 0.5615 GB, free: 33.16 MB / 446.1 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 -s cvode -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)