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.0008253/0.0008253, allocations: 92.7 kB / 20.21 MB, free: 4.227 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.0008521/0.0008521, allocations: 161.3 kB / 23.51 MB, free: 0.9141 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.8995/0.8995, allocations: 177.1 MB / 203.9 MB, free: 5.602 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.7534/0.7534, allocations: 154.6 MB / 414.9 MB, free: 0.668 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.513e-06/1.513e-06, allocations: 0 / 0.5204 GB, free: 2.523 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.315e-05/2.467e-05, allocations: 2.312 kB / 0.5204 GB, free: 2.52 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001614/0.001638, allocations: 0.6018 MB / 0.521 GB, free: 1.938 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002194/0.001858, allocations: 43.81 kB / 0.521 GB, free: 1.895 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.509e-05/0.001873, allocations: 0.9688 kB / 0.521 GB, free: 1.895 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 1.164e-05/0.001885, allocations: 0 / 0.521 GB, free: 1.895 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 6.402e-06/0.001891, allocations: 0.8438 kB / 0.521 GB, free: 1.895 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00023/0.002121, allocations: 11.92 kB / 0.5211 GB, free: 1.883 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 4.137e-05/0.002162, allocations: 4.766 kB / 0.5211 GB, free: 1.879 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.241e-05/0.002205, allocations: 0.9688 kB / 0.5211 GB, free: 1.879 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.816e-05/0.002233, allocations: 4 kB / 0.5211 GB, free: 1.875 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.141e-05/0.002254, allocations: 10.5 kB / 0.5211 GB, free: 1.867 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.246e-05/0.002267, allocations: 0 / 0.5211 GB, free: 1.867 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.343e-05/0.00234, allocations: 7.984 kB / 0.5211 GB, free: 1.859 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 1.118e-05/0.002351, allocations: 0.875 kB / 0.5211 GB, free: 1.859 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 1.419e-05/0.002366, allocations: 0 / 0.5211 GB, free: 1.859 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 8.622e-05/0.002452, allocations: 16.48 kB / 0.5211 GB, free: 1.844 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.002454, allocations: 5.562 kB / 0.5211 GB, free: 1.84 MB / 490.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.002455, allocations: 0 / 0.5211 GB, free: 1.84 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.527e-06/0.002458, allocations: 0 / 0.5211 GB, free: 1.84 MB / 490.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.0002456/0.002704, allocations: 238.4 kB / 0.5213 GB, free: 1.574 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.002742, allocations: 12.02 kB / 0.5213 GB, free: 1.562 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.528e-05/0.002777, allocations: 5.969 kB / 0.5213 GB, free: 1.559 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.035e-05/0.002837, allocations: 101.8 kB / 0.5214 GB, free: 1.434 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.845e-06/0.002845, allocations: 1.594 kB / 0.5214 GB, free: 1.434 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.002857, allocations: 384 / 0.5214 GB, free: 1.434 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.932e-05/0.002946, allocations: 34.2 kB / 0.5215 GB, free: 1.395 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.002954, allocations: 0.8125 kB / 0.5215 GB, free: 1.395 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.002963, allocations: 4.375 kB / 0.5215 GB, free: 1.391 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.002967, allocations: 6 kB / 0.5215 GB, free: 1.387 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.052e-05/0.002998, allocations: 7.922 kB / 0.5215 GB, free: 1.379 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001064/0.003104, allocations: 101.3 kB / 0.5216 GB, free: 1.25 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.85e-05/0.003162, allocations: 22.61 kB / 0.5216 GB, free: 1.219 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.878e-05/0.003181, allocations: 10.08 kB / 0.5216 GB, free: 1.207 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001254/0.003307, allocations: 7.984 kB / 0.5216 GB, free: 1.199 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.003325, allocations: 35.31 kB / 0.5217 GB, free: 1.156 MB / 490.7 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.003326, allocations: 0 / 0.5217 GB, free: 1.156 MB / 490.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001438/0.00347, allocations: 38.92 kB / 0.5217 GB, free: 1.113 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.019e-05/0.0035, allocations: 59.39 kB / 0.5218 GB, free: 1.043 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.204e-05/0.003532, allocations: 89.86 kB / 0.5218 GB, free: 0.9453 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/0.003543, allocations: 26.42 kB / 0.5219 GB, free: 0.9141 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.995e-05/0.003563, allocations: 80.14 kB / 0.5219 GB, free: 0.832 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.91e-05/0.003582, allocations: 4.578 kB / 0.5219 GB, free: 0.8281 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.873e-05/0.003611, allocations: 17.72 kB / 0.522 GB, free: 0.8047 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.149e-05/0.003692, allocations: 315.8 kB / 0.5223 GB, free: 500 kB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.261e-05/0.003705, allocations: 4 kB / 0.5223 GB, free: 496 kB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.156e-06/0.003713, allocations: 4.562 kB / 0.5223 GB, free: 492 kB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.218e-05/0.003745, allocations: 21.59 kB / 0.5223 GB, free: 468 kB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.003747, allocations: 0 / 0.5223 GB, free: 468 kB / 490.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.779e-05/0.003804, allocations: 44.88 kB / 0.5223 GB, free: 420 kB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.003816, allocations: 7.938 kB / 0.5223 GB, free: 412 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.003821, allocations: 0 / 0.5223 GB, free: 412 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.003832, allocations: 0 / 0.5223 GB, free: 412 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.949e-05/0.003881, allocations: 7.984 kB / 0.5224 GB, free: 404 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.003887, allocations: 0 / 0.5224 GB, free: 404 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.22e-05/0.003899, allocations: 3.938 kB / 0.5224 GB, free: 400 kB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-06/0.003905, allocations: 8 kB / 0.5224 GB, free: 392 kB / 490.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 5.374e-05/0.003959, allocations: 110.7 kB / 0.5225 GB, free: 272 kB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.982e-06/0.003965, allocations: 0.5312 kB / 0.5225 GB, free: 272 kB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.94e-05/0.004044, allocations: 45.78 kB / 0.5225 GB, free: 224 kB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.004046, allocations: 0 / 0.5225 GB, free: 224 kB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.00405, allocations: 0 / 0.5225 GB, free: 224 kB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.004053, allocations: 1.594 kB / 0.5225 GB, free: 224 kB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.918e-05/0.004112, allocations: 101.3 kB / 0.5226 GB, free: 92 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.004113, allocations: 0 / 0.5226 GB, free: 92 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.445e-05/0.004127, allocations: 4 kB / 0.5226 GB, free: 88 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.004129, allocations: 0.9688 kB / 0.5226 GB, free: 88 kB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-06/0.004136, allocations: 3.984 kB / 0.5226 GB, free: 84 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.004136, allocations: 0 / 0.5226 GB, free: 84 kB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.004137, allocations: 1.531 kB / 0.5226 GB, free: 84 kB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.475e-05/0.004212, allocations: 69.06 kB / 0.5227 GB, free: 15.99 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.851e-06/0.004218, allocations: 7.875 kB / 0.5227 GB, free: 15.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.044e-05/0.004228, allocations: 6.75 kB / 0.5227 GB, free: 15.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.494e-06/0.004236, allocations: 4 kB / 0.5227 GB, free: 15.98 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.731e-05/0.004263, allocations: 0 / 0.5227 GB, free: 15.98 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-06/0.004266, allocations: 0 / 0.5227 GB, free: 15.98 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 2.305e-05/0.004289, allocations: 75.28 kB / 0.5228 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7e-08/0.004289, allocations: 0 / 0.5228 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0001884/0.004477, allocations: 4 kB / 0.5228 GB, free: 15.9 MB / 0.4948 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,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.000122/0.004599, allocations: 109.3 kB / 0.5229 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 7.001e-05/0.004669, allocations: 4 kB / 0.5229 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.004671, allocations: 4 kB / 0.5229 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 1.117e-05/0.004683, allocations: 7.938 kB / 0.5229 GB, free: 15.77 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001287/0.004811, allocations: 8.875 kB / 0.5229 GB, free: 15.77 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000182/0.004993, allocations: 87.69 kB / 0.523 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.801e-05/0.005031, allocations: 56.08 kB / 0.523 GB, free: 15.58 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 1.114e-05/0.005042, allocations: 0 / 0.523 GB, free: 15.58 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.546e-05/0.005058, allocations: 13.16 kB / 0.5231 GB, free: 15.57 MB / 0.4948 GB Notification: Performance of SimCode: time 5.61e-07/0.005058, allocations: 3.344 kB / 0.5231 GB, free: 15.57 MB / 0.4948 GB Notification: Performance of Templates: time 0.001981/0.007039, allocations: 339.6 kB / 0.5234 GB, free: 15.25 MB / 0.4948 GB " [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=480 -s gbode -gbm=radauIIA3 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 3.6153588965535164]