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.001048/0.001053, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001306/0.001306, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.003/1.003, allocations: 135.3 MB / 426.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003572/0.0003575, allocations: 15.98 kB / 0.507 GB, free: 5.152 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1918/0.1921, allocations: 82.31 MB / 0.5874 GB, free: 3.008 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.0006884/0.1929, allocations: 303.1 kB / 0.5877 GB, free: 2.707 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00025/0.1931, allocations: 51.83 kB / 0.5877 GB, free: 2.656 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.389e-05/0.1932, allocations: 0 / 0.5877 GB, free: 2.656 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.368e-05/0.1932, allocations: 0 / 0.5877 GB, free: 2.656 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.476e-06/0.1932, allocations: 0 / 0.5877 GB, free: 2.656 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001891/0.1934, allocations: 11.94 kB / 0.5877 GB, free: 2.645 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.414e-05/0.1935, allocations: 4 kB / 0.5877 GB, free: 2.641 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.822e-05/0.1935, allocations: 0 / 0.5877 GB, free: 2.641 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.285e-05/0.1936, allocations: 0 / 0.5877 GB, free: 2.641 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.837e-05/0.1936, allocations: 7.969 kB / 0.5877 GB, free: 2.633 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.076e-05/0.1936, allocations: 4 kB / 0.5878 GB, free: 2.629 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.678e-05/0.1937, allocations: 8 kB / 0.5878 GB, free: 2.621 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.169e-06/0.1937, allocations: 4 kB / 0.5878 GB, free: 2.617 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.193e-05/0.1937, allocations: 25.7 kB / 0.5878 GB, free: 2.586 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 5.679e-05/0.1938, allocations: 7.984 kB / 0.5878 GB, free: 2.578 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1938, allocations: 0 / 0.5878 GB, free: 2.578 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.107e-06/0.1938, allocations: 0 / 0.5878 GB, free: 2.578 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.1938, allocations: 3.938 kB / 0.5878 GB, free: 2.574 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.0002488/0.1941, allocations: 307.4 kB / 0.5881 GB, free: 2.227 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.1941, allocations: 8.031 kB / 0.5881 GB, free: 2.219 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.493e-05/0.1941, allocations: 0 / 0.5881 GB, free: 2.219 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.1943, allocations: 167 kB / 0.5883 GB, free: 2.016 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.1943, allocations: 4 kB / 0.5883 GB, free: 2.012 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.1943, allocations: 4 kB / 0.5883 GB, free: 2.008 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.948e-05/0.1944, allocations: 29.7 kB / 0.5883 GB, free: 1.973 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.1944, allocations: 3.938 kB / 0.5883 GB, free: 1.969 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.176e-06/0.1944, allocations: 0 / 0.5883 GB, free: 1.969 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1944, allocations: 4 kB / 0.5883 GB, free: 1.965 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.103e-05/0.1945, allocations: 0 / 0.5883 GB, free: 1.965 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001532/0.1946, allocations: 161.6 kB / 0.5885 GB, free: 1.758 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.598e-05/0.1947, allocations: 26.55 kB / 0.5885 GB, free: 1.723 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.864e-05/0.1947, allocations: 8.922 kB / 0.5885 GB, free: 1.711 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000198/0.195, allocations: 85.09 kB / 0.5886 GB, free: 1.609 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.195, allocations: 34.56 kB / 0.5886 GB, free: 1.566 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.195, allocations: 0 / 0.5886 GB, free: 1.566 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001418/0.1951, allocations: 41.62 kB / 0.5886 GB, free: 1.52 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/0.1952, allocations: 51.53 kB / 0.5887 GB, free: 1.457 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.163e-05/0.1952, allocations: 101.8 kB / 0.5888 GB, free: 1.348 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.1953, allocations: 25.7 kB / 0.5888 GB, free: 1.316 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.5e-05/0.1953, allocations: 80.14 kB / 0.5889 GB, free: 1.234 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.061e-05/0.1953, allocations: 7.906 kB / 0.5889 GB, free: 1.227 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.154e-06/0.1953, allocations: 0 / 0.5889 GB, free: 1.227 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.1955, allocations: 310.8 kB / 0.5892 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.828e-06/0.1955, allocations: 0 / 0.5892 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.777e-06/0.1955, allocations: 4 kB / 0.5892 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.736e-05/0.1955, allocations: 12.06 kB / 0.5892 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.1955, allocations: 3.953 kB / 0.5892 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.323e-05/0.1956, allocations: 37.69 kB / 0.5893 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.1956, allocations: 8 kB / 0.5893 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.1956, allocations: 0 / 0.5893 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.1957, allocations: 0 / 0.5893 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.074e-05/0.1957, allocations: 7.938 kB / 0.5893 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.1957, allocations: 0 / 0.5893 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.291e-05/0.1958, allocations: 0 / 0.5893 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.488e-06/0.1958, allocations: 0 / 0.5893 GB, free: 0.8359 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 (fac,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7e-05/0.1958, allocations: 121.9 kB / 0.5894 GB, free: 0.707 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.764e-06/0.1959, allocations: 3.953 kB / 0.5894 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.877e-05/0.196, allocations: 37.11 kB / 0.5894 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.196, allocations: 7.984 kB / 0.5894 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.196, allocations: 0 / 0.5894 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.196, allocations: 0 / 0.5894 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.524e-05/0.1961, allocations: 145.6 kB / 0.5896 GB, free: 472 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1961, allocations: 0 / 0.5896 GB, free: 472 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.396e-05/0.1961, allocations: 11.98 kB / 0.5896 GB, free: 460 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.1961, allocations: 0 / 0.5896 GB, free: 460 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.1961, allocations: 7.922 kB / 0.5896 GB, free: 452 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1961, allocations: 4 kB / 0.5896 GB, free: 448 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.1962, allocations: 3.938 kB / 0.5896 GB, free: 444 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.341e-05/0.1962, allocations: 57.14 kB / 0.5896 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.151e-05/0.1963, allocations: 81.09 kB / 0.5897 GB, free: 268 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.1963, allocations: 3.953 kB / 0.5897 GB, free: 264 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.076e-05/0.1963, allocations: 4.031 kB / 0.5897 GB, free: 260 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.305e-05/0.1963, allocations: 8 kB / 0.5897 GB, free: 252 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-06/0.1964, allocations: 3.938 kB / 0.5897 GB, free: 248 kB / 494.1 MB Notification: Performance of sorting global known variables: time 2.661e-05/0.1964, allocations: 75.28 kB / 0.5898 GB, free: 172 kB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1964, allocations: 0 / 0.5898 GB, free: 172 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001966/0.1966, allocations: 8 kB / 0.5898 GB, free: 164 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,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001526/0.1967, allocations: 103.2 kB / 0.5899 GB, free: 48 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 7.556e-05/0.1968, allocations: 15.94 kB / 0.5899 GB, free: 32 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1968, allocations: 0 / 0.5899 GB, free: 32 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.582e-05/0.1969, allocations: 8 kB / 0.5899 GB, free: 24 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001276/0.197, allocations: 2.344 kB / 0.5899 GB, free: 24 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001994/0.1972, allocations: 82.66 kB / 0.59 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002676/0.1975, allocations: 0.6692 MB / 0.5907 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.56e-05/0.1975, allocations: 8 kB / 0.5907 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.484e-05/0.1975, allocations: 7.438 kB / 0.5907 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of SimCode: time 2.61e-07/0.1975, allocations: 4.125 kB / 0.5907 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of Templates: time 0.002389/0.1999, allocations: 313.5 kB / 0.591 GB, free: 14.9 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)