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.0006547/0.0006547, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009122/0.001567, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0006788/0.0006788, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009569/0.001636, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.062/1.062, allocations: 177.2 MB / 189.7 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08888/1.151, allocations: 53.67 MB / 243.4 MB, free: 15.49 MB / 250.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.7714/0.7714, allocations: 154.6 MB / 398.8 MB, free: 372 kB / 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. Notification: Performance of NFInstanceAPI.mkTop(): time 0.3053/1.077, allocations: 49.04 MB / 447.8 MB, free: 6.574 MB / 426.7 MB " [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.062e-06/1.062e-06, allocations: 0 / 449.2 MB, free: 5.199 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.679e-06/1.074e-05, allocations: 2.312 kB / 449.2 MB, free: 5.195 MB / 426.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001007/0.001018, allocations: 0.656 MB / 449.9 MB, free: 4.582 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 8.443e-05/0.001103, allocations: 48.56 kB / 449.9 MB, free: 4.535 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.937e-06/0.001112, allocations: 1.062 kB / 449.9 MB, free: 4.535 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 3.476e-06/0.001115, allocations: 0 / 449.9 MB, free: 4.535 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 8.72e-07/0.001116, allocations: 4 kB / 449.9 MB, free: 4.531 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 8.518e-05/0.001201, allocations: 17.42 kB / 449.9 MB, free: 4.516 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 4.281e-05/0.001244, allocations: 7.984 kB / 450 MB, free: 4.508 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.438e-05/0.001278, allocations: 5.281 kB / 450 MB, free: 4.504 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.423e-05/0.001313, allocations: 4.875 kB / 450 MB, free: 4.5 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.2e-05/0.001335, allocations: 1.688 kB / 450 MB, free: 4.5 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 1.068e-05/0.001345, allocations: 0.6562 kB / 450 MB, free: 4.5 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.726e-05/0.001422, allocations: 15.98 kB / 450 MB, free: 4.484 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 1.118e-05/0.001434, allocations: 0.875 kB / 450 MB, free: 4.484 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 9.298e-06/0.001443, allocations: 2.438 kB / 450 MB, free: 4.484 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 7.106e-05/0.001514, allocations: 9.406 kB / 450 MB, free: 4.477 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.028e-05/0.001524, allocations: 4 kB / 450 MB, free: 4.473 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.01e-07/0.001525, allocations: 0 / 450 MB, free: 4.473 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.001535, allocations: 0 / 450 MB, free: 4.473 MB / 426.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.0002338/0.001769, allocations: 217.8 kB / 450.2 MB, free: 4.234 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.069e-05/0.001799, allocations: 8.031 kB / 450.2 MB, free: 4.227 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.154e-05/0.001821, allocations: 2.875 kB / 450.2 MB, free: 4.227 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.723e-05/0.001878, allocations: 113.7 kB / 450.3 MB, free: 4.09 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.624e-06/0.001886, allocations: 384 / 450.3 MB, free: 4.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.635e-06/0.001893, allocations: 4.312 kB / 450.3 MB, free: 4.086 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.427e-05/0.001958, allocations: 30.27 kB / 450.4 MB, free: 4.051 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.342e-06/0.001964, allocations: 2.672 kB / 450.4 MB, free: 4.051 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.43e-06/0.001969, allocations: 1.25 kB / 450.4 MB, free: 4.051 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.001974, allocations: 384 / 450.4 MB, free: 4.051 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.982e-05/0.001994, allocations: 9.344 kB / 450.4 MB, free: 4.043 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.194e-05/0.002065, allocations: 61.03 kB / 450.4 MB, free: 3.969 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.604e-05/0.002102, allocations: 19.27 kB / 450.5 MB, free: 3.941 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.333e-05/0.002115, allocations: 13.42 kB / 450.5 MB, free: 3.926 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001001/0.002215, allocations: 7.344 kB / 450.5 MB, free: 3.922 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.918e-05/0.002234, allocations: 34.56 kB / 450.5 MB, free: 3.879 MB / 426.7 MB Notification: Performance of pre-optimization done (n=2): time 5.82e-07/0.002235, allocations: 0.9844 kB / 450.5 MB, free: 3.879 MB / 426.7 MB Notification: Performance of matching and sorting (n=2): time 7.757e-05/0.002312, allocations: 33.69 kB / 450.5 MB, free: 3.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.677e-05/0.002339, allocations: 55.41 kB / 450.6 MB, free: 3.773 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.956e-05/0.002369, allocations: 93.84 kB / 450.7 MB, free: 3.672 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.348e-06/0.002378, allocations: 25.7 kB / 450.7 MB, free: 3.641 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.704e-05/0.002395, allocations: 80.14 kB / 450.8 MB, free: 3.559 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/0.002415, allocations: 2.969 kB / 450.8 MB, free: 3.559 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.318e-05/0.002438, allocations: 21.7 kB / 450.8 MB, free: 3.531 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.221e-05/0.00251, allocations: 314.8 kB / 451.1 MB, free: 3.211 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.265e-06/0.002519, allocations: 10.91 kB / 451.1 MB, free: 3.203 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.292e-06/0.002525, allocations: 3.484 kB / 451.1 MB, free: 3.203 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.197e-05/0.002547, allocations: 8.859 kB / 451.1 MB, free: 3.191 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.002548, allocations: 0.875 kB / 451.1 MB, free: 3.191 MB / 426.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 3.249e-05/0.002581, allocations: 37.69 kB / 451.2 MB, free: 3.148 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/0.002591, allocations: 4.906 kB / 451.2 MB, free: 3.145 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.002594, allocations: 0 / 451.2 MB, free: 3.145 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.438e-06/0.002604, allocations: 1 kB / 451.2 MB, free: 3.145 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.566e-05/0.00265, allocations: 4 kB / 451.2 MB, free: 3.141 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.002654, allocations: 0 / 451.2 MB, free: 3.141 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.061e-05/0.002665, allocations: 10.23 kB / 451.2 MB, free: 3.133 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-06/0.002669, allocations: 7.969 kB / 451.2 MB, free: 3.125 MB / 426.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 4.545e-05/0.002715, allocations: 113.8 kB / 451.3 MB, free: 3.004 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.667e-06/0.002718, allocations: 0.6562 kB / 451.3 MB, free: 3.004 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.213e-05/0.002781, allocations: 50.06 kB / 451.4 MB, free: 2.949 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.002782, allocations: 1.078 kB / 451.4 MB, free: 2.949 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-06/0.002784, allocations: 0 / 451.4 MB, free: 2.949 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.002786, allocations: 1.062 kB / 451.4 MB, free: 2.949 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.365e-05/0.00283, allocations: 65.84 kB / 451.4 MB, free: 2.867 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-07/0.00283, allocations: 0.5469 kB / 451.4 MB, free: 2.867 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.019e-05/0.002841, allocations: 5.156 kB / 451.4 MB, free: 2.863 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.268e-06/0.002845, allocations: 3.953 kB / 451.4 MB, free: 2.859 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.81e-07/0.002846, allocations: 0 / 451.4 MB, free: 2.859 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.586e-06/0.002849, allocations: 4.703 kB / 451.5 MB, free: 2.855 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.002851, allocations: 4.984 kB / 451.5 MB, free: 2.852 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.81e-07/0.002851, allocations: 1.531 kB / 451.5 MB, free: 2.852 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.077e-05/0.002892, allocations: 61.02 kB / 451.5 MB, free: 2.773 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.664e-06/0.0029, allocations: 3.984 kB / 451.5 MB, free: 2.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.629e-06/0.002905, allocations: 0 / 451.5 MB, free: 2.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.802e-05/0.002923, allocations: 2.641 kB / 451.5 MB, free: 2.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.002925, allocations: 8 kB / 451.5 MB, free: 2.762 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.522e-06/0.002932, allocations: 4.859 kB / 451.5 MB, free: 2.754 MB / 426.7 MB Notification: Performance of sort global known variables: time 5e-08/0.002932, allocations: 0 / 451.5 MB, free: 2.754 MB / 426.7 MB Notification: Performance of remove unused functions: time 8.964e-05/0.003022, allocations: 5.344 kB / 451.5 MB, free: 2.75 MB / 426.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 9.612e-05/0.003118, allocations: 81.53 kB / 451.6 MB, free: 2.66 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 4.85e-05/0.003166, allocations: 14.11 kB / 451.6 MB, free: 2.645 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.003169, allocations: 0 / 451.6 MB, free: 2.645 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 1.125e-05/0.003181, allocations: 14.67 kB / 451.7 MB, free: 2.629 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.895e-05/0.00323, allocations: 12.58 kB / 451.7 MB, free: 2.617 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001434/0.003373, allocations: 84.05 kB / 451.7 MB, free: 2.512 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.716e-05/0.00344, allocations: 51.36 kB / 451.8 MB, free: 2.441 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 1.108e-05/0.003451, allocations: 8.484 kB / 451.8 MB, free: 2.434 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.864e-05/0.00348, allocations: 52.06 kB / 451.9 MB, free: 2.383 MB / 426.7 MB Notification: Performance of SimCode: time 3.4e-07/0.00348, allocations: 0 / 451.9 MB, free: 2.383 MB / 426.7 MB Notification: Performance of Templates: time 0.001642/0.005122, allocations: 381.2 kB / 452.2 MB, free: 2.031 MB / 426.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.5669937962666154]