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.001599/0.001598, allocations: 113.3 kB / 17.08 MB, free: 5.941 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.001852/0.001852, allocations: 197.9 kB / 18.02 MB, free: 5.027 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.445/1.445, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8351/0.8351, allocations: 115.3 MB / 407.2 MB, free: 6.199 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 74.11 kB / 0.5584 GB, free: 32.2 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.1575, allocations: 76.17 MB / 0.6328 GB, free: 4.367 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001797/0.1593, allocations: 0.5611 MB / 0.6333 GB, free: 3.809 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002469/0.1596, allocations: 51.78 kB / 0.6334 GB, free: 3.758 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.781e-05/0.1596, allocations: 3.938 kB / 0.6334 GB, free: 3.754 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 1.12e-05/0.1596, allocations: 0 / 0.6334 GB, free: 3.754 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 5.38e-06/0.1596, allocations: 4 kB / 0.6334 GB, free: 3.75 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002009/0.1598, allocations: 15.92 kB / 0.6334 GB, free: 3.734 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 4.307e-05/0.1599, allocations: 8 kB / 0.6334 GB, free: 3.727 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.186e-05/0.1599, allocations: 0 / 0.6334 GB, free: 3.727 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.265e-05/0.1599, allocations: 4 kB / 0.6334 GB, free: 3.723 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.959e-05/0.16, allocations: 3.938 kB / 0.6334 GB, free: 3.719 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 8.125e-06/0.16, allocations: 0 / 0.6334 GB, free: 3.719 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.737e-05/0.1601, allocations: 11.98 kB / 0.6334 GB, free: 3.707 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.518e-06/0.1601, allocations: 3.984 kB / 0.6334 GB, free: 3.703 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 1.83e-05/0.1601, allocations: 4 kB / 0.6334 GB, free: 3.699 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 7.174e-05/0.1602, allocations: 7.984 kB / 0.6334 GB, free: 3.691 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1602, allocations: 4 kB / 0.6334 GB, free: 3.688 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1602, allocations: 0 / 0.6334 GB, free: 3.688 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.1602, allocations: 0 / 0.6334 GB, free: 3.688 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.0002741/0.1605, allocations: 311.6 kB / 0.6337 GB, free: 3.332 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.1605, allocations: 8.031 kB / 0.6337 GB, free: 3.324 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.958e-05/0.1605, allocations: 0.9375 kB / 0.6337 GB, free: 3.324 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.503e-05/0.1606, allocations: 168.4 kB / 0.6339 GB, free: 3.121 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.1607, allocations: 384 / 0.6339 GB, free: 3.121 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.882e-06/0.1607, allocations: 4.312 kB / 0.6339 GB, free: 3.117 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.912e-05/0.1608, allocations: 38.27 kB / 0.6339 GB, free: 3.074 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-06/0.1608, allocations: 192 / 0.6339 GB, free: 3.074 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.1608, allocations: 3.938 kB / 0.634 GB, free: 3.07 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.1608, allocations: 3.938 kB / 0.634 GB, free: 3.066 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.372e-05/0.1608, allocations: 11.97 kB / 0.634 GB, free: 3.055 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001263/0.161, allocations: 141.7 kB / 0.6341 GB, free: 2.867 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.487e-05/0.161, allocations: 26.61 kB / 0.6341 GB, free: 2.832 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.633e-05/0.161, allocations: 9.203 kB / 0.6341 GB, free: 2.82 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001491/0.1612, allocations: 85.16 kB / 0.6342 GB, free: 2.719 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.1612, allocations: 30.56 kB / 0.6342 GB, free: 2.68 MB / 478.1 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.1612, allocations: 0 / 0.6342 GB, free: 2.68 MB / 478.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001282/0.1614, allocations: 49.56 kB / 0.6343 GB, free: 2.625 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.1614, allocations: 55.41 kB / 0.6343 GB, free: 2.559 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.119e-05/0.1615, allocations: 89.86 kB / 0.6344 GB, free: 2.461 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.1615, allocations: 25.83 kB / 0.6345 GB, free: 2.43 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.475e-05/0.1615, allocations: 88.14 kB / 0.6345 GB, free: 2.34 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.681e-05/0.1615, allocations: 3.906 kB / 0.6345 GB, free: 2.336 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.569e-05/0.1616, allocations: 13.72 kB / 0.6346 GB, free: 2.316 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.994e-05/0.1617, allocations: 310.8 kB / 0.6349 GB, free: 2.004 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.104e-05/0.1617, allocations: 0 / 0.6349 GB, free: 2.004 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.179e-05/0.1617, allocations: 19.92 kB / 0.6349 GB, free: 1.984 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.903e-05/0.1617, allocations: 12.8 kB / 0.6349 GB, free: 1.969 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1617, allocations: 4.062 kB / 0.6349 GB, free: 1.965 MB / 478.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.392e-05/0.1618, allocations: 37.7 kB / 0.6349 GB, free: 1.922 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.1618, allocations: 8 kB / 0.6349 GB, free: 1.914 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.1618, allocations: 0 / 0.6349 GB, free: 1.914 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.1618, allocations: 7.922 kB / 0.6349 GB, free: 1.906 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.158e-05/0.1619, allocations: 4 kB / 0.6349 GB, free: 1.902 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.1619, allocations: 0 / 0.6349 GB, free: 1.902 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.439e-05/0.1619, allocations: 3.938 kB / 0.6349 GB, free: 1.898 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-06/0.1619, allocations: 0 / 0.6349 GB, free: 1.898 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.497e-05/0.162, allocations: 109.9 kB / 0.6351 GB, free: 1.781 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.953e-06/0.162, allocations: 4 kB / 0.6351 GB, free: 1.777 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.355e-05/0.1621, allocations: 52.69 kB / 0.6351 GB, free: 1.719 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.1621, allocations: 4 kB / 0.6351 GB, free: 1.715 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/0.1621, allocations: 3.938 kB / 0.6351 GB, free: 1.711 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1621, allocations: 0 / 0.6351 GB, free: 1.711 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.226e-05/0.1622, allocations: 149.7 kB / 0.6353 GB, free: 1.516 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.1622, allocations: 0 / 0.6353 GB, free: 1.516 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.102e-05/0.1623, allocations: 4 kB / 0.6353 GB, free: 1.512 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.1623, allocations: 4.031 kB / 0.6353 GB, free: 1.508 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.1623, allocations: 3.938 kB / 0.6353 GB, free: 1.504 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-06/0.1623, allocations: 4 kB / 0.6353 GB, free: 1.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1623, allocations: 0 / 0.6353 GB, free: 1.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.969e-05/0.1624, allocations: 65.06 kB / 0.6353 GB, free: 1.418 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.773e-05/0.1624, allocations: 77.11 kB / 0.6354 GB, free: 1.324 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.127e-05/0.1624, allocations: 3.938 kB / 0.6354 GB, free: 1.32 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.05e-05/0.1624, allocations: 0 / 0.6354 GB, free: 1.32 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.535e-05/0.1625, allocations: 8.031 kB / 0.6354 GB, free: 1.312 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.347e-06/0.1625, allocations: 3.984 kB / 0.6354 GB, free: 1.309 MB / 478.1 MB Notification: Performance of sorting global known variables: time 2.586e-05/0.1625, allocations: 75.28 kB / 0.6355 GB, free: 1.234 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1625, allocations: 0 / 0.6355 GB, free: 1.234 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0001762/0.1627, allocations: 4 kB / 0.6355 GB, free: 1.23 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.0001561/0.1629, allocations: 103.2 kB / 0.6356 GB, free: 1.117 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 7.967e-05/0.1629, allocations: 12 kB / 0.6356 GB, free: 1.105 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.163, allocations: 4.062 kB / 0.6356 GB, free: 1.102 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 1.3e-05/0.163, allocations: 11.92 kB / 0.6356 GB, free: 1.09 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001315/0.1631, allocations: 5.5 kB / 0.6356 GB, free: 1.086 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002067/0.1633, allocations: 114.7 kB / 0.6357 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.1636, allocations: 0.6768 MB / 0.6364 GB, free: 244 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.693e-05/0.1636, allocations: 7.438 kB / 0.6364 GB, free: 236 kB / 478.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1636, allocations: 3.938 kB / 0.6364 GB, free: 232 kB / 478.1 MB Notification: Performance of Templates: time 0.001934/0.1655, allocations: 455.8 kB / 0.6368 GB, free: 15.78 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)