Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001147, allocations: 110.1 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 199.3 kB / 19.23 MB, free: 3.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 242.9 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2096/0.2096, allocations: 44.17 MB / 337.3 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 66.89 kB / 409.1 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.134, allocations: 60.82 MB / 469.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.002315/0.1363, allocations: 0.523 MB / 470.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001216/0.1376, allocations: 0.6104 MB / 471.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.063e-05/0.1376, allocations: 0 / 471.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.402e-05/0.1377, allocations: 3.938 kB / 471.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.869e-06/0.1377, allocations: 0 / 471.1 MB, free: 13.25 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.0007686/0.1385, allocations: 198.7 kB / 471.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.859e-05/0.1386, allocations: 31.92 kB / 471.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.827e-05/0.1386, allocations: 3.984 kB / 471.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.309e-05/0.1387, allocations: 15.92 kB / 471.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.387e-05/0.1387, allocations: 20.2 kB / 471.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.305e-05/0.1388, allocations: 3.938 kB / 471.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002836/0.1391, allocations: 163.8 kB / 471.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.89e-05/0.1392, allocations: 64.09 kB / 471.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.286e-05/0.1392, allocations: 43.69 kB / 471.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002981/0.1395, allocations: 211.4 kB / 471.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1395, allocations: 0 / 471.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1396, allocations: 0 / 471.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.8e-06/0.1396, allocations: 8 kB / 471.8 MB, free: 12.5 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.0006184/0.1402, allocations: 492.7 kB / 472.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.1402, allocations: 12.03 kB / 472.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.225e-05/0.1403, allocations: 16.75 kB / 472.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.1404, allocations: 176.2 kB / 472.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.1405, allocations: 16.38 kB / 472.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.213e-05/0.1405, allocations: 24.36 kB / 472.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001949/0.1407, allocations: 132.4 kB / 472.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.1407, allocations: 7.938 kB / 472.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.1407, allocations: 0 / 472.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.1408, allocations: 0 / 472.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.709e-05/0.1409, allocations: 96.41 kB / 472.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002293/0.1411, allocations: 234.2 kB / 473 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001618/0.1413, allocations: 163 kB / 473.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001326/0.1414, allocations: 149.7 kB / 473.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.936e-06/0.1414, allocations: 0 / 473.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002874/0.1417, allocations: 173.9 kB / 473.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.182e-06/0.1417, allocations: 0 / 473.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001232/0.143, allocations: 0.7732 MB / 474.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.1431, allocations: 107.8 kB / 474.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.884e-05/0.1431, allocations: 117.7 kB / 474.5 MB, free: 9.664 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.906e-05/0.1432, allocations: 73.67 kB / 474.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.375e-05/0.1433, allocations: 85.45 kB / 474.6 MB, free: 9.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.1434, allocations: 138.6 kB / 474.7 MB, free: 9.363 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001945/0.1436, allocations: 162.7 kB / 474.9 MB, free: 9.199 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.1438, allocations: 346.8 kB / 475.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003126/0.1441, allocations: 181.9 kB / 475.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006118/0.1448, allocations: 0.5408 MB / 476 MB, free: 7.969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009438/0.1457, allocations: 0.771 MB / 476.7 MB, free: 7.031 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.1457, allocations: 7.938 kB / 476.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001039/0.1468, allocations: 0.7433 MB / 477.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/0.1468, allocations: 12 kB / 477.5 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.1468, allocations: 12 kB / 477.5 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.069e-05/0.1469, allocations: 19.94 kB / 477.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003746/0.1472, allocations: 111.8 kB / 477.6 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.192e-05/0.1473, allocations: 35.8 kB / 477.7 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002239/0.1475, allocations: 63.38 kB / 477.7 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.467e-05/0.1476, allocations: 44.33 kB / 477.8 MB, free: 5.98 MB / 350.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.0002727/0.1479, allocations: 245.4 kB / 478 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.805e-05/0.1479, allocations: 15.75 kB / 478 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.229e-05/0.1479, allocations: 9.875 kB / 478 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.1479, allocations: 0 / 478 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.148, allocations: 0 / 478 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.148, allocations: 3.984 kB / 478 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001969/0.1482, allocations: 197.8 kB / 478.2 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1482, allocations: 0 / 478.2 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.766e-06/0.1482, allocations: 3.938 kB / 478.2 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1482, allocations: 0 / 478.2 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.323e-06/0.1482, allocations: 0 / 478.2 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1482, allocations: 0 / 478.2 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.1482, allocations: 8 kB / 478.3 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009282/0.1492, allocations: 0.6108 MB / 478.9 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.897e-05/0.1492, allocations: 108.7 kB / 479 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.237e-05/0.1492, allocations: 0 / 479 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.279e-05/0.1493, allocations: 0 / 479 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.772e-05/0.1493, allocations: 3.938 kB / 479 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.176e-06/0.1493, allocations: 7.984 kB / 479 MB, free: 4.676 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.924e-05/0.1493, allocations: 75.28 kB / 479.1 MB, free: 4.602 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1494, allocations: 4.031 kB / 479.1 MB, free: 4.598 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005297/0.1499, allocations: 92 kB / 479.1 MB, free: 4.508 MB / 350.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.0006145/0.1505, allocations: 270.4 kB / 479.4 MB, free: 4.273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006538/0.1512, allocations: 469.5 kB / 479.9 MB, free: 3.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.1512, allocations: 4 kB / 479.9 MB, free: 3.816 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.1513, allocations: 160.4 kB / 480 MB, free: 3.656 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001624/0.1515, allocations: 4 kB / 480 MB, free: 3.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000624/0.1521, allocations: 486.8 kB / 480.5 MB, free: 3.145 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.1524, allocations: 0.7334 MB / 481.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.388e-05/0.1525, allocations: 19.44 kB / 481.3 MB, free: 2.363 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1525, allocations: 4 kB / 481.3 MB, free: 2.359 MB / 350.1 MB Notification: Performance of Templates: time 0.006916/0.1594, allocations: 3.792 MB / 485.1 MB, free: 14.56 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches