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.001113/0.001113, allocations: 108.6 kB / 16.41 MB, free: 6.473 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.001138/0.001139, allocations: 189.2 kB / 17.34 MB, free: 5.754 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.283/1.283, allocations: 222.9 MB / 241 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.6829/0.6829, allocations: 115.3 MB / 406.5 MB, free: 6.16 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 68.88 kB / 0.5577 GB, free: 32.23 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1325, allocations: 76.18 MB / 0.6321 GB, free: 4.359 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001535/0.1341, allocations: 0.5674 MB / 0.6327 GB, free: 3.797 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002532/0.1344, allocations: 51.83 kB / 0.6327 GB, free: 3.746 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.688e-05/0.1344, allocations: 0 / 0.6327 GB, free: 3.746 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 1.174e-05/0.1344, allocations: 0 / 0.6327 GB, free: 3.746 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 5.57e-06/0.1344, allocations: 0 / 0.6327 GB, free: 3.746 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002704/0.1347, allocations: 11.94 kB / 0.6327 GB, free: 3.734 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 6.026e-05/0.1348, allocations: 12 kB / 0.6327 GB, free: 3.723 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.07e-05/0.1348, allocations: 3.984 kB / 0.6327 GB, free: 3.719 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.831e-05/0.1349, allocations: 4 kB / 0.6328 GB, free: 3.715 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.334e-05/0.1349, allocations: 3.938 kB / 0.6328 GB, free: 3.711 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.12e-05/0.1349, allocations: 0 / 0.6328 GB, free: 3.711 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.369e-05/0.135, allocations: 8 kB / 0.6328 GB, free: 3.703 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 1.156e-05/0.135, allocations: 3.984 kB / 0.6328 GB, free: 3.699 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.241e-05/0.135, allocations: 4 kB / 0.6328 GB, free: 3.695 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 9.299e-05/0.1351, allocations: 11.92 kB / 0.6328 GB, free: 3.684 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1352, allocations: 0 / 0.6328 GB, free: 3.684 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1352, allocations: 0 / 0.6328 GB, free: 3.684 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.1352, allocations: 4 kB / 0.6328 GB, free: 3.68 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.000367/0.1355, allocations: 315.6 kB / 0.6331 GB, free: 3.32 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.1356, allocations: 8.031 kB / 0.6331 GB, free: 3.312 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.029e-05/0.1356, allocations: 0.9375 kB / 0.6331 GB, free: 3.312 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/0.1357, allocations: 164.4 kB / 0.6333 GB, free: 3.113 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.1358, allocations: 384 / 0.6333 GB, free: 3.113 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.366e-05/0.1358, allocations: 384 / 0.6333 GB, free: 3.113 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/0.1359, allocations: 46.12 kB / 0.6333 GB, free: 3.062 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.1359, allocations: 192 / 0.6333 GB, free: 3.062 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.1359, allocations: 7.938 kB / 0.6333 GB, free: 3.055 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.1359, allocations: 0 / 0.6333 GB, free: 3.055 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.665e-05/0.136, allocations: 4 kB / 0.6333 GB, free: 3.051 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000151/0.1361, allocations: 141.7 kB / 0.6334 GB, free: 2.863 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.039e-05/0.1362, allocations: 34.58 kB / 0.6335 GB, free: 2.82 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.73e-05/0.1362, allocations: 5.203 kB / 0.6335 GB, free: 2.812 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001754/0.1364, allocations: 81.17 kB / 0.6336 GB, free: 2.715 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.1365, allocations: 38.5 kB / 0.6336 GB, free: 2.668 MB / 478.1 MB Notification: Performance of pre-optimization done (n=2): time 9.41e-07/0.1365, allocations: 0 / 0.6336 GB, free: 2.668 MB / 478.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001597/0.1366, allocations: 45.62 kB / 0.6336 GB, free: 2.617 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.392e-05/0.1367, allocations: 55.41 kB / 0.6337 GB, free: 2.551 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.69e-05/0.1367, allocations: 89.86 kB / 0.6338 GB, free: 2.453 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.1368, allocations: 25.7 kB / 0.6338 GB, free: 2.422 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.969e-05/0.1368, allocations: 84.14 kB / 0.6339 GB, free: 2.336 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.084e-05/0.1368, allocations: 3.906 kB / 0.6339 GB, free: 2.332 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.101e-05/0.1369, allocations: 21.83 kB / 0.6339 GB, free: 2.305 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.137, allocations: 310.8 kB / 0.6342 GB, free: 1.992 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.237e-05/0.137, allocations: 0 / 0.6342 GB, free: 1.992 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.493e-05/0.137, allocations: 12 kB / 0.6342 GB, free: 1.98 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.501e-05/0.1371, allocations: 12.8 kB / 0.6342 GB, free: 1.965 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.1371, allocations: 0 / 0.6342 GB, free: 1.965 MB / 478.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.875e-05/0.1371, allocations: 41.69 kB / 0.6343 GB, free: 1.918 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.1371, allocations: 12.09 kB / 0.6343 GB, free: 1.906 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1372, allocations: 4 kB / 0.6343 GB, free: 1.902 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/0.1372, allocations: 3.938 kB / 0.6343 GB, free: 1.898 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.452e-05/0.1372, allocations: 4 kB / 0.6343 GB, free: 1.895 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.1373, allocations: 0 / 0.6343 GB, free: 1.895 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.5e-05/0.1373, allocations: 3.938 kB / 0.6343 GB, free: 1.891 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.948e-06/0.1373, allocations: 0 / 0.6343 GB, free: 1.891 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.5e-05/0.1374, allocations: 105.8 kB / 0.6344 GB, free: 1.777 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.189e-05/0.1374, allocations: 11.92 kB / 0.6344 GB, free: 1.766 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.679e-05/0.1375, allocations: 48.7 kB / 0.6345 GB, free: 1.711 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.1375, allocations: 4 kB / 0.6345 GB, free: 1.707 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1375, allocations: 0 / 0.6345 GB, free: 1.707 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1375, allocations: 3.938 kB / 0.6345 GB, free: 1.703 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001029/0.1376, allocations: 153.7 kB / 0.6346 GB, free: 1.504 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1376, allocations: 0 / 0.6346 GB, free: 1.504 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.01e-05/0.1376, allocations: 4 kB / 0.6346 GB, free: 1.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.1376, allocations: 0 / 0.6346 GB, free: 1.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.1377, allocations: 3.938 kB / 0.6346 GB, free: 1.496 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.1377, allocations: 4 kB / 0.6346 GB, free: 1.492 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1377, allocations: 4.031 kB / 0.6346 GB, free: 1.488 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.473e-05/0.1378, allocations: 65.06 kB / 0.6347 GB, free: 1.406 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.552e-05/0.1378, allocations: 77.11 kB / 0.6348 GB, free: 1.312 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/0.1378, allocations: 7.922 kB / 0.6348 GB, free: 1.305 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.003e-05/0.1378, allocations: 0 / 0.6348 GB, free: 1.305 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.662e-05/0.1379, allocations: 4 kB / 0.6348 GB, free: 1.301 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-06/0.1379, allocations: 0 / 0.6348 GB, free: 1.301 MB / 478.1 MB Notification: Performance of sorting global known variables: time 2.846e-05/0.1379, allocations: 79.31 kB / 0.6348 GB, free: 1.223 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1379, allocations: 0 / 0.6348 GB, free: 1.223 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0001859/0.1381, allocations: 4 kB / 0.6348 GB, free: 1.219 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.0001771/0.1383, allocations: 99.25 kB / 0.6349 GB, free: 1.109 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 8.314e-05/0.1384, allocations: 15.98 kB / 0.635 GB, free: 1.094 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.1384, allocations: 0 / 0.635 GB, free: 1.094 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 1.716e-05/0.1384, allocations: 7.938 kB / 0.635 GB, free: 1.086 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.1386, allocations: 4.125 kB / 0.635 GB, free: 1.082 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002107/0.1388, allocations: 92.95 kB / 0.6351 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.1391, allocations: 0.6729 MB / 0.6357 GB, free: 272 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 1.169e-05/0.1391, allocations: 0 / 0.6357 GB, free: 272 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.517e-05/0.1391, allocations: 11.44 kB / 0.6357 GB, free: 260 kB / 478.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1391, allocations: 0 / 0.6357 GB, free: 260 kB / 478.1 MB Notification: Performance of Templates: time 0.002268/0.1414, allocations: 320.9 kB / 0.636 GB, free: 15.94 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)