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.001/0.001, allocations: 92.23 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 178.7 kB / 16.92 MB, free: 6.652 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.323/1.323, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9226/0.9226, allocations: 135.3 MB / 427.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003369/0.0003371, allocations: 8 kB / 0.5082 GB, free: 4.73 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1557, allocations: 82.31 MB / 0.5886 GB, free: 2.59 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.001717/0.1574, allocations: 1.229 MB / 0.5898 GB, free: 1.344 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003695/0.1578, allocations: 120.5 kB / 0.5899 GB, free: 1.223 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.308e-05/0.1578, allocations: 0 / 0.5899 GB, free: 1.223 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.365e-05/0.1579, allocations: 3.938 kB / 0.5899 GB, free: 1.219 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.414e-05/0.1579, allocations: 0 / 0.5899 GB, free: 1.219 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001713/0.1581, allocations: 11.98 kB / 0.5899 GB, free: 1.207 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.41e-05/0.1582, allocations: 31.86 kB / 0.59 GB, free: 1.176 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.641e-05/0.1583, allocations: 15.98 kB / 0.59 GB, free: 1.16 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.878e-05/0.1583, allocations: 11.98 kB / 0.59 GB, free: 1.148 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.317e-05/0.1584, allocations: 11.92 kB / 0.59 GB, free: 1.137 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.1584, allocations: 4 kB / 0.59 GB, free: 1.133 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.122e-05/0.1584, allocations: 8 kB / 0.59 GB, free: 1.125 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.384e-05/0.1585, allocations: 3.984 kB / 0.59 GB, free: 1.121 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.645e-05/0.1585, allocations: 37.64 kB / 0.5901 GB, free: 1.078 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.004e-05/0.1586, allocations: 31.94 kB / 0.5901 GB, free: 1.047 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.1586, allocations: 3.938 kB / 0.5901 GB, free: 1.043 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1586, allocations: 0 / 0.5901 GB, free: 1.043 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1586, allocations: 0 / 0.5901 GB, free: 1.043 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.0004296/0.1591, allocations: 353.1 kB / 0.5904 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.1591, allocations: 12.03 kB / 0.5904 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.735e-05/0.1591, allocations: 0.9375 kB / 0.5904 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/0.1592, allocations: 160.4 kB / 0.5906 GB, free: 452 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.215e-05/0.1593, allocations: 8.375 kB / 0.5906 GB, free: 444 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.186e-05/0.1593, allocations: 384 / 0.5906 GB, free: 444 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001996/0.1595, allocations: 66.22 kB / 0.5907 GB, free: 372 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.1595, allocations: 192 / 0.5907 GB, free: 372 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.1595, allocations: 7.938 kB / 0.5907 GB, free: 364 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1595, allocations: 0 / 0.5907 GB, free: 364 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000193/0.1597, allocations: 51.95 kB / 0.5907 GB, free: 312 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003638/0.1601, allocations: 264.8 kB / 0.591 GB, free: 16 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003204/0.1604, allocations: 66.47 kB / 0.591 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.1606, allocations: 32.91 kB / 0.5911 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/0.1607, allocations: 85.09 kB / 0.5912 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.997e-05/0.1607, allocations: 30.56 kB / 0.5912 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.302e-06/0.1607, allocations: 0 / 0.5912 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004106/0.1611, allocations: 117.8 kB / 0.5913 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.3e-05/0.1612, allocations: 51.41 kB / 0.5913 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.187e-05/0.1613, allocations: 101.8 kB / 0.5914 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.1613, allocations: 25.7 kB / 0.5915 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.255e-05/0.1613, allocations: 92.12 kB / 0.5916 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.578e-05/0.1614, allocations: 7.844 kB / 0.5916 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.546e-05/0.1614, allocations: 13.72 kB / 0.5916 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.1615, allocations: 314.8 kB / 0.5919 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.798e-05/0.1616, allocations: 23.97 kB / 0.5919 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.463e-05/0.1617, allocations: 27.98 kB / 0.5919 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001823/0.1619, allocations: 56.75 kB / 0.592 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1619, allocations: 3.938 kB / 0.592 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000225/0.1621, allocations: 89.56 kB / 0.5921 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.1622, allocations: 8 kB / 0.5921 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.1622, allocations: 0 / 0.5921 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.1622, allocations: 0 / 0.5921 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.061e-05/0.1623, allocations: 15.92 kB / 0.5921 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.1623, allocations: 4 kB / 0.5921 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.172e-05/0.1624, allocations: 11.98 kB / 0.5921 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.1624, allocations: 4 kB / 0.5921 GB, free: 14.73 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 (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 8.306e-05/0.1625, allocations: 117.8 kB / 0.5922 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.288e-05/0.1625, allocations: 0 / 0.5922 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002657/0.1628, allocations: 101 kB / 0.5923 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1628, allocations: 0 / 0.5923 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1628, allocations: 0 / 0.5923 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.1628, allocations: 0 / 0.5923 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000162/0.163, allocations: 173.6 kB / 0.5925 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.163, allocations: 0 / 0.5925 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.733e-05/0.1631, allocations: 15.98 kB / 0.5925 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1631, allocations: 4 kB / 0.5925 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.433e-06/0.1631, allocations: 0 / 0.5925 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1631, allocations: 0 / 0.5925 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1631, allocations: 0 / 0.5925 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002733/0.1634, allocations: 187.4 kB / 0.5927 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.344e-05/0.1634, allocations: 85.02 kB / 0.5928 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.163e-05/0.1634, allocations: 0 / 0.5928 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.726e-05/0.1635, allocations: 7.984 kB / 0.5928 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/0.1636, allocations: 11.98 kB / 0.5928 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.858e-06/0.1636, allocations: 0 / 0.5928 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.329e-05/0.1636, allocations: 79.7 kB / 0.5929 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1636, allocations: 0 / 0.5929 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002206/0.1639, allocations: 12 kB / 0.5929 GB, free: 13.86 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.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.0001463/0.164, allocations: 103.4 kB / 0.593 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002358/0.1643, allocations: 55.92 kB / 0.593 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1643, allocations: 4 kB / 0.593 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.1644, allocations: 31.92 kB / 0.5931 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002529/0.1646, allocations: 7.938 kB / 0.5931 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002959/0.1649, allocations: 146.3 kB / 0.5932 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.1652, allocations: 0.6809 MB / 0.5939 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.975e-05/0.1653, allocations: 11.44 kB / 0.5939 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.1653, allocations: 0 / 0.5939 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of Templates: time 0.002458/0.1677, allocations: 0.7321 MB / 0.5946 GB, free: 12.02 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)