Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/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-master/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_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.001115/0.001115, allocations: 182.6 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-master/package.mo): time 0.8087/0.8087, allocations: 133.3 MB / 150.1 MB, free: 11.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.561/1.561, allocations: 222.9 MB / 404.7 MB, free: 6.082 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.001041/0.001041, allocations: 103.5 kB / 485.9 MB, free: 7.234 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009972/0.0009974, allocations: 47.92 kB / 0.5636 GB, free: 69.9 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1577, allocations: 80.43 MB / 0.6422 GB, free: 5.398 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.002165/0.16, allocations: 0.6348 MB / 0.6428 GB, free: 4.754 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002755/0.1603, allocations: 47.86 kB / 0.6428 GB, free: 4.707 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.057e-06/0.1603, allocations: 4 kB / 0.6428 GB, free: 4.703 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 1.353e-05/0.1603, allocations: 0 / 0.6428 GB, free: 4.703 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 4.86e-06/0.1603, allocations: 0 / 0.6428 GB, free: 4.703 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001763/0.1605, allocations: 7.938 kB / 0.6428 GB, free: 4.695 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 3.935e-05/0.1606, allocations: 11.98 kB / 0.6428 GB, free: 4.684 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.867e-05/0.1606, allocations: 3.984 kB / 0.6428 GB, free: 4.68 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.501e-05/0.1606, allocations: 4 kB / 0.6428 GB, free: 4.676 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2e-05/0.1607, allocations: 4 kB / 0.6429 GB, free: 4.672 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 8.896e-06/0.1607, allocations: 0 / 0.6429 GB, free: 4.672 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.506e-05/0.1607, allocations: 4 kB / 0.6429 GB, free: 4.668 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 9.077e-06/0.1608, allocations: 3.938 kB / 0.6429 GB, free: 4.664 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 1.621e-05/0.1608, allocations: 0 / 0.6429 GB, free: 4.664 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 7.304e-05/0.1609, allocations: 15.97 kB / 0.6429 GB, free: 4.648 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1609, allocations: 0 / 0.6429 GB, free: 4.648 MB / 442.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.1609, allocations: 8 kB / 0.6429 GB, free: 4.641 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.646e-06/0.1609, allocations: 0 / 0.6429 GB, free: 4.641 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.000285/0.1612, allocations: 315.6 kB / 0.6432 GB, free: 4.281 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.1612, allocations: 8.031 kB / 0.6432 GB, free: 4.273 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.363e-05/0.1613, allocations: 0.9375 kB / 0.6432 GB, free: 4.273 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.1614, allocations: 164.4 kB / 0.6433 GB, free: 4.074 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.1614, allocations: 4.375 kB / 0.6434 GB, free: 4.07 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.877e-06/0.1614, allocations: 384 / 0.6434 GB, free: 4.07 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001007/0.1615, allocations: 34.25 kB / 0.6434 GB, free: 4.031 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.1615, allocations: 4.188 kB / 0.6434 GB, free: 4.027 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.1615, allocations: 7.875 kB / 0.6434 GB, free: 4.02 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.1616, allocations: 0 / 0.6434 GB, free: 4.02 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.301e-05/0.1616, allocations: 7.938 kB / 0.6434 GB, free: 4.012 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001554/0.1618, allocations: 149.6 kB / 0.6435 GB, free: 3.816 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.061e-05/0.1618, allocations: 22.59 kB / 0.6436 GB, free: 3.785 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.392e-05/0.1618, allocations: 16.92 kB / 0.6436 GB, free: 3.766 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001879/0.162, allocations: 85.11 kB / 0.6437 GB, free: 3.664 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.1621, allocations: 30.56 kB / 0.6437 GB, free: 3.625 MB / 442.7 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.1621, allocations: 3.938 kB / 0.6437 GB, free: 3.621 MB / 442.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001417/0.1622, allocations: 49.56 kB / 0.6437 GB, free: 3.566 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/0.1623, allocations: 51.41 kB / 0.6438 GB, free: 3.504 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.206e-05/0.1623, allocations: 89.86 kB / 0.6439 GB, free: 3.406 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.171e-05/0.1623, allocations: 29.7 kB / 0.6439 GB, free: 3.371 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.693e-05/0.1624, allocations: 80.14 kB / 0.644 GB, free: 3.289 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.77e-05/0.1624, allocations: 4.125 kB / 0.644 GB, free: 3.285 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.729e-05/0.1624, allocations: 21.7 kB / 0.644 GB, free: 3.258 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.1625, allocations: 310.8 kB / 0.6443 GB, free: 2.945 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.356e-05/0.1626, allocations: 4 kB / 0.6443 GB, free: 2.941 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.235e-06/0.1626, allocations: 4 kB / 0.6443 GB, free: 2.938 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.855e-05/0.1626, allocations: 16.8 kB / 0.6443 GB, free: 2.918 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1626, allocations: 0 / 0.6443 GB, free: 2.918 MB / 442.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.432e-05/0.1627, allocations: 41.75 kB / 0.6444 GB, free: 2.871 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/0.1627, allocations: 4 kB / 0.6444 GB, free: 2.867 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.1627, allocations: 0 / 0.6444 GB, free: 2.867 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.1627, allocations: 7.938 kB / 0.6444 GB, free: 2.859 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.041e-05/0.1628, allocations: 0 / 0.6444 GB, free: 2.859 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.1628, allocations: 0 / 0.6444 GB, free: 2.859 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.283e-05/0.1628, allocations: 4 kB / 0.6444 GB, free: 2.855 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.529e-06/0.1628, allocations: 0 / 0.6444 GB, free: 2.855 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 7.008e-05/0.1629, allocations: 109.8 kB / 0.6445 GB, free: 2.738 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.783e-06/0.1629, allocations: 4.031 kB / 0.6445 GB, free: 2.734 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.038e-05/0.163, allocations: 52.97 kB / 0.6445 GB, free: 2.68 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.163, allocations: 0 / 0.6445 GB, free: 2.68 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.163, allocations: 0 / 0.6445 GB, free: 2.68 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.163, allocations: 7.984 kB / 0.6446 GB, free: 2.672 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.192e-05/0.1631, allocations: 153.5 kB / 0.6447 GB, free: 2.473 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.1631, allocations: 0 / 0.6447 GB, free: 2.473 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.191e-05/0.1632, allocations: 4 kB / 0.6447 GB, free: 2.469 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.1632, allocations: 3.938 kB / 0.6447 GB, free: 2.465 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.1632, allocations: 3.938 kB / 0.6447 GB, free: 2.461 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.1632, allocations: 4.031 kB / 0.6447 GB, free: 2.457 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1632, allocations: 0 / 0.6447 GB, free: 2.457 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003355/0.1635, allocations: 0.6123 MB / 0.6453 GB, free: 1.785 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.932e-05/0.1636, allocations: 77.11 kB / 0.6454 GB, free: 1.691 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.013e-05/0.1636, allocations: 0 / 0.6454 GB, free: 1.691 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.083e-05/0.1636, allocations: 32 / 0.6454 GB, free: 1.691 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.784e-05/0.1636, allocations: 11.98 kB / 0.6454 GB, free: 1.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.1636, allocations: 0 / 0.6454 GB, free: 1.68 MB / 442.7 MB Notification: Performance of sorting global known variables: time 3.204e-05/0.1637, allocations: 75.28 kB / 0.6455 GB, free: 1.605 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1637, allocations: 0 / 0.6455 GB, free: 1.605 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0002935/0.164, allocations: 7.938 kB / 0.6455 GB, free: 1.598 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.0001454/0.1641, allocations: 107.2 kB / 0.6456 GB, free: 1.484 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 6.18e-05/0.1642, allocations: 8 kB / 0.6456 GB, free: 1.477 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1642, allocations: 4.062 kB / 0.6456 GB, free: 1.473 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 1.896e-05/0.1642, allocations: 7.984 kB / 0.6456 GB, free: 1.465 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001224/0.1644, allocations: 3.938 kB / 0.6456 GB, free: 1.461 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002727/0.1646, allocations: 189.4 kB / 0.6458 GB, free: 1.238 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002488/0.1649, allocations: 0.6692 MB / 0.6464 GB, free: 0.543 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 1.652e-05/0.1649, allocations: 8 kB / 0.6464 GB, free: 0.5352 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.381e-05/0.1649, allocations: 11.44 kB / 0.6465 GB, free: 0.5234 MB / 442.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1649, allocations: 0 / 0.6465 GB, free: 0.5234 MB / 442.7 MB Notification: Performance of Templates: time 0.001934/0.1669, allocations: 315.7 kB / 0.6468 GB, free: 224 kB / 442.7 MB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)