Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.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.001337/0.001337, allocations: 80.88 kB / 19.94 MB, free: 4.551 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.001777/0.001777, allocations: 177 kB / 23.36 MB, free: 1.137 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 1.032/1.032, allocations: 177.2 MB / 203.8 MB, free: 5.473 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.8343/0.8343, allocations: 154.6 MB / 414.8 MB, free: 0.5078 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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.Factorial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 480 MB, free: 6.863 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.85e-05/2.008e-05, allocations: 2.312 kB / 480.1 MB, free: 6.859 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002245/0.002265, allocations: 1.615 MB / 481.7 MB, free: 5.27 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002641/0.002529, allocations: 128.8 kB / 481.8 MB, free: 5.145 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.286e-05/0.002562, allocations: 4 kB / 481.8 MB, free: 5.141 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 2.253e-05/0.002584, allocations: 0.6875 kB / 481.8 MB, free: 5.141 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 4.323e-05/0.002628, allocations: 5.797 kB / 481.8 MB, free: 5.137 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001944/0.002822, allocations: 24.59 kB / 481.8 MB, free: 5.113 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 6.385e-05/0.002886, allocations: 32.52 kB / 481.9 MB, free: 5.086 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.086e-05/0.002957, allocations: 12.89 kB / 481.9 MB, free: 5.074 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.292e-05/0.00301, allocations: 20.84 kB / 481.9 MB, free: 5.055 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.141e-05/0.003051, allocations: 9.984 kB / 481.9 MB, free: 5.047 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.404e-05/0.003065, allocations: 4 kB / 481.9 MB, free: 5.043 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.688e-05/0.003142, allocations: 8.609 kB / 481.9 MB, free: 5.035 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 1.491e-05/0.003157, allocations: 13.52 kB / 481.9 MB, free: 5.023 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 1.473e-05/0.003172, allocations: 9.906 kB / 481.9 MB, free: 5.016 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 9.017e-05/0.003262, allocations: 33.44 kB / 482 MB, free: 4.984 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.003264, allocations: 1.984 kB / 482 MB, free: 4.984 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.71e-07/0.003264, allocations: 0 / 482 MB, free: 4.984 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.725e-06/0.003267, allocations: 0 / 482 MB, free: 4.984 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0002657/0.003533, allocations: 241.3 kB / 482.2 MB, free: 4.727 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.028e-05/0.003563, allocations: 12.03 kB / 482.2 MB, free: 4.715 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.217e-05/0.003585, allocations: 1.703 kB / 482.2 MB, free: 4.715 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.845e-05/0.003664, allocations: 118.8 kB / 482.3 MB, free: 4.574 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.003681, allocations: 384 / 482.3 MB, free: 4.574 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.663e-06/0.003687, allocations: 4.375 kB / 482.3 MB, free: 4.57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001002/0.003788, allocations: 63.69 kB / 482.4 MB, free: 4.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.003794, allocations: 192 / 482.4 MB, free: 4.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.015e-06/0.003802, allocations: 5.781 kB / 482.4 MB, free: 4.496 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.003807, allocations: 1.031 kB / 482.4 MB, free: 4.496 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.437e-05/0.003831, allocations: 11.92 kB / 482.4 MB, free: 4.484 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002016/0.004033, allocations: 153.7 kB / 482.6 MB, free: 4.32 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001341/0.004167, allocations: 38.56 kB / 482.6 MB, free: 4.273 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.671e-05/0.004183, allocations: 8.859 kB / 482.6 MB, free: 4.262 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.217e-05/0.004246, allocations: 13.42 kB / 482.6 MB, free: 4.25 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.004267, allocations: 31.44 kB / 482.7 MB, free: 4.211 MB / 442.7 MB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.004268, allocations: 0.9062 kB / 482.7 MB, free: 4.211 MB / 442.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001068/0.004375, allocations: 45.62 kB / 482.7 MB, free: 4.16 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.587e-05/0.004401, allocations: 52.28 kB / 482.8 MB, free: 4.098 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.827e-05/0.004449, allocations: 110.6 kB / 482.9 MB, free: 3.977 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.917e-06/0.004458, allocations: 26.61 kB / 482.9 MB, free: 3.945 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.363e-05/0.004492, allocations: 93.08 kB / 483 MB, free: 3.852 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.448e-05/0.004506, allocations: 3.953 kB / 483 MB, free: 3.848 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.736e-05/0.004534, allocations: 14.34 kB / 483 MB, free: 3.828 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.991e-05/0.004604, allocations: 318.8 kB / 483.3 MB, free: 3.508 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.258e-06/0.004613, allocations: 4.625 kB / 483.3 MB, free: 3.504 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.707e-06/0.004622, allocations: 4.625 kB / 483.3 MB, free: 3.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.811e-05/0.00465, allocations: 19.84 kB / 483.3 MB, free: 3.48 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.004651, allocations: 0.625 kB / 483.3 MB, free: 3.48 MB / 442.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.592e-05/0.004697, allocations: 38.31 kB / 483.4 MB, free: 3.438 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.958e-06/0.004707, allocations: 4.547 kB / 483.4 MB, free: 3.434 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.004711, allocations: 0.625 kB / 483.4 MB, free: 3.434 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.004726, allocations: 12.62 kB / 483.4 MB, free: 3.422 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.144e-05/0.004767, allocations: 4 kB / 483.4 MB, free: 3.418 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.246e-06/0.00477, allocations: 4.641 kB / 483.4 MB, free: 3.414 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.89e-05/0.004789, allocations: 8.984 kB / 483.4 MB, free: 3.406 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-06/0.004793, allocations: 1.781 kB / 483.4 MB, free: 3.406 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 (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 5.017e-05/0.004843, allocations: 109.8 kB / 483.5 MB, free: 3.289 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.399e-05/0.004857, allocations: 0 / 483.5 MB, free: 3.289 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.747e-05/0.004925, allocations: 50.58 kB / 483.6 MB, free: 3.238 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.004928, allocations: 3.938 kB / 483.6 MB, free: 3.234 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.004934, allocations: 4 kB / 483.6 MB, free: 3.23 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.004937, allocations: 1.031 kB / 483.6 MB, free: 3.23 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.992e-05/0.005017, allocations: 73.81 kB / 483.7 MB, free: 3.141 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.005019, allocations: 5.094 kB / 483.7 MB, free: 3.137 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.491e-05/0.005044, allocations: 12.47 kB / 483.7 MB, free: 3.125 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.82e-07/0.005045, allocations: 1.312 kB / 483.7 MB, free: 3.125 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.048e-06/0.005049, allocations: 0 / 483.7 MB, free: 3.125 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.005051, allocations: 3.984 kB / 483.7 MB, free: 3.121 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.005051, allocations: 0 / 483.7 MB, free: 3.121 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.348e-05/0.005115, allocations: 136.3 kB / 483.8 MB, free: 2.973 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.01e-06/0.00512, allocations: 4 kB / 483.8 MB, free: 2.969 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.226e-06/0.005128, allocations: 5.109 kB / 483.8 MB, free: 2.969 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.187e-05/0.00516, allocations: 4 kB / 483.8 MB, free: 2.965 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.193e-05/0.005192, allocations: 8.641 kB / 483.8 MB, free: 2.957 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.005195, allocations: 3.938 kB / 483.8 MB, free: 2.953 MB / 442.7 MB Notification: Performance of sorting global known variables: time 9.348e-06/0.005205, allocations: 12.84 kB / 483.8 MB, free: 2.938 MB / 442.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005205, allocations: 0 / 483.8 MB, free: 2.938 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0001204/0.005325, allocations: 13.69 kB / 483.9 MB, free: 2.926 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.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 8.565e-05/0.005411, allocations: 81.67 kB / 483.9 MB, free: 2.836 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 5.573e-05/0.005467, allocations: 16.84 kB / 484 MB, free: 2.816 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.005468, allocations: 1.812 kB / 484 MB, free: 2.816 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 1.745e-05/0.005486, allocations: 12.86 kB / 484 MB, free: 2.801 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001152/0.005601, allocations: 6.109 kB / 484 MB, free: 2.797 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002192/0.00582, allocations: 115.3 kB / 484.1 MB, free: 2.66 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.1e-05/0.005851, allocations: 59.3 kB / 484.1 MB, free: 2.582 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 2.197e-05/0.005873, allocations: 9.938 kB / 484.2 MB, free: 2.574 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.327e-05/0.005916, allocations: 59.36 kB / 484.2 MB, free: 2.516 MB / 442.7 MB Notification: Performance of SimCode: time 4.81e-07/0.005917, allocations: 1.203 kB / 484.2 MB, free: 2.516 MB / 442.7 MB Notification: Performance of Templates: time 0.002131/0.008047, allocations: 0.7465 MB / 485 MB, free: 1.809 MB / 442.7 MB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Factorial.sim & ./IDEAS_IDEAS.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.715240470133722]