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.001338/0.001338, allocations: 110.4 kB / 16.41 MB, free: 6.5 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.001296/0.001296, allocations: 183 kB / 17.34 MB, free: 5.762 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.424/1.424, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8672/0.8672, allocations: 135.2 MB / 426.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 66.81 kB / 0.5864 GB, free: 21.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1582, allocations: 80.93 MB / 0.6654 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001699/0.1599, allocations: 0.572 MB / 0.666 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002628/0.1601, allocations: 50.45 kB / 0.666 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.887e-05/0.1601, allocations: 0 / 0.666 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.172e-05/0.1602, allocations: 0 / 0.666 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.149e-06/0.1602, allocations: 0 / 0.666 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002103/0.1604, allocations: 15.92 kB / 0.666 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.929e-05/0.1604, allocations: 7.984 kB / 0.666 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.399e-05/0.1605, allocations: 0 / 0.666 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.549e-05/0.1605, allocations: 7.938 kB / 0.666 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.424e-05/0.1605, allocations: 11.94 kB / 0.666 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.015e-05/0.1605, allocations: 0 / 0.666 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.783e-05/0.1606, allocations: 4 kB / 0.666 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.406e-06/0.1606, allocations: 0 / 0.666 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.312e-05/0.1606, allocations: 7.984 kB / 0.6661 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.364e-05/0.1607, allocations: 7.984 kB / 0.6661 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1607, allocations: 0 / 0.6661 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.372e-06/0.1607, allocations: 0 / 0.6661 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.928e-06/0.1607, allocations: 7.938 kB / 0.6661 GB, free: 5.016 MB / 0.4981 GB 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.0003846/0.1611, allocations: 323.5 kB / 0.6664 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.1611, allocations: 9.109 kB / 0.6664 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.777e-05/0.1612, allocations: 0.9375 kB / 0.6664 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.1613, allocations: 160.4 kB / 0.6665 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.167e-06/0.1613, allocations: 384 / 0.6665 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.1613, allocations: 4.375 kB / 0.6665 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001119/0.1614, allocations: 34.19 kB / 0.6666 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.1614, allocations: 4.188 kB / 0.6666 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.1614, allocations: 3.938 kB / 0.6666 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.1614, allocations: 4 kB / 0.6666 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.415e-05/0.1615, allocations: 8 kB / 0.6666 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001633/0.1616, allocations: 149.7 kB / 0.6667 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 6.277e-05/0.1617, allocations: 22.61 kB / 0.6668 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.257e-05/0.1617, allocations: 9.266 kB / 0.6668 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001865/0.1619, allocations: 81.09 kB / 0.6669 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.1619, allocations: 38.5 kB / 0.6669 GB, free: 4 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.1619, allocations: 4 kB / 0.6669 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001467/0.1621, allocations: 41.64 kB / 0.6669 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.1621, allocations: 51.41 kB / 0.667 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.09e-05/0.1622, allocations: 89.86 kB / 0.6671 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.1622, allocations: 25.7 kB / 0.6671 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.637e-05/0.1622, allocations: 80.14 kB / 0.6672 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.904e-05/0.1623, allocations: 11.94 kB / 0.6672 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.014e-05/0.1623, allocations: 13.72 kB / 0.6672 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.1625, allocations: 319 kB / 0.6675 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.167e-05/0.1625, allocations: 0 / 0.6675 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.294e-06/0.1625, allocations: 0 / 0.6675 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.934e-05/0.1625, allocations: 24.8 kB / 0.6675 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1625, allocations: 0 / 0.6675 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.274e-05/0.1626, allocations: 37.69 kB / 0.6676 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.1626, allocations: 4 kB / 0.6676 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.1626, allocations: 0 / 0.6676 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.1626, allocations: 8.031 kB / 0.6676 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.466e-05/0.1627, allocations: 11.88 kB / 0.6676 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.1627, allocations: 0 / 0.6676 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.245e-05/0.1627, allocations: 0 / 0.6676 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.1627, allocations: 7.984 kB / 0.6676 GB, free: 3.223 MB / 0.4981 GB 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.618e-05/0.1628, allocations: 109.8 kB / 0.6677 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.753e-06/0.1628, allocations: 0 / 0.6677 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.96e-05/0.1629, allocations: 52.69 kB / 0.6677 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.1629, allocations: 4.031 kB / 0.6677 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1629, allocations: 0 / 0.6677 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.1629, allocations: 0 / 0.6677 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002221/0.1631, allocations: 145.7 kB / 0.6679 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1631, allocations: 0 / 0.6679 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.315e-05/0.1631, allocations: 4 kB / 0.6679 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.1631, allocations: 3.984 kB / 0.6679 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.1631, allocations: 3.938 kB / 0.6679 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1631, allocations: 0 / 0.6679 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1631, allocations: 0 / 0.6679 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001433/0.1633, allocations: 65.08 kB / 0.668 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.52e-05/0.1633, allocations: 85.09 kB / 0.668 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.54e-05/0.1633, allocations: 7.938 kB / 0.668 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.226e-05/0.1634, allocations: 3.984 kB / 0.668 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.726e-05/0.1634, allocations: 4 kB / 0.6681 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.1634, allocations: 4 kB / 0.6681 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.248e-05/0.1634, allocations: 75.28 kB / 0.6681 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.1634, allocations: 0 / 0.6681 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001856/0.1636, allocations: 8.031 kB / 0.6681 GB, free: 2.551 MB / 0.4981 GB 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.0001597/0.1638, allocations: 107.2 kB / 0.6682 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.309e-05/0.1638, allocations: 4 kB / 0.6682 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1638, allocations: 0 / 0.6682 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.791e-05/0.1639, allocations: 11.94 kB / 0.6683 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001283/0.164, allocations: 5.719 kB / 0.6683 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002171/0.1642, allocations: 122.6 kB / 0.6684 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/0.1645, allocations: 0.669 MB / 0.669 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.912e-05/0.1645, allocations: 15.38 kB / 0.669 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of SimCode: time 2.81e-07/0.1645, allocations: 0 / 0.669 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of Templates: time 0.001992/0.1665, allocations: 455.7 kB / 0.6695 GB, free: 1.105 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)