Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.conf.json 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/IDEAS 3.0.0/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) Running command: translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 182.8 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.704/0.704, allocations: 132.2 MB / 148.9 MB, free: 12.14 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 222.9 MB / 403.3 MB, free: 7.113 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 95.75 kB / 484.3 MB, free: 8.715 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001026/0.001026, allocations: 55.92 kB / 0.5619 GB, free: 71.05 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1288, allocations: 80.2 MB / 0.6402 GB, free: 6.773 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001687/0.1306, allocations: 0.6481 MB / 0.6408 GB, free: 6.121 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002489/0.1308, allocations: 55.84 kB / 0.6409 GB, free: 6.066 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.014e-05/0.1309, allocations: 0 / 0.6409 GB, free: 6.066 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 1.263e-05/0.1309, allocations: 0 / 0.6409 GB, free: 6.066 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 4.499e-06/0.1309, allocations: 0 / 0.6409 GB, free: 6.066 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000163/0.1311, allocations: 4 kB / 0.6409 GB, free: 6.062 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 4.049e-05/0.1311, allocations: 8 kB / 0.6409 GB, free: 6.055 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.628e-05/0.1311, allocations: 0 / 0.6409 GB, free: 6.055 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.258e-05/0.1312, allocations: 0 / 0.6409 GB, free: 6.055 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.294e-05/0.1312, allocations: 3.984 kB / 0.6409 GB, free: 6.051 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.225e-05/0.1312, allocations: 11.88 kB / 0.6409 GB, free: 6.039 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.845e-05/0.1313, allocations: 8 kB / 0.6409 GB, free: 6.031 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 1.113e-05/0.1313, allocations: 7.984 kB / 0.6409 GB, free: 6.023 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 1.519e-05/0.1313, allocations: 0 / 0.6409 GB, free: 6.023 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 6.526e-05/0.1314, allocations: 7.984 kB / 0.6409 GB, free: 6.016 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1314, allocations: 0 / 0.6409 GB, free: 6.016 MB / 442.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.1314, allocations: 0 / 0.6409 GB, free: 6.016 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.805e-06/0.1314, allocations: 0 / 0.6409 GB, free: 6.016 MB / 442.7 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.0002909/0.1317, allocations: 315.6 kB / 0.6412 GB, free: 5.656 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.1317, allocations: 12.03 kB / 0.6412 GB, free: 5.645 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.41e-05/0.1318, allocations: 4.922 kB / 0.6412 GB, free: 5.641 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.746e-05/0.1319, allocations: 164.4 kB / 0.6414 GB, free: 5.441 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.1319, allocations: 384 / 0.6414 GB, free: 5.441 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-06/0.1319, allocations: 384 / 0.6414 GB, free: 5.441 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.51e-05/0.132, allocations: 30.27 kB / 0.6414 GB, free: 5.406 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.132, allocations: 4.172 kB / 0.6414 GB, free: 5.402 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.132, allocations: 7.875 kB / 0.6414 GB, free: 5.395 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.132, allocations: 0 / 0.6414 GB, free: 5.395 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.517e-05/0.1321, allocations: 15.92 kB / 0.6414 GB, free: 5.379 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001368/0.1322, allocations: 149.6 kB / 0.6416 GB, free: 5.184 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.754e-05/0.1323, allocations: 34.59 kB / 0.6416 GB, free: 5.141 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.709e-05/0.1323, allocations: 4.859 kB / 0.6416 GB, free: 5.133 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001891/0.1325, allocations: 81.17 kB / 0.6417 GB, free: 5.035 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.1325, allocations: 34.5 kB / 0.6417 GB, free: 4.992 MB / 442.7 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.1325, allocations: 4 kB / 0.6417 GB, free: 4.988 MB / 442.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001381/0.1327, allocations: 49.56 kB / 0.6418 GB, free: 4.934 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.1327, allocations: 55.53 kB / 0.6418 GB, free: 4.867 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.549e-05/0.1328, allocations: 89.86 kB / 0.6419 GB, free: 4.77 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.048e-05/0.1328, allocations: 25.7 kB / 0.6419 GB, free: 4.738 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.268e-05/0.1328, allocations: 80.14 kB / 0.642 GB, free: 4.656 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.8e-05/0.1328, allocations: 0 / 0.642 GB, free: 4.656 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.386e-05/0.1329, allocations: 17.72 kB / 0.642 GB, free: 4.633 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.898e-05/0.133, allocations: 314.8 kB / 0.6423 GB, free: 4.316 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.137e-05/0.133, allocations: 4 kB / 0.6423 GB, free: 4.312 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.793e-06/0.133, allocations: 4 kB / 0.6423 GB, free: 4.309 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.081e-05/0.133, allocations: 16.86 kB / 0.6424 GB, free: 4.289 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.133, allocations: 0 / 0.6424 GB, free: 4.289 MB / 442.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.646e-05/0.1331, allocations: 41.62 kB / 0.6424 GB, free: 4.242 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.1331, allocations: 4 kB / 0.6424 GB, free: 4.238 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.1331, allocations: 0 / 0.6424 GB, free: 4.238 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.1331, allocations: 3.938 kB / 0.6424 GB, free: 4.234 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.394e-05/0.1332, allocations: 8 kB / 0.6424 GB, free: 4.227 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.1332, allocations: 96 / 0.6424 GB, free: 4.227 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.241e-05/0.1332, allocations: 4 kB / 0.6424 GB, free: 4.223 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.677e-06/0.1332, allocations: 0 / 0.6424 GB, free: 4.223 MB / 442.7 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.481e-05/0.1333, allocations: 111.2 kB / 0.6425 GB, free: 4.105 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.482e-06/0.1333, allocations: 0 / 0.6425 GB, free: 4.105 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.059e-05/0.1334, allocations: 52.97 kB / 0.6426 GB, free: 4.047 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.1334, allocations: 0 / 0.6426 GB, free: 4.047 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1334, allocations: 0 / 0.6426 GB, free: 4.047 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.1334, allocations: 0 / 0.6426 GB, free: 4.047 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.129e-05/0.1335, allocations: 165.5 kB / 0.6427 GB, free: 3.836 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1335, allocations: 3.938 kB / 0.6427 GB, free: 3.832 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.075e-05/0.1336, allocations: 4 kB / 0.6427 GB, free: 3.828 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.1336, allocations: 4 kB / 0.6427 GB, free: 3.824 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.1336, allocations: 3.938 kB / 0.6428 GB, free: 3.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1336, allocations: 0 / 0.6428 GB, free: 3.82 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1336, allocations: 0 / 0.6428 GB, free: 3.82 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002562/0.1339, allocations: 0.6123 MB / 0.6434 GB, free: 3.148 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.846e-05/0.1339, allocations: 81.11 kB / 0.6434 GB, free: 3.051 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.578e-06/0.1339, allocations: 0 / 0.6434 GB, free: 3.051 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.017e-05/0.1339, allocations: 0 / 0.6434 GB, free: 3.051 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.42e-05/0.1339, allocations: 0 / 0.6434 GB, free: 3.051 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.134, allocations: 8 kB / 0.6434 GB, free: 3.043 MB / 442.7 MB Notification: Performance of sorting global known variables: time 2.5e-05/0.134, allocations: 75.28 kB / 0.6435 GB, free: 2.969 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.134, allocations: 3.938 kB / 0.6435 GB, free: 2.965 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0002985/0.1343, allocations: 7.984 kB / 0.6435 GB, free: 2.957 MB / 442.7 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.000121/0.1344, allocations: 103.2 kB / 0.6436 GB, free: 2.848 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 6.114e-05/0.1345, allocations: 7.938 kB / 0.6436 GB, free: 2.84 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1345, allocations: 0 / 0.6436 GB, free: 2.84 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 1.43e-05/0.1345, allocations: 4 kB / 0.6436 GB, free: 2.836 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001234/0.1346, allocations: 16.86 kB / 0.6436 GB, free: 2.82 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001995/0.1349, allocations: 185.5 kB / 0.6438 GB, free: 2.602 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001857/0.135, allocations: 0.677 MB / 0.6445 GB, free: 1.898 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 1.545e-05/0.1351, allocations: 0 / 0.6445 GB, free: 1.898 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.196e-05/0.1351, allocations: 7.438 kB / 0.6445 GB, free: 1.891 MB / 442.7 MB Notification: Performance of SimCode: time 2e-07/0.1351, allocations: 0 / 0.6445 GB, free: 1.891 MB / 442.7 MB Notification: Performance of Templates: time 0.001851/0.1369, allocations: 321.9 kB / 0.6448 GB, free: 1.578 MB / 442.7 MB make -j1 -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & ./IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)