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.001102/0.001102, allocations: 107.2 kB / 16.4 MB, free: 6.445 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.001184/0.001184, allocations: 193.2 kB / 17.34 MB, free: 5.707 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.318/1.318, 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.7063/0.7063, allocations: 115.3 MB / 406.5 MB, free: 6.156 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 66.23 kB / 0.5577 GB, free: 32.34 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1572, allocations: 76.18 MB / 0.6321 GB, free: 4.367 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002454/0.1597, allocations: 1.51 MB / 0.6336 GB, free: 2.844 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003674/0.1601, allocations: 116.5 kB / 0.6337 GB, free: 2.727 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.817e-05/0.1601, allocations: 0 / 0.6337 GB, free: 2.727 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 3.131e-05/0.1602, allocations: 3.938 kB / 0.6337 GB, free: 2.723 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 4.557e-05/0.1602, allocations: 3.938 kB / 0.6337 GB, free: 2.719 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002242/0.1605, allocations: 27.98 kB / 0.6337 GB, free: 2.691 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 7.724e-05/0.1606, allocations: 31.86 kB / 0.6337 GB, free: 2.66 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.1607, allocations: 19.95 kB / 0.6338 GB, free: 2.641 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.241e-05/0.1607, allocations: 4 kB / 0.6338 GB, free: 2.637 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.79e-05/0.1608, allocations: 23.92 kB / 0.6338 GB, free: 2.613 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.1608, allocations: 0 / 0.6338 GB, free: 2.613 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.098e-05/0.1609, allocations: 11.98 kB / 0.6338 GB, free: 2.602 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 1.238e-05/0.1609, allocations: 4 kB / 0.6338 GB, free: 2.598 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.725e-05/0.1609, allocations: 11.94 kB / 0.6338 GB, free: 2.586 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.161, allocations: 39.88 kB / 0.6338 GB, free: 2.547 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.161, allocations: 0 / 0.6338 GB, free: 2.547 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1611, allocations: 0 / 0.6338 GB, free: 2.547 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.1611, allocations: 0 / 0.6338 GB, free: 2.547 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004595/0.1615, allocations: 347.3 kB / 0.6342 GB, free: 2.156 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.1616, allocations: 12.03 kB / 0.6342 GB, free: 2.145 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.513e-05/0.1616, allocations: 4.875 kB / 0.6342 GB, free: 2.141 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.1617, allocations: 164.4 kB / 0.6343 GB, free: 1.941 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.16e-05/0.1618, allocations: 8.375 kB / 0.6344 GB, free: 1.934 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.668e-06/0.1618, allocations: 4.375 kB / 0.6344 GB, free: 1.93 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001776/0.162, allocations: 58.23 kB / 0.6344 GB, free: 1.867 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.162, allocations: 192 / 0.6344 GB, free: 1.867 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.162, allocations: 7.938 kB / 0.6344 GB, free: 1.859 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.162, allocations: 0 / 0.6344 GB, free: 1.859 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001878/0.1622, allocations: 39.95 kB / 0.6345 GB, free: 1.82 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003466/0.1625, allocations: 268.8 kB / 0.6347 GB, free: 1.508 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003138/0.1629, allocations: 62.47 kB / 0.6348 GB, free: 1.438 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.387e-05/0.163, allocations: 24.91 kB / 0.6348 GB, free: 1.41 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001169/0.1631, allocations: 81.11 kB / 0.6349 GB, free: 1.312 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.1631, allocations: 38.55 kB / 0.6349 GB, free: 1.266 MB / 478.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1631, allocations: 0 / 0.6349 GB, free: 1.266 MB / 478.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003603/0.1635, allocations: 97.52 kB / 0.635 GB, free: 1.164 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.37e-05/0.1635, allocations: 51.41 kB / 0.6351 GB, free: 1.102 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.044e-05/0.1636, allocations: 101.8 kB / 0.6352 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.1636, allocations: 29.7 kB / 0.6352 GB, free: 0.957 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.419e-05/0.1637, allocations: 84.12 kB / 0.6353 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.568e-05/0.1637, allocations: 11.84 kB / 0.6353 GB, free: 0.8594 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.41e-05/0.1637, allocations: 21.7 kB / 0.6353 GB, free: 0.832 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.592e-05/0.1638, allocations: 310.8 kB / 0.6356 GB, free: 0.5195 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.77e-05/0.1639, allocations: 19.98 kB / 0.6356 GB, free: 0.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.686e-05/0.164, allocations: 23.97 kB / 0.6356 GB, free: 488 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001663/0.1642, allocations: 48.81 kB / 0.6357 GB, free: 436 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1642, allocations: 7.875 kB / 0.6357 GB, free: 428 kB / 478.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002119/0.1644, allocations: 74.03 kB / 0.6358 GB, free: 348 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.1644, allocations: 4 kB / 0.6358 GB, free: 344 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1645, allocations: 0 / 0.6358 GB, free: 344 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.1645, allocations: 3.938 kB / 0.6358 GB, free: 340 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.824e-05/0.1646, allocations: 11.98 kB / 0.6358 GB, free: 328 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.1646, allocations: 0 / 0.6358 GB, free: 328 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.61e-05/0.1646, allocations: 11.98 kB / 0.6358 GB, free: 316 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.667e-06/0.1646, allocations: 8 kB / 0.6358 GB, free: 308 kB / 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 (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 7.74e-05/0.1647, allocations: 113.8 kB / 0.6359 GB, free: 184 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.27e-05/0.1648, allocations: 0 / 0.6359 GB, free: 184 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002553/0.165, allocations: 85.08 kB / 0.636 GB, free: 88 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.165, allocations: 0 / 0.636 GB, free: 88 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.165, allocations: 0 / 0.636 GB, free: 88 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.165, allocations: 4 kB / 0.636 GB, free: 84 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001586/0.1652, allocations: 169.6 kB / 0.6361 GB, free: 15.87 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1652, allocations: 0 / 0.6361 GB, free: 15.87 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.129e-05/0.1653, allocations: 11.98 kB / 0.6362 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.1653, allocations: 0 / 0.6362 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.1653, allocations: 0 / 0.6362 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1653, allocations: 0 / 0.6362 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.1653, allocations: 4 kB / 0.6362 GB, free: 15.85 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002474/0.1656, allocations: 179.4 kB / 0.6363 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.028e-05/0.1656, allocations: 81.02 kB / 0.6364 GB, free: 15.56 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.1656, allocations: 8 kB / 0.6364 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.973e-05/0.1657, allocations: 7.984 kB / 0.6364 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.628e-05/0.1658, allocations: 0 / 0.6364 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.68e-06/0.1658, allocations: 4 kB / 0.6364 GB, free: 15.54 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.186e-05/0.1658, allocations: 83.27 kB / 0.6365 GB, free: 15.46 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1658, allocations: 0 / 0.6365 GB, free: 15.46 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002119/0.166, allocations: 16 kB / 0.6365 GB, free: 15.45 MB / 494.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.000146/0.1662, allocations: 103.2 kB / 0.6366 GB, free: 15.33 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002315/0.1664, allocations: 43.95 kB / 0.6367 GB, free: 15.29 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1664, allocations: 0 / 0.6367 GB, free: 15.29 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.695e-05/0.1666, allocations: 31.91 kB / 0.6367 GB, free: 15.26 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.1668, allocations: 11.94 kB / 0.6367 GB, free: 15.25 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000269/0.1671, allocations: 101.6 kB / 0.6368 GB, free: 15.12 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002293/0.1673, allocations: 0.6845 MB / 0.6375 GB, free: 14.41 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.721e-05/0.1674, allocations: 0 / 0.6375 GB, free: 14.41 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.868e-05/0.1674, allocations: 15.42 kB / 0.6375 GB, free: 14.39 MB / 494.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1674, allocations: 0 / 0.6375 GB, free: 14.39 MB / 494.1 MB Notification: Performance of Templates: time 0.002781/0.1702, allocations: 0.7074 MB / 0.6382 GB, free: 13.69 MB / 494.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 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)