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/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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00151/0.00151, allocations: 191.7 kB / 16.25 MB, free: 6.629 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.34/1.34, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9283/0.9283, allocations: 135.6 MB / 425.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 72.31 kB / 0.5054 GB, free: 5.176 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1565/0.1584, allocations: 81.02 MB / 0.5845 GB, free: 4.297 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001707/0.1601, allocations: 0.6426 MB / 0.5851 GB, free: 3.645 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000225/0.1603, allocations: 43.86 kB / 0.5852 GB, free: 3.602 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.449e-05/0.1604, allocations: 4 kB / 0.5852 GB, free: 3.598 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.153e-05/0.1604, allocations: 0 / 0.5852 GB, free: 3.598 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.489e-06/0.1604, allocations: 0 / 0.5852 GB, free: 3.598 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001963/0.1606, allocations: 11.98 kB / 0.5852 GB, free: 3.586 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.176e-05/0.1606, allocations: 0 / 0.5852 GB, free: 3.586 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.203e-05/0.1607, allocations: 4 kB / 0.5852 GB, free: 3.582 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.226e-05/0.1607, allocations: 3.938 kB / 0.5852 GB, free: 3.578 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.982e-05/0.1607, allocations: 3.984 kB / 0.5852 GB, free: 3.574 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.498e-06/0.1607, allocations: 4 kB / 0.5852 GB, free: 3.57 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.349e-05/0.1608, allocations: 15.92 kB / 0.5852 GB, free: 3.555 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.206e-05/0.1608, allocations: 4 kB / 0.5852 GB, free: 3.551 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.861e-05/0.1609, allocations: 0 / 0.5852 GB, free: 3.551 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.267e-05/0.1609, allocations: 8 kB / 0.5852 GB, free: 3.543 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1609, allocations: 0 / 0.5852 GB, free: 3.543 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.161, allocations: 0 / 0.5852 GB, free: 3.543 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.161, allocations: 0 / 0.5852 GB, free: 3.543 MB / 494.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.0003109/0.1613, allocations: 315.6 kB / 0.5855 GB, free: 3.184 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.1613, allocations: 8.031 kB / 0.5855 GB, free: 3.176 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.588e-05/0.1613, allocations: 8.938 kB / 0.5855 GB, free: 3.168 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.1615, allocations: 164.4 kB / 0.5857 GB, free: 2.969 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.548e-06/0.1615, allocations: 4.359 kB / 0.5857 GB, free: 2.965 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.096e-05/0.1615, allocations: 384 / 0.5857 GB, free: 2.965 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.099e-05/0.1616, allocations: 34.25 kB / 0.5857 GB, free: 2.926 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.1616, allocations: 192 / 0.5857 GB, free: 2.926 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.1616, allocations: 3.938 kB / 0.5857 GB, free: 2.922 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.1616, allocations: 3.938 kB / 0.5857 GB, free: 2.918 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.987e-05/0.1617, allocations: 7.938 kB / 0.5858 GB, free: 2.91 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001925/0.1619, allocations: 153.7 kB / 0.5859 GB, free: 2.711 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.765e-05/0.1619, allocations: 22.61 kB / 0.5859 GB, free: 2.68 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.054e-05/0.1619, allocations: 8.859 kB / 0.5859 GB, free: 2.668 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001637/0.1621, allocations: 89.14 kB / 0.586 GB, free: 2.562 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.58e-05/0.1622, allocations: 30.56 kB / 0.586 GB, free: 2.523 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.1622, allocations: 0 / 0.586 GB, free: 2.523 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001332/0.1623, allocations: 53.58 kB / 0.5861 GB, free: 2.465 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.1623, allocations: 59.33 kB / 0.5862 GB, free: 2.395 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.028e-05/0.1624, allocations: 97.77 kB / 0.5862 GB, free: 2.289 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.1624, allocations: 25.7 kB / 0.5863 GB, free: 2.258 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.208e-05/0.1625, allocations: 80.14 kB / 0.5863 GB, free: 2.176 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.793e-05/0.1625, allocations: 0 / 0.5863 GB, free: 2.176 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.01e-05/0.1625, allocations: 17.72 kB / 0.5864 GB, free: 2.152 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1627, allocations: 310.8 kB / 0.5867 GB, free: 1.84 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.441e-05/0.1627, allocations: 8.125 kB / 0.5867 GB, free: 1.832 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.492e-06/0.1627, allocations: 0 / 0.5867 GB, free: 1.832 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.107e-05/0.1627, allocations: 16.84 kB / 0.5867 GB, free: 1.812 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1627, allocations: 4 kB / 0.5867 GB, free: 1.809 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.725e-05/0.1628, allocations: 37.64 kB / 0.5867 GB, free: 1.766 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.1628, allocations: 8 kB / 0.5867 GB, free: 1.758 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.1628, allocations: 0 / 0.5867 GB, free: 1.758 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.1628, allocations: 3.938 kB / 0.5867 GB, free: 1.754 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.085e-05/0.1629, allocations: 7.984 kB / 0.5867 GB, free: 1.746 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.1629, allocations: 4.094 kB / 0.5867 GB, free: 1.742 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.306e-05/0.1629, allocations: 0 / 0.5867 GB, free: 1.742 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.396e-06/0.1629, allocations: 0 / 0.5867 GB, free: 1.742 MB / 494.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 8.142e-05/0.163, allocations: 113.8 kB / 0.5869 GB, free: 1.621 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.172e-06/0.163, allocations: 0 / 0.5869 GB, free: 1.621 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.727e-05/0.1631, allocations: 52.97 kB / 0.5869 GB, free: 1.562 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.1631, allocations: 0 / 0.5869 GB, free: 1.562 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1631, allocations: 0 / 0.5869 GB, free: 1.562 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.1631, allocations: 4.031 kB / 0.5869 GB, free: 1.559 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001076/0.1633, allocations: 145.6 kB / 0.587 GB, free: 1.367 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.1633, allocations: 3.984 kB / 0.5871 GB, free: 1.363 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.82e-05/0.1633, allocations: 7.938 kB / 0.5871 GB, free: 1.355 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-06/0.1633, allocations: 0 / 0.5871 GB, free: 1.355 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.976e-06/0.1633, allocations: 7.938 kB / 0.5871 GB, free: 1.348 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1633, allocations: 0 / 0.5871 GB, free: 1.348 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.1633, allocations: 0 / 0.5871 GB, free: 1.348 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.405e-05/0.1634, allocations: 65.12 kB / 0.5871 GB, free: 1.266 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.903e-05/0.1634, allocations: 81.02 kB / 0.5872 GB, free: 1.168 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.066e-05/0.1635, allocations: 3.938 kB / 0.5872 GB, free: 1.164 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.189e-05/0.1635, allocations: 0 / 0.5872 GB, free: 1.164 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.238e-05/0.1635, allocations: 7.938 kB / 0.5872 GB, free: 1.156 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.047e-06/0.1635, allocations: 4 kB / 0.5872 GB, free: 1.152 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.967e-05/0.1635, allocations: 75.28 kB / 0.5873 GB, free: 1.078 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1635, allocations: 0 / 0.5873 GB, free: 1.078 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001883/0.1637, allocations: 4 kB / 0.5873 GB, free: 1.074 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,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.0001539/0.1639, allocations: 107.3 kB / 0.5874 GB, free: 0.957 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 7.03e-05/0.164, allocations: 11.94 kB / 0.5874 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.164, allocations: 0 / 0.5874 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.426e-05/0.164, allocations: 8 kB / 0.5874 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00012/0.1641, allocations: 6.328 kB / 0.5874 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001724/0.1643, allocations: 86.56 kB / 0.5875 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.1646, allocations: 0.673 MB / 0.5882 GB, free: 128 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.307e-05/0.1646, allocations: 8 kB / 0.5882 GB, free: 120 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.89e-05/0.1647, allocations: 19.42 kB / 0.5882 GB, free: 100 kB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1647, allocations: 0 / 0.5882 GB, free: 100 kB / 494.1 MB Notification: Performance of Templates: time 0.002252/0.1669, allocations: 314.8 kB / 0.5885 GB, free: 15.79 MB / 0.4981 GB 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)