Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008975/0.0008975, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009161/0.0009161, allocations: 177.4 kB / 23.36 MB, free: 1.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9455/0.9455, allocations: 177.1 MB / 203.8 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-545:108:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-545:116:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.9403/0.9403, allocations: 154.6 MB / 414.8 MB, free: 0.4922 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 480.1 MB, free: 6.855 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.237e-05/1.353e-05, allocations: 2.312 kB / 480.1 MB, free: 6.852 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001026/0.00104, allocations: 0.6126 MB / 480.7 MB, free: 6.27 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002028/0.001243, allocations: 46.48 kB / 480.7 MB, free: 6.227 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.65e-05/0.001259, allocations: 0 / 480.7 MB, free: 6.227 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 1.549e-05/0.001275, allocations: 3.938 kB / 480.7 MB, free: 6.223 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 6.402e-06/0.001281, allocations: 0 / 480.7 MB, free: 6.223 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002222/0.001503, allocations: 12.47 kB / 480.7 MB, free: 6.211 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 4.909e-05/0.001552, allocations: 13.41 kB / 480.7 MB, free: 6.199 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.732e-05/0.00159, allocations: 0.7656 kB / 480.7 MB, free: 6.199 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.927e-05/0.001619, allocations: 4 kB / 480.7 MB, free: 6.195 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.882e-05/0.001638, allocations: 0 / 480.7 MB, free: 6.195 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.001651, allocations: 1.328 kB / 480.7 MB, free: 6.195 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.226e-05/0.001733, allocations: 11.98 kB / 480.8 MB, free: 6.184 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 1.185e-05/0.001745, allocations: 1.438 kB / 480.8 MB, free: 6.184 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 1.235e-05/0.001757, allocations: 4.547 kB / 480.8 MB, free: 6.18 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 8.009e-05/0.001837, allocations: 13.06 kB / 480.8 MB, free: 6.168 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.453e-06/0.001839, allocations: 0 / 480.8 MB, free: 6.168 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.71e-07/0.001839, allocations: 0.8438 kB / 480.8 MB, free: 6.168 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.347e-06/0.001842, allocations: 0 / 480.8 MB, free: 6.168 MB / 442.7 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.0001787/0.002021, allocations: 213 kB / 481 MB, free: 5.938 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.052e-05/0.002052, allocations: 12.03 kB / 481 MB, free: 5.926 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.986e-05/0.002071, allocations: 5.422 kB / 481 MB, free: 5.922 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.123e-05/0.002123, allocations: 105.8 kB / 481.1 MB, free: 5.793 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.599e-06/0.002132, allocations: 5 kB / 481.1 MB, free: 5.789 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-06/0.00214, allocations: 3.094 kB / 481.1 MB, free: 5.789 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.456e-05/0.002215, allocations: 30.27 kB / 481.1 MB, free: 5.754 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.582e-06/0.002221, allocations: 0.7344 kB / 481.1 MB, free: 5.754 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.071e-06/0.002227, allocations: 1.781 kB / 481.1 MB, free: 5.754 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.002232, allocations: 384 / 481.1 MB, free: 5.754 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.744e-05/0.00225, allocations: 7.922 kB / 481.2 MB, free: 5.746 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.803e-05/0.002328, allocations: 64.98 kB / 481.2 MB, free: 5.668 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.742e-05/0.002365, allocations: 28.33 kB / 481.2 MB, free: 5.633 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.163e-05/0.002377, allocations: 8.922 kB / 481.3 MB, free: 5.621 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.867e-05/0.002475, allocations: 9.484 kB / 481.3 MB, free: 5.613 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.002494, allocations: 30.56 kB / 481.3 MB, free: 5.574 MB / 442.7 MB Notification: Performance of pre-optimization done (n=2): time 5.91e-07/0.002495, allocations: 1.062 kB / 481.3 MB, free: 5.574 MB / 442.7 MB Notification: Performance of matching and sorting (n=2): time 8.568e-05/0.00258, allocations: 33.7 kB / 481.3 MB, free: 5.535 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.712e-05/0.002617, allocations: 55.97 kB / 481.4 MB, free: 5.469 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.858e-05/0.002656, allocations: 90.62 kB / 481.5 MB, free: 5.371 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.578e-06/0.002666, allocations: 26.33 kB / 481.5 MB, free: 5.34 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.302e-05/0.002689, allocations: 88.77 kB / 481.6 MB, free: 5.25 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.002706, allocations: 3.984 kB / 481.6 MB, free: 5.246 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.207e-05/0.002728, allocations: 14.34 kB / 481.6 MB, free: 5.227 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.197e-05/0.00282, allocations: 318.8 kB / 481.9 MB, free: 4.906 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.418e-06/0.00283, allocations: 4.625 kB / 481.9 MB, free: 4.902 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.484e-06/0.002837, allocations: 5.172 kB / 481.9 MB, free: 4.898 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.369e-05/0.002871, allocations: 13.56 kB / 481.9 MB, free: 4.883 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.002873, allocations: 0 / 481.9 MB, free: 4.883 MB / 442.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 3.963e-05/0.002913, allocations: 38.17 kB / 482 MB, free: 4.84 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.002926, allocations: 6.562 kB / 482 MB, free: 4.836 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.002931, allocations: 0.9844 kB / 482 MB, free: 4.836 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.002943, allocations: 1.094 kB / 482 MB, free: 4.836 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.507e-05/0.002988, allocations: 4 kB / 482 MB, free: 4.832 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.002993, allocations: 3.984 kB / 482 MB, free: 4.828 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.074e-05/0.003004, allocations: 1.25 kB / 482 MB, free: 4.828 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-06/0.003008, allocations: 0.9375 kB / 482 MB, free: 4.828 MB / 442.7 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 (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.828e-05/0.003086, allocations: 114.6 kB / 482.1 MB, free: 4.707 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.08e-06/0.003091, allocations: 4.625 kB / 482.1 MB, free: 4.703 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.915e-05/0.003171, allocations: 37.56 kB / 482.1 MB, free: 4.664 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.003173, allocations: 1.859 kB / 482.1 MB, free: 4.664 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.544e-06/0.003175, allocations: 4 kB / 482.2 MB, free: 4.66 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.003179, allocations: 0 / 482.2 MB, free: 4.66 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.368e-05/0.003242, allocations: 66.33 kB / 482.2 MB, free: 4.578 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.81e-07/0.003243, allocations: 0 / 482.2 MB, free: 4.578 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.447e-06/0.003252, allocations: 9.844 kB / 482.2 MB, free: 4.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.003254, allocations: 0 / 482.2 MB, free: 4.57 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.689e-06/0.003258, allocations: 0 / 482.2 MB, free: 4.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.00326, allocations: 9.047 kB / 482.2 MB, free: 4.562 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.003262, allocations: 1.5 kB / 482.2 MB, free: 4.562 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.278e-05/0.003315, allocations: 58.02 kB / 482.3 MB, free: 4.488 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.14e-06/0.00332, allocations: 0.875 kB / 482.3 MB, free: 4.488 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.181e-05/0.003332, allocations: 7.984 kB / 482.3 MB, free: 4.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.127e-06/0.003336, allocations: 1.156 kB / 482.3 MB, free: 4.48 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.199e-05/0.003368, allocations: 4 kB / 482.3 MB, free: 4.477 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-06/0.003369, allocations: 0 / 482.3 MB, free: 4.477 MB / 442.7 MB Notification: Performance of sorting global known variables: time 1.065e-05/0.00338, allocations: 5.609 kB / 482.3 MB, free: 4.469 MB / 442.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00338, allocations: 0 / 482.3 MB, free: 4.469 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000108/0.003488, allocations: 6.484 kB / 482.3 MB, free: 4.465 MB / 442.7 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 (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.0001437/0.003632, allocations: 88.34 kB / 482.4 MB, free: 4.367 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 7.134e-05/0.003703, allocations: 9.641 kB / 482.4 MB, free: 4.355 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.003706, allocations: 0 / 482.4 MB, free: 4.355 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 1.376e-05/0.003719, allocations: 9.422 kB / 482.4 MB, free: 4.344 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.658e-05/0.003776, allocations: 13.92 kB / 482.4 MB, free: 4.332 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000148/0.003924, allocations: 93.61 kB / 482.5 MB, free: 4.215 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.805e-05/0.003952, allocations: 51.36 kB / 482.6 MB, free: 4.145 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 1.064e-05/0.003963, allocations: 0.75 kB / 482.6 MB, free: 4.145 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.515e-05/0.003998, allocations: 51.38 kB / 482.6 MB, free: 4.094 MB / 442.7 MB Notification: Performance of SimCode: time 3.9e-07/0.003998, allocations: 0.5 kB / 482.6 MB, free: 4.094 MB / 442.7 MB Notification: Performance of Templates: time 0.001738/0.005736, allocations: 371.6 kB / 483 MB, free: 3.746 MB / 442.7 MB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & ./IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.53742937091738]