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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001602/0.001603, allocations: 192.1 kB / 16.14 MB, free: 6.711 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.369/1.369, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9376/0.9376, allocations: 135.1 MB / 425.1 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 64.77 kB / 0.5047 GB, free: 5.793 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1524, allocations: 80.92 MB / 0.5837 GB, free: 5.031 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.00258/0.155, allocations: 1.559 MB / 0.5852 GB, free: 3.453 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003339/0.1554, allocations: 136.4 kB / 0.5854 GB, free: 3.316 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.291e-05/0.1554, allocations: 0 / 0.5854 GB, free: 3.316 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.122e-05/0.1554, allocations: 0 / 0.5854 GB, free: 3.316 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.954e-05/0.1555, allocations: 3.984 kB / 0.5854 GB, free: 3.312 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001571/0.1557, allocations: 19.92 kB / 0.5854 GB, free: 3.293 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.215e-05/0.1557, allocations: 23.98 kB / 0.5854 GB, free: 3.27 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.691e-05/0.1558, allocations: 11.94 kB / 0.5854 GB, free: 3.258 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.748e-05/0.1558, allocations: 19.92 kB / 0.5854 GB, free: 3.238 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.388e-05/0.1559, allocations: 15.97 kB / 0.5854 GB, free: 3.223 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.161e-05/0.1559, allocations: 3.938 kB / 0.5855 GB, free: 3.219 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.118e-05/0.156, allocations: 8 kB / 0.5855 GB, free: 3.211 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.71e-05/0.156, allocations: 11.92 kB / 0.5855 GB, free: 3.199 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.68e-05/0.156, allocations: 11.94 kB / 0.5855 GB, free: 3.188 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001014/0.1561, allocations: 39.88 kB / 0.5855 GB, free: 3.148 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1561, allocations: 0 / 0.5855 GB, free: 3.148 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1561, allocations: 0 / 0.5855 GB, free: 3.148 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.1562, allocations: 0 / 0.5855 GB, free: 3.148 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004523/0.1566, allocations: 347.7 kB / 0.5859 GB, free: 2.758 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.1567, allocations: 8.031 kB / 0.5859 GB, free: 2.75 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.542e-05/0.1567, allocations: 4.938 kB / 0.5859 GB, free: 2.746 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.1568, allocations: 164.3 kB / 0.586 GB, free: 2.547 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.212e-05/0.1568, allocations: 4.359 kB / 0.586 GB, free: 2.543 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.2e-05/0.1569, allocations: 8.375 kB / 0.586 GB, free: 2.535 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001888/0.1571, allocations: 58.23 kB / 0.5861 GB, free: 2.473 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1571, allocations: 4.188 kB / 0.5861 GB, free: 2.469 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.1571, allocations: 3.938 kB / 0.5861 GB, free: 2.465 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.1571, allocations: 0 / 0.5861 GB, free: 2.465 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.1573, allocations: 39.89 kB / 0.5861 GB, free: 2.426 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003633/0.1577, allocations: 269 kB / 0.5864 GB, free: 2.113 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003369/0.158, allocations: 54.48 kB / 0.5864 GB, free: 2.051 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.1581, allocations: 28.89 kB / 0.5865 GB, free: 2.02 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001229/0.1583, allocations: 81.11 kB / 0.5865 GB, free: 1.922 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.1583, allocations: 42.5 kB / 0.5866 GB, free: 1.871 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.1583, allocations: 0 / 0.5866 GB, free: 1.871 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.000365/0.1587, allocations: 89.62 kB / 0.5867 GB, free: 1.777 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/0.1587, allocations: 51.41 kB / 0.5867 GB, free: 1.715 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.13e-05/0.1588, allocations: 101.8 kB / 0.5868 GB, free: 1.605 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.305e-05/0.1588, allocations: 25.7 kB / 0.5868 GB, free: 1.574 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.351e-05/0.1589, allocations: 96.05 kB / 0.5869 GB, free: 1.477 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.442e-05/0.1589, allocations: 3.938 kB / 0.5869 GB, free: 1.473 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.352e-05/0.1589, allocations: 13.72 kB / 0.587 GB, free: 1.453 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.159, allocations: 318.8 kB / 0.5873 GB, free: 1.133 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.222e-05/0.1591, allocations: 15.98 kB / 0.5873 GB, free: 1.117 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.098e-05/0.1592, allocations: 23.91 kB / 0.5873 GB, free: 1.094 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.1594, allocations: 49.3 kB / 0.5873 GB, free: 1.043 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1594, allocations: 7.875 kB / 0.5874 GB, free: 1.035 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002239/0.1596, allocations: 81.58 kB / 0.5874 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.1597, allocations: 10.66 kB / 0.5874 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-06/0.1597, allocations: 3.938 kB / 0.5874 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.1597, allocations: 0 / 0.5874 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.546e-05/0.1598, allocations: 11.98 kB / 0.5875 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.1598, allocations: 0 / 0.5875 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.835e-05/0.1599, allocations: 8 kB / 0.5875 GB, free: 0.918 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.1599, allocations: 0 / 0.5875 GB, free: 0.918 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 (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.581e-05/0.1599, allocations: 121.7 kB / 0.5876 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.502e-05/0.16, allocations: 0 / 0.5876 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002809/0.1603, allocations: 85.14 kB / 0.5877 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1603, allocations: 0 / 0.5877 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1603, allocations: 4 kB / 0.5877 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.1603, allocations: 0 / 0.5877 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.1605, allocations: 161.6 kB / 0.5878 GB, free: 500 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1605, allocations: 4 kB / 0.5878 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.866e-05/0.1605, allocations: 7.984 kB / 0.5878 GB, free: 488 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1606, allocations: 4 kB / 0.5878 GB, free: 484 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.1606, allocations: 0 / 0.5878 GB, free: 484 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1606, allocations: 0 / 0.5878 GB, free: 484 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1606, allocations: 0 / 0.5878 GB, free: 484 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002659/0.1608, allocations: 187.3 kB / 0.588 GB, free: 280 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.068e-05/0.1609, allocations: 81.09 kB / 0.5881 GB, free: 180 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.1609, allocations: 0 / 0.5881 GB, free: 180 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.608e-05/0.161, allocations: 4 kB / 0.5881 GB, free: 176 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.76e-05/0.1611, allocations: 7.984 kB / 0.5881 GB, free: 168 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.1611, allocations: 0 / 0.5881 GB, free: 168 kB / 494.1 MB Notification: Performance of sorting global known variables: time 3.509e-05/0.1611, allocations: 87.27 kB / 0.5882 GB, free: 80 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1611, allocations: 4 kB / 0.5882 GB, free: 76 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002235/0.1613, allocations: 8 kB / 0.5882 GB, free: 68 kB / 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.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.000143/0.1615, allocations: 103.2 kB / 0.5883 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002274/0.1617, allocations: 47.89 kB / 0.5883 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1617, allocations: 3.938 kB / 0.5883 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.1618, allocations: 27.97 kB / 0.5884 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/0.1621, allocations: 7.938 kB / 0.5884 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002647/0.1624, allocations: 119.3 kB / 0.5885 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.1626, allocations: 0.677 MB / 0.5892 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.36e-05/0.1627, allocations: 4 kB / 0.5892 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.527e-05/0.1627, allocations: 11.44 kB / 0.5892 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of SimCode: time 3.3e-07/0.1627, allocations: 0 / 0.5892 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of Templates: time 0.002574/0.1653, allocations: 0.6218 MB / 0.5898 GB, free: 14.39 MB / 0.4981 GB 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)