Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008272/0.0008271, allocations: 97.73 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001032/0.001032, allocations: 203.2 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.7 MB / 247.5 MB, free: 11.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1881/0.1881, allocations: 46.18 MB / 345.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002696/0.0002697, allocations: 11.98 kB / 420.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1034, allocations: 63.55 MB / 483.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0006667/0.1041, allocations: 274.8 kB / 484 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.1052, allocations: 0.5953 MB / 484.6 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.519e-05/0.1053, allocations: 3.938 kB / 484.6 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.525e-05/0.1054, allocations: 0 / 484.6 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.238e-06/0.1054, allocations: 0 / 484.6 MB, free: 3.297 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:842:5-926:22:writable] Warning: Pure function ‘ModelicaTest.Math.Random.randomNumbers‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006492/0.106, allocations: 179.6 kB / 484.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.142e-05/0.1061, allocations: 19.98 kB / 484.8 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.176e-05/0.1062, allocations: 4 kB / 484.8 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.384e-05/0.1062, allocations: 15.92 kB / 484.8 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.928e-05/0.1062, allocations: 24.47 kB / 484.8 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.588e-06/0.1063, allocations: 4 kB / 484.8 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002749/0.1065, allocations: 163.7 kB / 485 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.445e-05/0.1066, allocations: 64.38 kB / 485.1 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.5e-05/0.1067, allocations: 77.31 kB / 485.1 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002131/0.1069, allocations: 143.8 kB / 485.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.107, allocations: 0 / 485.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.107, allocations: 0 / 485.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.107, allocations: 0 / 485.3 MB, free: 2.605 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0004528/0.1074, allocations: 460.8 kB / 485.7 MB, free: 2.109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.1075, allocations: 16.81 kB / 485.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.231e-05/0.1075, allocations: 20.75 kB / 485.8 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.644e-05/0.1076, allocations: 184.1 kB / 485.9 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.1077, allocations: 12.38 kB / 486 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.012e-05/0.1077, allocations: 28.36 kB / 486 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.1079, allocations: 128.4 kB / 486.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.894e-06/0.1079, allocations: 0 / 486.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.1079, allocations: 3.938 kB / 486.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1079, allocations: 0 / 486.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.644e-05/0.108, allocations: 92.41 kB / 486.2 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001959/0.1082, allocations: 234.2 kB / 486.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/0.1084, allocations: 167 kB / 486.6 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001258/0.1085, allocations: 153.7 kB / 486.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.452e-06/0.1085, allocations: 0 / 486.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001955/0.1087, allocations: 173.9 kB / 486.9 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.613e-06/0.1087, allocations: 4 kB / 486.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001041/0.1098, allocations: 0.7772 MB / 487.7 MB, free: 20 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.393e-05/0.1099, allocations: 99.8 kB / 487.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.579e-05/0.11, allocations: 125.5 kB / 487.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.272e-05/0.11, allocations: 65.69 kB / 488 MB, free: 15.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.437e-05/0.1101, allocations: 93.45 kB / 488.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.1102, allocations: 134.5 kB / 488.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.963e-05/0.1103, allocations: 93.67 kB / 488.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1104, allocations: 346.8 kB / 488.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002741/0.1107, allocations: 185.9 kB / 488.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004984/0.1112, allocations: 0.5369 MB / 489.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008671/0.1121, allocations: 0.7749 MB / 490.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.719e-06/0.1121, allocations: 4 kB / 490.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001016/0.1131, allocations: 0.7395 MB / 490.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.1132, allocations: 12.19 kB / 490.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.304e-05/0.1132, allocations: 16 kB / 490.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.81e-05/0.1132, allocations: 16 kB / 490.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003403/0.1136, allocations: 123.7 kB / 491 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.475e-05/0.1136, allocations: 23.88 kB / 491.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002083/0.1138, allocations: 63.38 kB / 491.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.153e-05/0.1139, allocations: 44 kB / 491.2 MB, free: 12.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 107 (state33[33],$PRE.state33[33],state33[32],$PRE.state33[32],state33[31],$PRE.state33[31],state33[30],$PRE.state33[30],state33[29],$PRE.state33[29],state33[28],$PRE.state33[28],state33[27],$PRE.state33[27],state33[26],$PRE.state33[26],state33[25],$PRE.state33[25],state33[24],$PRE.state33[24],state33[23],$PRE.state33[23],state33[22],$PRE.state33[22],state33[21],$PRE.state33[21],state33[20],$PRE.state33[20],state33[19],$PRE.state33[19],state33[18],$PRE.state33[18],state33[17],$PRE.state33[17],state33[16],$PRE.state33[16],state33[15],$PRE.state33[15],state33[14],$PRE.state33[14],state33[13],$PRE.state33[13],state33[12],$PRE.state33[12],state33[11],$PRE.state33[11],state33[10],$PRE.state33[10],state33[9],$PRE.state33[9],state33[8],$PRE.state33[8],state33[7],$PRE.state33[7],state33[6],$PRE.state33[6],state33[5],$PRE.state33[5],state33[4],$PRE.state33[4],state33[3],$PRE.state33[3],state33[2],$PRE.state33[2],state33[1],$PRE.state33[1],state4c[4],$PRE.state4c[4],state4c[3],$PRE.state4c[3],state4c[2],$PRE.state4c[2],state4c[1],$PRE.state4c[1],state4b[4],$PRE.state4b[4],state4b[3],$PRE.state4b[3],state4b[2],$PRE.state4b[2],state4b[1],$PRE.state4b[1],state4a[4],$PRE.state4a[4],state4a[3],$PRE.state4a[3],state4a[2],$PRE.state4a[2],state4a[1],$PRE.state4a[1],state2[2],$PRE.state2[2],state2[1],$PRE.state2[1],r33,$PRE.r33,r4c,$PRE.r4c,r4b,$PRE.r4b,r4a,$PRE.r4a,r2,$PRE.r2,result,$PRE.result,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 107 * 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 0.0002249/0.1141, allocations: 245.4 kB / 491.4 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.818e-05/0.1141, allocations: 11.75 kB / 491.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.046e-05/0.1141, allocations: 13.8 kB / 491.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.1142, allocations: 0 / 491.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.1142, allocations: 4 kB / 491.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1142, allocations: 4 kB / 491.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001443/0.1143, allocations: 193.7 kB / 491.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1143, allocations: 0 / 491.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.089e-06/0.1143, allocations: 3.938 kB / 491.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.1143, allocations: 0 / 491.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.1144, allocations: 4 kB / 491.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.1144, allocations: 0 / 491.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1144, allocations: 0 / 491.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008485/0.1152, allocations: 0.6225 MB / 492.3 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.409e-05/0.1153, allocations: 104.8 kB / 492.4 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.124e-05/0.1153, allocations: 0 / 492.4 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.284e-05/0.1153, allocations: 4 kB / 492.4 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.191e-05/0.1153, allocations: 7.922 kB / 492.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-06/0.1154, allocations: 0 / 492.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.413e-05/0.1154, allocations: 75.28 kB / 492.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1154, allocations: 0 / 492.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004624/0.1159, allocations: 95.98 kB / 492.5 MB, free: 10.69 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 54 ($whenCondition1,result,r2,r4a,r4b,r4c,r33,state2[1],state2[2],state4a[1],state4a[2],state4a[3],state4a[4],state4b[1],state4b[2],state4b[3],state4b[4],state4c[1],state4c[2],state4c[3],state4c[4],state33[1],state33[2],state33[3],state33[4],state33[5],state33[6],state33[7],state33[8],state33[9],state33[10],state33[11],state33[12],state33[13],state33[14],state33[15],state33[16],state33[17],state33[18],state33[19],state33[20],state33[21],state33[22],state33[23],state33[24],state33[25],state33[26],state33[27],state33[28],state33[29],state33[30],state33[31],state33[32],state33[33]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005203/0.1164, allocations: 262.3 kB / 492.8 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005773/0.117, allocations: 473 kB / 493.3 MB, free: 10 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.117, allocations: 0 / 493.3 MB, free: 10 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001377/0.1171, allocations: 161 kB / 493.4 MB, free: 9.844 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001396/0.1173, allocations: 10.19 kB / 493.4 MB, free: 9.836 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005684/0.1179, allocations: 0.4927 MB / 493.9 MB, free: 9.309 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.1182, allocations: 0.7336 MB / 494.6 MB, free: 8.547 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.521e-05/0.1182, allocations: 19.44 kB / 494.7 MB, free: 8.527 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1182, allocations: 4 kB / 494.7 MB, free: 8.523 MB / 366.1 MB Notification: Performance of Templates: time 0.005948/0.1242, allocations: 3.784 MB / 498.5 MB, free: 4.734 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches