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.001066/0.001066, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001068/0.001068, allocations: 173 kB / 23.49 MB, free: 1.059 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.9395/0.9395, allocations: 177.1 MB / 203.8 MB, free: 5.629 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.7794/0.7794, allocations: 154.6 MB / 414.9 MB, free: 0.6445 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.432e-06/1.432e-06, allocations: 0 / 0.5203 GB, free: 2.516 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.313e-05/2.457e-05, allocations: 7.5 kB / 0.5203 GB, free: 2.508 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.00548/0.005504, allocations: 1.558 MB / 0.5219 GB, free: 0.957 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003187/0.005823, allocations: 132.3 kB / 0.522 GB, free: 0.8281 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.776e-05/0.005861, allocations: 0.6562 kB / 0.522 GB, free: 0.8281 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 2.636e-05/0.005887, allocations: 3.984 kB / 0.522 GB, free: 0.8242 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 4.831e-05/0.005935, allocations: 10.22 kB / 0.522 GB, free: 0.8164 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002547/0.00619, allocations: 20.67 kB / 0.522 GB, free: 0.7969 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 8.108e-05/0.006271, allocations: 35.84 kB / 0.5221 GB, free: 0.7617 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.464e-05/0.006356, allocations: 4.969 kB / 0.5221 GB, free: 0.7578 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.964e-05/0.006406, allocations: 15.98 kB / 0.5221 GB, free: 0.7422 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.424e-05/0.00645, allocations: 15.98 kB / 0.5221 GB, free: 0.7266 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.006465, allocations: 1.75 kB / 0.5221 GB, free: 0.7266 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.074e-05/0.006525, allocations: 15.97 kB / 0.5221 GB, free: 0.7109 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 1.213e-05/0.006537, allocations: 4 kB / 0.5221 GB, free: 0.707 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 2.235e-05/0.00656, allocations: 15.92 kB / 0.5221 GB, free: 0.6914 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001171/0.006677, allocations: 35.83 kB / 0.5222 GB, free: 0.6562 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.006679, allocations: 0.5 kB / 0.5222 GB, free: 0.6562 MB / 490.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.00668, allocations: 1.031 kB / 0.5222 GB, free: 0.6562 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.006684, allocations: 0 / 0.5222 GB, free: 0.6562 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.003381/0.01006, allocations: 361.7 kB / 0.5225 GB, free: 272 kB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.0101, allocations: 8.031 kB / 0.5225 GB, free: 264 kB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.553e-05/0.01015, allocations: 4.938 kB / 0.5225 GB, free: 260 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.76e-05/0.01025, allocations: 117.2 kB / 0.5226 GB, free: 116 kB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.01027, allocations: 4.375 kB / 0.5226 GB, free: 112 kB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-06/0.01028, allocations: 5.688 kB / 0.5226 GB, free: 108 kB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001453/0.01042, allocations: 62.94 kB / 0.5227 GB, free: 36 kB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.01043, allocations: 4.172 kB / 0.5227 GB, free: 32 kB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-06/0.01044, allocations: 0.9375 kB / 0.5227 GB, free: 32 kB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.01045, allocations: 0.9062 kB / 0.5227 GB, free: 32 kB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.202e-05/0.01049, allocations: 15.88 kB / 0.5227 GB, free: 16 kB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003324/0.01082, allocations: 265.2 kB / 0.523 GB, free: 15.72 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001966/0.01102, allocations: 51.03 kB / 0.523 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.025e-05/0.01105, allocations: 12.5 kB / 0.523 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 7.655e-05/0.01112, allocations: 7.938 kB / 0.523 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.01115, allocations: 38.64 kB / 0.5231 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.01115, allocations: 0 / 0.5231 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3): time 0.0001664/0.01132, allocations: 53.62 kB / 0.5231 GB, free: 15.53 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.01135, allocations: 56.14 kB / 0.5232 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.279e-05/0.01142, allocations: 157.9 kB / 0.5233 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.01143, allocations: 26.33 kB / 0.5234 GB, free: 15.26 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 4.697e-05/0.01148, allocations: 130.9 kB / 0.5235 GB, free: 15.13 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.611e-05/0.01149, allocations: 12.78 kB / 0.5235 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.267e-05/0.01153, allocations: 19.38 kB / 0.5235 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.01165, allocations: 497.1 kB / 0.524 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.999e-05/0.01167, allocations: 7.984 kB / 0.524 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.485e-05/0.01168, allocations: 10.59 kB / 0.524 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.938e-05/0.01172, allocations: 15.69 kB / 0.524 GB, free: 14.56 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.01172, allocations: 0 / 0.524 GB, free: 14.56 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.655e-05/0.0118, allocations: 49.64 kB / 0.5241 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.01181, allocations: 11.94 kB / 0.5241 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.01182, allocations: 0 / 0.5241 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.01183, allocations: 0 / 0.5241 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.17e-05/0.01188, allocations: 13.42 kB / 0.5241 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.01189, allocations: 0 / 0.5241 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.383e-05/0.01191, allocations: 0 / 0.5241 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.01192, allocations: 7.938 kB / 0.5241 GB, free: 14.47 MB / 0.4948 GB 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 7.179e-05/0.01199, allocations: 154.3 kB / 0.5243 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.3e-05/0.01202, allocations: 4 kB / 0.5243 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001018/0.01212, allocations: 61.75 kB / 0.5243 GB, free: 14.24 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.01212, allocations: 0.875 kB / 0.5243 GB, free: 14.24 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.01212, allocations: 4.047 kB / 0.5243 GB, free: 14.24 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.01213, allocations: 4.859 kB / 0.5243 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001127/0.01224, allocations: 120.5 kB / 0.5244 GB, free: 14.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.01224, allocations: 0 / 0.5244 GB, free: 14.08 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.54e-05/0.01228, allocations: 18.73 kB / 0.5245 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.01228, allocations: 0 / 0.5245 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-06/0.01229, allocations: 0 / 0.5245 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.01229, allocations: 3.938 kB / 0.5245 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.01229, allocations: 0 / 0.5245 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001117/0.0124, allocations: 199.8 kB / 0.5247 GB, free: 13.85 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.19e-06/0.01241, allocations: 0 / 0.5247 GB, free: 13.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.091e-05/0.01242, allocations: 2.781 kB / 0.5247 GB, free: 13.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.326e-05/0.01247, allocations: 15.92 kB / 0.5247 GB, free: 13.83 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.38e-05/0.01251, allocations: 7.984 kB / 0.5247 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.356e-06/0.01252, allocations: 4 kB / 0.5247 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 3.538e-05/0.01255, allocations: 123.2 kB / 0.5248 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6e-08/0.01255, allocations: 0 / 0.5248 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002151/0.01277, allocations: 4 kB / 0.5248 GB, free: 13.7 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.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 0.0001206/0.01289, allocations: 100.6 kB / 0.5249 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 8.972e-05/0.01298, allocations: 27.61 kB / 0.5249 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.243e-06/0.01298, allocations: 0.6562 kB / 0.5249 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 2.934e-05/0.01301, allocations: 19.67 kB / 0.5249 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.01323, allocations: 4.625 kB / 0.525 GB, free: 13.53 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002488/0.01348, allocations: 125.6 kB / 0.5251 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.76e-05/0.01351, allocations: 59.34 kB / 0.5251 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 2.442e-05/0.01354, allocations: 4 kB / 0.5251 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.423e-05/0.01356, allocations: 8.5 kB / 0.5251 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of SimCode: time 3.91e-07/0.01356, allocations: 0 / 0.5251 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of Templates: time 0.002525/0.01609, allocations: 0.7546 MB / 0.5259 GB, free: 12.57 MB / 0.4948 GB " [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 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.895865928148851]