Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001697/0.001697, allocations: 110.4 kB / 21.17 MB, free: 0.7852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002298/0.002298, allocations: 220.1 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.481/1.481, allocations: 230.5 MB / 258.1 MB, free: 8.137 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers") translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 67.83 kB / 378.7 MB, free: 2.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2739, allocations: 53.3 MB / 432 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.003402/0.2773, allocations: 1.253 MB / 433.3 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.2789, allocations: 469.5 kB / 433.7 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.309e-05/0.2789, allocations: 4 kB / 433.7 MB, free: 5.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.275e-05/0.2789, allocations: 7.922 kB / 433.8 MB, free: 5.684 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeBindings: time 0.0005627/0.2795, allocations: 75.73 kB / 433.8 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001924/0.2797, allocations: 59.81 kB / 433.9 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001204/0.2798, allocations: 47.84 kB / 433.9 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.41e-05/0.2798, allocations: 4 kB / 433.9 MB, free: 5.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.361e-05/0.2799, allocations: 19.97 kB / 434 MB, free: 5.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.858e-05/0.2799, allocations: 23.91 kB / 434 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.531e-05/0.28, allocations: 4 kB / 434 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003172/0.2803, allocations: 127.7 kB / 434.1 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.529e-05/0.2803, allocations: 31.92 kB / 434.1 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.426e-05/0.2804, allocations: 51.61 kB / 434.2 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003623/0.2808, allocations: 180.8 kB / 434.4 MB, free: 5.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.2808, allocations: 0 / 434.4 MB, free: 5.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2808, allocations: 4 kB / 434.4 MB, free: 5.066 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.2808, allocations: 0 / 434.4 MB, free: 5.066 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008542/0.2816, allocations: 0.5682 MB / 434.9 MB, free: 4.434 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.2817, allocations: 8.031 kB / 434.9 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.2818, allocations: 20.84 kB / 435 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001842/0.282, allocations: 184.1 kB / 435.1 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.282, allocations: 4.375 kB / 435.1 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.859e-05/0.282, allocations: 4.375 kB / 435.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003591/0.2824, allocations: 283.7 kB / 435.4 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.2824, allocations: 4.188 kB / 435.4 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.742e-05/0.2824, allocations: 3.938 kB / 435.4 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.2824, allocations: 0 / 435.4 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001732/0.2826, allocations: 143.9 kB / 435.6 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002289/0.2828, allocations: 202.2 kB / 435.8 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002297/0.283, allocations: 181.1 kB / 436 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.2832, allocations: 157.6 kB / 436.1 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.606e-06/0.2832, allocations: 0 / 436.1 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004849/0.2837, allocations: 480.8 kB / 436.6 MB, free: 2.621 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 2.806e-06/0.2837, allocations: 4 kB / 436.6 MB, free: 2.617 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.000885/0.2846, allocations: 0.7389 MB / 437.3 MB, free: 1.859 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.2847, allocations: 160.5 kB / 437.5 MB, free: 1.672 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.404e-05/0.2848, allocations: 101.8 kB / 437.6 MB, free: 1.562 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.2848, allocations: 29.7 kB / 437.6 MB, free: 1.527 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.297e-05/0.2848, allocations: 81.14 kB / 437.7 MB, free: 1.445 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.524e-05/0.2849, allocations: 95.2 kB / 437.8 MB, free: 1.352 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.523e-05/0.285, allocations: 41.69 kB / 437.8 MB, free: 1.305 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.2851, allocations: 330.9 kB / 438.1 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.793e-05/0.2852, allocations: 80.34 kB / 438.2 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.2853, allocations: 114.2 kB / 438.3 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003631/0.2857, allocations: 417.3 kB / 438.7 MB, free: 348 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2857, allocations: 0 / 438.7 MB, free: 348 kB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003913/0.2861, allocations: 352.8 kB / 439.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.803e-05/0.2862, allocations: 107.3 kB / 439.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2862, allocations: 4 kB / 439.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.2862, allocations: 4.094 kB / 439.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.2862, allocations: 0 / 439.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.2862, allocations: 7.922 kB / 439.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.093e-05/0.2862, allocations: 27.84 kB / 439.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.2863, allocations: 8 kB / 439.2 MB, free: 15.81 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 (state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],r1024,r128,r64,$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0002677/0.2865, allocations: 291.7 kB / 439.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.919e-05/0.2866, allocations: 35.84 kB / 439.6 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.397e-05/0.2866, allocations: 5.562 kB / 439.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.2866, allocations: 0 / 439.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2866, allocations: 0 / 439.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.2866, allocations: 0 / 439.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002247/0.2868, allocations: 237.4 kB / 439.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.2868, allocations: 0 / 439.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.2868, allocations: 4 kB / 439.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.2868, allocations: 7.938 kB / 439.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.023e-05/0.2869, allocations: 15.98 kB / 439.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.2869, allocations: 4 kB / 439.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2869, allocations: 0 / 439.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001326/0.2882, allocations: 1.252 MB / 441.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.175e-05/0.2883, allocations: 96.91 kB / 441.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.2884, allocations: 75.91 kB / 441.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.434e-05/0.2884, allocations: 8 kB / 441.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.2885, allocations: 11.98 kB / 441.3 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-05/0.2885, allocations: 19.94 kB / 441.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.79e-05/0.2885, allocations: 87.2 kB / 441.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2885, allocations: 0 / 441.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003217/0.2889, allocations: 87.88 kB / 441.5 MB, free: 13.46 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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.0005733/0.2894, allocations: 306.8 kB / 441.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001099/0.2905, allocations: 1.068 MB / 442.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2905, allocations: 0 / 442.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000819/0.2914, allocations: 0.8967 MB / 443.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001905/0.2915, allocations: 16 kB / 443.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005927/0.2921, allocations: 400.2 kB / 444.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003402/0.2925, allocations: 0.7206 MB / 444.8 MB, free: 9.992 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.083e-05/0.2925, allocations: 4 kB / 444.9 MB, free: 9.988 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.362e-05/0.2925, allocations: 7.438 kB / 444.9 MB, free: 9.98 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2925, allocations: 0 / 444.9 MB, free: 9.98 MB / 350.1 MB Notification: Performance of Templates: time 0.006371/0.2989, allocations: 3.084 MB / 447.9 MB, free: 6.906 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.55892337905243]