Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 182.2 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.7159/0.7159, allocations: 133.3 MB / 150.1 MB, free: 11.16 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.426/1.426, allocations: 222.9 MB / 404.7 MB, free: 6.027 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.0009819/0.0009818, allocations: 103.6 kB / 485.9 MB, free: 7.156 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001033/0.001033, allocations: 55.92 kB / 0.5636 GB, free: 69.92 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1499, allocations: 80.43 MB / 0.6421 GB, free: 5.426 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.003171/0.1531, allocations: 1.559 MB / 0.6437 GB, free: 3.848 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003722/0.1535, allocations: 129.8 kB / 0.6438 GB, free: 3.719 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.386e-05/0.1535, allocations: 0 / 0.6438 GB, free: 3.719 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 2.962e-05/0.1536, allocations: 4 kB / 0.6438 GB, free: 3.715 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 3.724e-05/0.1536, allocations: 0 / 0.6438 GB, free: 3.715 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001781/0.1538, allocations: 23.92 kB / 0.6438 GB, free: 3.691 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 5.912e-05/0.1539, allocations: 27.92 kB / 0.6438 GB, free: 3.664 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.154, allocations: 11.98 kB / 0.6439 GB, free: 3.652 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.588e-05/0.154, allocations: 4 kB / 0.6439 GB, free: 3.648 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.801e-05/0.1541, allocations: 19.91 kB / 0.6439 GB, free: 3.629 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.196e-05/0.1541, allocations: 0 / 0.6439 GB, free: 3.629 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.064e-05/0.1542, allocations: 12 kB / 0.6439 GB, free: 3.617 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 1.645e-05/0.1542, allocations: 11.98 kB / 0.6439 GB, free: 3.605 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 2.51e-05/0.1542, allocations: 7.938 kB / 0.6439 GB, free: 3.598 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001133/0.1543, allocations: 39.88 kB / 0.6439 GB, free: 3.559 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1543, allocations: 3.938 kB / 0.6439 GB, free: 3.555 MB / 442.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1544, allocations: 0 / 0.6439 GB, free: 3.555 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.1544, allocations: 0 / 0.6439 GB, free: 3.555 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004746/0.1548, allocations: 343.7 kB / 0.6443 GB, free: 3.168 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.1549, allocations: 8.031 kB / 0.6443 GB, free: 3.16 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.626e-05/0.1549, allocations: 8.844 kB / 0.6443 GB, free: 3.152 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.1551, allocations: 168.4 kB / 0.6445 GB, free: 2.949 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.1551, allocations: 8.375 kB / 0.6445 GB, free: 2.941 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.009e-05/0.1551, allocations: 384 / 0.6445 GB, free: 2.941 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001816/0.1553, allocations: 58.22 kB / 0.6445 GB, free: 2.879 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.1553, allocations: 192 / 0.6445 GB, free: 2.879 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.1553, allocations: 15.81 kB / 0.6445 GB, free: 2.863 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.1553, allocations: 0 / 0.6445 GB, free: 2.863 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001799/0.1555, allocations: 47.89 kB / 0.6446 GB, free: 2.816 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003367/0.1559, allocations: 261 kB / 0.6448 GB, free: 2.512 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002994/0.1562, allocations: 58.48 kB / 0.6449 GB, free: 2.445 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.571e-05/0.1563, allocations: 28.89 kB / 0.6449 GB, free: 2.414 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001112/0.1564, allocations: 81.11 kB / 0.645 GB, free: 2.316 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.046e-05/0.1564, allocations: 34.56 kB / 0.645 GB, free: 2.273 MB / 442.7 MB Notification: Performance of pre-optimization done (n=3): time 2.705e-06/0.1565, allocations: 0 / 0.645 GB, free: 2.273 MB / 442.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003604/0.1568, allocations: 97.56 kB / 0.6451 GB, free: 2.172 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/0.1569, allocations: 51.41 kB / 0.6452 GB, free: 2.109 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.847e-05/0.1569, allocations: 105.8 kB / 0.6453 GB, free: 1.996 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.148e-05/0.157, allocations: 29.7 kB / 0.6453 GB, free: 1.961 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.634e-05/0.157, allocations: 84.14 kB / 0.6454 GB, free: 1.875 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.157, allocations: 11.84 kB / 0.6454 GB, free: 1.863 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-05/0.1571, allocations: 17.7 kB / 0.6454 GB, free: 1.84 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.911e-05/0.1572, allocations: 310.8 kB / 0.6457 GB, free: 1.527 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.79e-05/0.1573, allocations: 19.98 kB / 0.6457 GB, free: 1.508 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.92e-05/0.1574, allocations: 23.97 kB / 0.6457 GB, free: 1.484 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000166/0.1575, allocations: 48.77 kB / 0.6458 GB, free: 1.434 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.1575, allocations: 3.938 kB / 0.6458 GB, free: 1.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002025/0.1578, allocations: 73.64 kB / 0.6459 GB, free: 1.352 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.1578, allocations: 4 kB / 0.6459 GB, free: 1.348 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.1578, allocations: 0 / 0.6459 GB, free: 1.348 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.1578, allocations: 0 / 0.6459 GB, free: 1.348 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.621e-05/0.1579, allocations: 15.98 kB / 0.6459 GB, free: 1.332 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.1579, allocations: 0 / 0.6459 GB, free: 1.332 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.158, allocations: 11.98 kB / 0.6459 GB, free: 1.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.158, allocations: 0 / 0.6459 GB, free: 1.32 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 (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.14e-05/0.1581, allocations: 113.8 kB / 0.646 GB, free: 1.199 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.37e-05/0.1581, allocations: 0 / 0.646 GB, free: 1.199 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002557/0.1584, allocations: 89.59 kB / 0.6461 GB, free: 1.102 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1584, allocations: 48 / 0.6461 GB, free: 1.102 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.1584, allocations: 3.984 kB / 0.6461 GB, free: 1.098 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1584, allocations: 3.938 kB / 0.6461 GB, free: 1.094 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001503/0.1586, allocations: 177.5 kB / 0.6463 GB, free: 0.8711 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1586, allocations: 0 / 0.6463 GB, free: 0.8711 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.243e-05/0.1587, allocations: 11.98 kB / 0.6463 GB, free: 0.8594 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.1587, allocations: 0 / 0.6463 GB, free: 0.8594 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.1587, allocations: 0 / 0.6463 GB, free: 0.8594 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1587, allocations: 0 / 0.6463 GB, free: 0.8594 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1587, allocations: 0 / 0.6463 GB, free: 0.8594 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005292/0.1592, allocations: 0.7434 MB / 0.647 GB, free: 60 kB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/0.1593, allocations: 77.11 kB / 0.6471 GB, free: 15.96 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.1593, allocations: 8 kB / 0.6471 GB, free: 15.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.287e-05/0.1594, allocations: 7.984 kB / 0.6471 GB, free: 15.95 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.587e-05/0.1595, allocations: 7.938 kB / 0.6471 GB, free: 15.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-06/0.1595, allocations: 0 / 0.6471 GB, free: 15.94 MB / 458.7 MB Notification: Performance of sorting global known variables: time 3.414e-05/0.1595, allocations: 91.2 kB / 0.6472 GB, free: 15.85 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1595, allocations: 0 / 0.6472 GB, free: 15.85 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003067/0.1598, allocations: 8 kB / 0.6472 GB, free: 15.84 MB / 458.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.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.0001412/0.16, allocations: 99.25 kB / 0.6473 GB, free: 15.74 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0002129/0.1602, allocations: 47.95 kB / 0.6473 GB, free: 15.69 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1602, allocations: 0 / 0.6473 GB, free: 15.69 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 9.643e-05/0.1603, allocations: 27.97 kB / 0.6474 GB, free: 15.66 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002486/0.1606, allocations: 2.109 kB / 0.6474 GB, free: 15.66 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000326/0.1609, allocations: 234 kB / 0.6476 GB, free: 15.4 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002255/0.1611, allocations: 0.6809 MB / 0.6482 GB, free: 14.69 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 2.906e-05/0.1612, allocations: 4 kB / 0.6482 GB, free: 14.69 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.279e-05/0.1612, allocations: 7.438 kB / 0.6483 GB, free: 14.68 MB / 458.7 MB Notification: Performance of SimCode: time 1.91e-07/0.1612, allocations: 0 / 0.6483 GB, free: 14.68 MB / 458.7 MB Notification: Performance of Templates: time 0.002334/0.1635, allocations: 0.633 MB / 0.6489 GB, free: 14.05 MB / 458.7 MB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)