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.001456/0.001456, allocations: 106.2 kB / 16.4 MB, free: 6.402 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.001645/0.001645, allocations: 193.2 kB / 17.34 MB, free: 5.695 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.393/1.393, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7174/0.7174, allocations: 115.3 MB / 406.5 MB, free: 6.16 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 63.7 kB / 0.5577 GB, free: 32.16 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.1996, allocations: 76.19 MB / 0.6321 GB, free: 4.363 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.00181/0.2015, allocations: 0.5688 MB / 0.6327 GB, free: 3.797 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002718/0.2018, allocations: 55.78 kB / 0.6327 GB, free: 3.742 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.737e-05/0.2018, allocations: 0 / 0.6327 GB, free: 3.742 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 1.511e-05/0.2018, allocations: 0 / 0.6327 GB, free: 3.742 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 6.041e-06/0.2018, allocations: 0 / 0.6327 GB, free: 3.742 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002292/0.2021, allocations: 8 kB / 0.6327 GB, free: 3.734 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 4.824e-05/0.2021, allocations: 4 kB / 0.6327 GB, free: 3.73 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.24e-05/0.2022, allocations: 7.984 kB / 0.6327 GB, free: 3.723 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.949e-05/0.2022, allocations: 7.984 kB / 0.6327 GB, free: 3.715 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.43e-05/0.2023, allocations: 7.938 kB / 0.6328 GB, free: 3.707 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 9.327e-06/0.2023, allocations: 0 / 0.6328 GB, free: 3.707 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.909e-05/0.2023, allocations: 4 kB / 0.6328 GB, free: 3.703 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 1.109e-05/0.2024, allocations: 7.938 kB / 0.6328 GB, free: 3.695 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 1.842e-05/0.2024, allocations: 0 / 0.6328 GB, free: 3.695 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 8.649e-05/0.2025, allocations: 11.97 kB / 0.6328 GB, free: 3.684 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.2025, allocations: 3.938 kB / 0.6328 GB, free: 3.68 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2025, allocations: 0 / 0.6328 GB, free: 3.68 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.2025, allocations: 4 kB / 0.6328 GB, free: 3.676 MB / 478.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.000305/0.2028, allocations: 319.6 kB / 0.6331 GB, free: 3.312 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.2029, allocations: 8.031 kB / 0.6331 GB, free: 3.305 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.037e-05/0.2029, allocations: 0.9375 kB / 0.6331 GB, free: 3.305 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.129e-05/0.203, allocations: 160.4 kB / 0.6333 GB, free: 3.109 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.749e-06/0.203, allocations: 384 / 0.6333 GB, free: 3.109 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.989e-06/0.203, allocations: 4.375 kB / 0.6333 GB, free: 3.105 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001021/0.2031, allocations: 34.19 kB / 0.6333 GB, free: 3.066 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.2031, allocations: 192 / 0.6333 GB, free: 3.066 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.2032, allocations: 11.94 kB / 0.6333 GB, free: 3.055 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.096e-05/0.2032, allocations: 4 kB / 0.6333 GB, free: 3.051 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.628e-05/0.2032, allocations: 7.984 kB / 0.6333 GB, free: 3.043 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001379/0.2034, allocations: 149.6 kB / 0.6335 GB, free: 2.848 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.83e-05/0.2034, allocations: 26.59 kB / 0.6335 GB, free: 2.812 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.984e-05/0.2035, allocations: 9.266 kB / 0.6335 GB, free: 2.801 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001602/0.2036, allocations: 81.11 kB / 0.6336 GB, free: 2.703 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.2037, allocations: 34.56 kB / 0.6336 GB, free: 2.66 MB / 478.1 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.2037, allocations: 0 / 0.6336 GB, free: 2.66 MB / 478.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001575/0.2038, allocations: 49.56 kB / 0.6336 GB, free: 2.605 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.743e-05/0.2039, allocations: 51.41 kB / 0.6337 GB, free: 2.543 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.096e-05/0.2039, allocations: 89.86 kB / 0.6338 GB, free: 2.445 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.2039, allocations: 25.7 kB / 0.6338 GB, free: 2.414 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.71e-05/0.204, allocations: 80.14 kB / 0.6339 GB, free: 2.332 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.199e-05/0.204, allocations: 8.031 kB / 0.6339 GB, free: 2.324 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.165e-05/0.204, allocations: 21.7 kB / 0.6339 GB, free: 2.297 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.2041, allocations: 314.8 kB / 0.6342 GB, free: 1.98 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.949e-06/0.2042, allocations: 0 / 0.6342 GB, free: 1.98 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.112e-05/0.2042, allocations: 8 kB / 0.6342 GB, free: 1.973 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.183e-05/0.2042, allocations: 12.86 kB / 0.6342 GB, free: 1.957 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2042, allocations: 0 / 0.6342 GB, free: 1.957 MB / 478.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.07e-05/0.2043, allocations: 41.62 kB / 0.6343 GB, free: 1.91 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.2043, allocations: 8.094 kB / 0.6343 GB, free: 1.902 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.2043, allocations: 0 / 0.6343 GB, free: 1.902 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.2043, allocations: 3.938 kB / 0.6343 GB, free: 1.898 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.884e-05/0.2044, allocations: 8 kB / 0.6343 GB, free: 1.891 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.2044, allocations: 0 / 0.6343 GB, free: 1.891 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.293e-05/0.2044, allocations: 3.938 kB / 0.6343 GB, free: 1.887 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.2045, allocations: 7.938 kB / 0.6343 GB, free: 1.879 MB / 478.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 6.097e-05/0.2045, allocations: 105.8 kB / 0.6344 GB, free: 1.766 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.588e-06/0.2045, allocations: 3.984 kB / 0.6344 GB, free: 1.762 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.459e-05/0.2046, allocations: 48.77 kB / 0.6345 GB, free: 1.707 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2046, allocations: 0 / 0.6345 GB, free: 1.707 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.381e-06/0.2047, allocations: 3.938 kB / 0.6345 GB, free: 1.703 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.2047, allocations: 3.938 kB / 0.6345 GB, free: 1.699 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.558e-05/0.2048, allocations: 149.7 kB / 0.6346 GB, free: 1.504 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2048, allocations: 0 / 0.6346 GB, free: 1.504 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.485e-05/0.2048, allocations: 4 kB / 0.6346 GB, free: 1.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.2048, allocations: 0 / 0.6346 GB, free: 1.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.2048, allocations: 3.938 kB / 0.6346 GB, free: 1.496 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2048, allocations: 0 / 0.6346 GB, free: 1.496 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2048, allocations: 4.031 kB / 0.6346 GB, free: 1.492 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.912e-05/0.2049, allocations: 61.12 kB / 0.6347 GB, free: 1.414 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.947e-05/0.2049, allocations: 85.11 kB / 0.6348 GB, free: 1.312 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.445e-05/0.205, allocations: 11.92 kB / 0.6348 GB, free: 1.301 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.062e-05/0.205, allocations: 0 / 0.6348 GB, free: 1.301 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.775e-05/0.205, allocations: 0 / 0.6348 GB, free: 1.301 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.15e-06/0.205, allocations: 4 kB / 0.6348 GB, free: 1.297 MB / 478.1 MB Notification: Performance of sorting global known variables: time 2.631e-05/0.205, allocations: 79.31 kB / 0.6348 GB, free: 1.219 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.293e-06/0.2051, allocations: 0 / 0.6348 GB, free: 1.219 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0002103/0.2053, allocations: 7.938 kB / 0.6349 GB, free: 1.211 MB / 478.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.0001467/0.2054, allocations: 99.25 kB / 0.6349 GB, free: 1.102 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 8.873e-05/0.2055, allocations: 19.98 kB / 0.635 GB, free: 1.082 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2055, allocations: 0 / 0.635 GB, free: 1.082 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 1.543e-05/0.2055, allocations: 4 kB / 0.635 GB, free: 1.078 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000128/0.2057, allocations: 5.531 kB / 0.635 GB, free: 1.074 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002163/0.2059, allocations: 92.95 kB / 0.6351 GB, free: 0.957 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002041/0.2061, allocations: 0.669 MB / 0.6357 GB, free: 268 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 1.612e-05/0.2061, allocations: 4 kB / 0.6357 GB, free: 264 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.539e-05/0.2062, allocations: 11.38 kB / 0.6357 GB, free: 252 kB / 478.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2062, allocations: 0 / 0.6357 GB, free: 252 kB / 478.1 MB Notification: Performance of Templates: time 0.002284/0.2085, allocations: 322.8 kB / 0.636 GB, free: 15.93 MB / 494.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 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)