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.00112/0.00112, allocations: 81.95 kB / 19.87 MB, free: 4.621 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.001173/0.001173, allocations: 169.7 kB / 23.27 MB, free: 1.227 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.9965/0.9965, allocations: 177.1 MB / 203.7 MB, free: 5.523 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.7704/0.7704, allocations: 154.6 MB / 414.8 MB, free: 0.5273 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.613e-06/1.613e-06, allocations: 0 / 0.5208 GB, free: 1.84 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.67e-05/1.831e-05, allocations: 4.688 kB / 0.5208 GB, free: 1.836 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.00102/0.001039, allocations: 0.6067 MB / 0.5214 GB, free: 1.246 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002021/0.001241, allocations: 39.88 kB / 0.5214 GB, free: 1.207 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.622e-05/0.001257, allocations: 0.5625 kB / 0.5214 GB, free: 1.207 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 1.479e-05/0.001272, allocations: 1.516 kB / 0.5214 GB, free: 1.207 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 6.321e-06/0.001278, allocations: 0 / 0.5214 GB, free: 1.207 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000201/0.001479, allocations: 20.45 kB / 0.5215 GB, free: 1.188 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 4.033e-05/0.001519, allocations: 9.297 kB / 0.5215 GB, free: 1.18 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.239e-05/0.001552, allocations: 1.469 kB / 0.5215 GB, free: 1.18 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.814e-05/0.00158, allocations: 3.984 kB / 0.5215 GB, free: 1.176 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.832e-05/0.001598, allocations: 4 kB / 0.5215 GB, free: 1.172 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.278e-05/0.001611, allocations: 0 / 0.5215 GB, free: 1.172 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.493e-05/0.001686, allocations: 8.938 kB / 0.5215 GB, free: 1.164 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 9.248e-06/0.001695, allocations: 0.7656 kB / 0.5215 GB, free: 1.164 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 9.137e-06/0.001704, allocations: 1.406 kB / 0.5215 GB, free: 1.164 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 7.377e-05/0.001778, allocations: 16.84 kB / 0.5215 GB, free: 1.148 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.903e-06/0.00178, allocations: 0 / 0.5215 GB, free: 1.148 MB / 490.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.001781, allocations: 0 / 0.5215 GB, free: 1.148 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.396e-06/0.001784, allocations: 1.156 kB / 0.5215 GB, free: 1.148 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.0002089/0.001993, allocations: 340.4 kB / 0.5218 GB, free: 0.7773 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.002028, allocations: 8.797 kB / 0.5218 GB, free: 0.7695 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.298e-05/0.002051, allocations: 5.75 kB / 0.5219 GB, free: 0.7656 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.117e-05/0.002102, allocations: 108.6 kB / 0.522 GB, free: 0.6328 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.253e-06/0.002109, allocations: 1.656 kB / 0.522 GB, free: 0.6328 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.521e-06/0.002114, allocations: 4.312 kB / 0.522 GB, free: 0.6289 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.715e-05/0.002172, allocations: 34.25 kB / 0.522 GB, free: 0.5898 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.22e-06/0.002177, allocations: 1.531 kB / 0.522 GB, free: 0.5898 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.58e-06/0.002182, allocations: 4.312 kB / 0.522 GB, free: 0.5859 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.002186, allocations: 384 / 0.522 GB, free: 0.5859 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.767e-05/0.002204, allocations: 7.938 kB / 0.522 GB, free: 0.5781 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.064e-05/0.002285, allocations: 97.98 kB / 0.5221 GB, free: 468 kB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.748e-05/0.002322, allocations: 36.92 kB / 0.5221 GB, free: 420 kB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.384e-05/0.002336, allocations: 19.59 kB / 0.5222 GB, free: 396 kB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.443e-05/0.00243, allocations: 4.062 kB / 0.5222 GB, free: 392 kB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.765e-05/0.002448, allocations: 37.39 kB / 0.5222 GB, free: 344 kB / 490.7 MB Notification: Performance of pre-optimization done (n=2): time 7.31e-07/0.002449, allocations: 0 / 0.5222 GB, free: 344 kB / 490.7 MB Notification: Performance of matching and sorting (n=2): time 8.672e-05/0.002536, allocations: 39.75 kB / 0.5222 GB, free: 300 kB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.152e-05/0.002557, allocations: 51.41 kB / 0.5223 GB, free: 236 kB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.081e-05/0.002598, allocations: 146.2 kB / 0.5224 GB, free: 76 kB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.975e-06/0.002606, allocations: 25.7 kB / 0.5224 GB, free: 44 kB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.864e-05/0.002645, allocations: 128.3 kB / 0.5226 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.427e-05/0.002659, allocations: 4.297 kB / 0.5226 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.98e-05/0.002679, allocations: 19.38 kB / 0.5226 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.002783, allocations: 0.4883 MB / 0.5231 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.553e-06/0.00279, allocations: 8.906 kB / 0.5231 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.819e-06/0.002795, allocations: 0 / 0.5231 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.355e-05/0.002818, allocations: 12.88 kB / 0.5231 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.00282, allocations: 0 / 0.5231 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.778e-05/0.002857, allocations: 38.39 kB / 0.5231 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.002869, allocations: 11.98 kB / 0.5231 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.002873, allocations: 0.5 kB / 0.5231 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.927e-06/0.002882, allocations: 0 / 0.5231 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.088e-05/0.002923, allocations: 4.969 kB / 0.5231 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.836e-06/0.002926, allocations: 0 / 0.5231 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.945e-06/0.002934, allocations: 5.156 kB / 0.5231 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-06/0.002936, allocations: 0 / 0.5231 GB, free: 15.3 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 (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 6.07e-05/0.002997, allocations: 160.5 kB / 0.5233 GB, free: 15.13 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.427e-06/0.003, allocations: 4.5 kB / 0.5233 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.848e-05/0.003059, allocations: 46.22 kB / 0.5233 GB, free: 15.08 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.00306, allocations: 4 kB / 0.5234 GB, free: 15.08 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.003062, allocations: 0 / 0.5234 GB, free: 15.08 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.003065, allocations: 0 / 0.5234 GB, free: 15.08 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.621e-05/0.003121, allocations: 93.2 kB / 0.5234 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.003122, allocations: 5.625 kB / 0.5234 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.144e-05/0.003133, allocations: 11.98 kB / 0.5235 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.003135, allocations: 0 / 0.5235 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.457e-06/0.003138, allocations: 0 / 0.5235 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-07/0.003139, allocations: 6.438 kB / 0.5235 GB, free: 14.94 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.00314, allocations: 3.984 kB / 0.5235 GB, free: 14.94 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.427e-05/0.003194, allocations: 80.31 kB / 0.5235 GB, free: 14.84 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.398e-06/0.003199, allocations: 0 / 0.5235 GB, free: 14.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.935e-06/0.003207, allocations: 4 kB / 0.5235 GB, free: 14.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.438e-06/0.003211, allocations: 0 / 0.5235 GB, free: 14.83 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.015e-05/0.003231, allocations: 2.562 kB / 0.5235 GB, free: 14.83 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-06/0.003233, allocations: 0 / 0.5235 GB, free: 14.83 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002899/0.003523, allocations: 119.2 kB / 0.5237 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5e-08/0.003523, allocations: 0 / 0.5237 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0001097/0.003632, allocations: 4 kB / 0.5237 GB, free: 14.71 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 9.302e-05/0.003725, allocations: 104.2 kB / 0.5238 GB, free: 14.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 4.84e-05/0.003774, allocations: 19.62 kB / 0.5238 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.052e-06/0.003775, allocations: 1 kB / 0.5238 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 1.219e-05/0.003787, allocations: 15.67 kB / 0.5238 GB, free: 14.56 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.863e-05/0.003876, allocations: 17.95 kB / 0.5238 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00013/0.004006, allocations: 85.36 kB / 0.5239 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.234e-05/0.004028, allocations: 51.36 kB / 0.5239 GB, free: 14.36 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 1.028e-05/0.004038, allocations: 4 kB / 0.524 GB, free: 14.36 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.047e-05/0.004069, allocations: 70.19 kB / 0.524 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of SimCode: time 5.01e-07/0.004069, allocations: 0 / 0.524 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of Templates: time 0.001498/0.005567, allocations: 373.5 kB / 0.5244 GB, free: 13.94 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=240 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.575207285117358]