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.001386/0.001386, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001282/0.001282, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.384/1.384, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8052/0.8052, allocations: 135.1 MB / 426.3 MB, free: 4.137 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 64.88 kB / 0.5863 GB, free: 21.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1542/0.1554, allocations: 80.93 MB / 0.6653 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001944/0.1574, allocations: 0.5682 MB / 0.6659 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002951/0.1577, allocations: 58.42 kB / 0.666 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.265e-05/0.1578, allocations: 0 / 0.666 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.446e-05/0.1578, allocations: 0 / 0.666 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.516e-06/0.1578, allocations: 0 / 0.666 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002537/0.1581, allocations: 11.94 kB / 0.666 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.281e-05/0.1582, allocations: 4 kB / 0.666 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 6.045e-05/0.1582, allocations: 7.984 kB / 0.666 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.774e-05/0.1583, allocations: 3.938 kB / 0.666 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.162e-05/0.1583, allocations: 0 / 0.666 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.015e-05/0.1583, allocations: 0 / 0.666 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.696e-05/0.1584, allocations: 8 kB / 0.666 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.13e-05/0.1584, allocations: 7.984 kB / 0.666 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.974e-05/0.1584, allocations: 0 / 0.666 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.793e-05/0.1585, allocations: 7.984 kB / 0.666 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1585, allocations: 7.938 kB / 0.666 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.567e-06/0.1586, allocations: 4 kB / 0.666 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.248e-06/0.1586, allocations: 3.938 kB / 0.666 GB, free: 5.07 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.000319/0.1589, allocations: 319.5 kB / 0.6663 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.1589, allocations: 13.11 kB / 0.6663 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.857e-05/0.159, allocations: 0.9375 kB / 0.6663 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.78e-05/0.1591, allocations: 160.4 kB / 0.6665 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.1591, allocations: 384 / 0.6665 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.444e-06/0.1591, allocations: 384 / 0.6665 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001029/0.1592, allocations: 42.19 kB / 0.6665 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.1592, allocations: 4.188 kB / 0.6665 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.1593, allocations: 3.938 kB / 0.6665 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.1593, allocations: 0 / 0.6665 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.649e-05/0.1593, allocations: 4 kB / 0.6665 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001539/0.1595, allocations: 149.7 kB / 0.6667 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.669e-05/0.1595, allocations: 22.59 kB / 0.6667 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.125e-05/0.1596, allocations: 5.203 kB / 0.6667 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001995/0.1598, allocations: 85.17 kB / 0.6668 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/0.1598, allocations: 38.5 kB / 0.6668 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.1598, allocations: 0 / 0.6668 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001654/0.16, allocations: 45.62 kB / 0.6669 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.1601, allocations: 51.41 kB / 0.6669 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.788e-05/0.1601, allocations: 89.86 kB / 0.667 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.1601, allocations: 29.7 kB / 0.667 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.299e-05/0.1602, allocations: 80.27 kB / 0.6671 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.1602, allocations: 4 kB / 0.6671 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.974e-05/0.1602, allocations: 17.7 kB / 0.6671 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001227/0.1604, allocations: 310.8 kB / 0.6674 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.725e-05/0.1604, allocations: 8 kB / 0.6674 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.134e-05/0.1604, allocations: 0 / 0.6674 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.794e-05/0.1605, allocations: 16.8 kB / 0.6675 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.1605, allocations: 4 kB / 0.6675 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.785e-05/0.1605, allocations: 45.75 kB / 0.6675 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.1606, allocations: 4 kB / 0.6675 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.1606, allocations: 0 / 0.6675 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.216e-05/0.1606, allocations: 7.922 kB / 0.6675 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.516e-05/0.1607, allocations: 7.938 kB / 0.6675 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.1607, allocations: 0 / 0.6675 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.894e-05/0.1607, allocations: 7.844 kB / 0.6675 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.79e-06/0.1607, allocations: 0 / 0.6675 GB, free: 3.281 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 9.507e-05/0.1608, allocations: 109.8 kB / 0.6676 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.083e-05/0.1608, allocations: 4.031 kB / 0.6676 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001141/0.161, allocations: 56.62 kB / 0.6677 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.161, allocations: 0 / 0.6677 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.161, allocations: 4 kB / 0.6677 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.161, allocations: 0 / 0.6677 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001363/0.1611, allocations: 157.7 kB / 0.6678 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1611, allocations: 0 / 0.6678 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.354e-05/0.1612, allocations: 0 / 0.6678 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.1612, allocations: 4 kB / 0.6679 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.746e-06/0.1612, allocations: 3.938 kB / 0.6679 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1612, allocations: 4.031 kB / 0.6679 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1612, allocations: 0 / 0.6679 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.721e-05/0.1613, allocations: 65.06 kB / 0.6679 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.088e-05/0.1614, allocations: 77.11 kB / 0.668 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.422e-05/0.1614, allocations: 7.938 kB / 0.668 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.375e-05/0.1614, allocations: 3.984 kB / 0.668 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.836e-05/0.1614, allocations: 0 / 0.668 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-06/0.1614, allocations: 4.031 kB / 0.668 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.81e-05/0.1615, allocations: 75.28 kB / 0.6681 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1615, allocations: 0 / 0.6681 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002195/0.1617, allocations: 4 kB / 0.6681 GB, free: 2.605 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.0001998/0.1619, allocations: 104.6 kB / 0.6682 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 9.571e-05/0.162, allocations: 11.98 kB / 0.6682 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.162, allocations: 0 / 0.6682 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.632e-05/0.162, allocations: 12 kB / 0.6682 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001498/0.1622, allocations: 4 kB / 0.6682 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000243/0.1624, allocations: 106.6 kB / 0.6683 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.1628, allocations: 0.6729 MB / 0.669 GB, free: 1.629 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.976e-05/0.1628, allocations: 11.38 kB / 0.669 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.1628, allocations: 0 / 0.669 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of Templates: time 0.002182/0.165, allocations: 463.7 kB / 0.6694 GB, free: 1.164 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)