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.001052/0.001052, allocations: 108.3 kB / 18.41 MB, free: 4.566 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.00112/0.00112, allocations: 187 kB / 19.33 MB, free: 3.641 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.485/1.485, allocations: 222.9 MB / 243 MB, free: 15.08 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.2129/0.2129, allocations: 44.18 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002153/0.002154, allocations: 67.11 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1307, allocations: 60.81 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001762/0.1325, allocations: 0.5406 MB / 471.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.1336, allocations: 0.595 MB / 471.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.849e-05/0.1336, allocations: 3.938 kB / 471.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.837e-05/0.1337, allocations: 3.938 kB / 471.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.508e-06/0.1338, allocations: 0 / 471.9 MB, free: 12.51 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.0007648/0.1345, allocations: 206.1 kB / 472.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.126e-05/0.1346, allocations: 31.91 kB / 472.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.66e-05/0.1347, allocations: 4 kB / 472.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.086e-05/0.1347, allocations: 19.97 kB / 472.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.016e-05/0.1347, allocations: 12.2 kB / 472.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.073e-05/0.1348, allocations: 4 kB / 472.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002947/0.1351, allocations: 171.7 kB / 472.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.482e-05/0.1351, allocations: 56.11 kB / 472.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.648e-05/0.1352, allocations: 55.61 kB / 472.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003136/0.1355, allocations: 203.4 kB / 472.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1356, allocations: 0 / 472.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.1356, allocations: 3.984 kB / 472.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.1356, allocations: 4 kB / 472.6 MB, free: 11.75 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.000517/0.1361, allocations: 492.5 kB / 473.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1361, allocations: 8.031 kB / 473.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.194e-05/0.1362, allocations: 16.75 kB / 473.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.462e-05/0.1363, allocations: 180.1 kB / 473.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.804e-05/0.1363, allocations: 16.38 kB / 473.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.281e-05/0.1364, allocations: 16.38 kB / 473.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001643/0.1365, allocations: 136.4 kB / 473.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.1366, allocations: 4 kB / 473.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.1366, allocations: 0 / 473.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.1366, allocations: 0 / 473.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001001/0.1367, allocations: 96.41 kB / 473.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002099/0.1369, allocations: 222.2 kB / 473.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001429/0.1371, allocations: 170.9 kB / 473.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.1372, allocations: 161.7 kB / 474.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.482e-06/0.1372, allocations: 0 / 474.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000211/0.1374, allocations: 165.9 kB / 474.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.675e-06/0.1374, allocations: 0 / 474.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001032/0.1385, allocations: 0.7809 MB / 475 MB, free: 9.156 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.189e-05/0.1385, allocations: 107.8 kB / 475.1 MB, free: 9.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.941e-05/0.1386, allocations: 117.7 kB / 475.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.923e-05/0.1387, allocations: 69.67 kB / 475.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.736e-05/0.1387, allocations: 93.45 kB / 475.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.1388, allocations: 134.6 kB / 475.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.139, allocations: 162.7 kB / 475.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.1391, allocations: 342.8 kB / 476 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002685/0.1394, allocations: 185.8 kB / 476.2 MB, free: 7.922 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004841/0.1399, allocations: 0.5292 MB / 476.7 MB, free: 7.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008575/0.1408, allocations: 0.7788 MB / 477.5 MB, free: 6.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.457e-06/0.1408, allocations: 11.94 kB / 477.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001041/0.1418, allocations: 0.7433 MB / 478.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.1418, allocations: 15.28 kB / 478.3 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.933e-05/0.1419, allocations: 12 kB / 478.3 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.807e-05/0.1419, allocations: 16 kB / 478.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003381/0.1423, allocations: 119.7 kB / 478.4 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.632e-05/0.1423, allocations: 23.92 kB / 478.5 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002154/0.1425, allocations: 67.38 kB / 478.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.164e-05/0.1426, allocations: 44.34 kB / 478.6 MB, free: 5.234 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.0002219/0.1428, allocations: 245.4 kB / 478.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.587e-05/0.1428, allocations: 11.75 kB / 478.8 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.958e-05/0.1429, allocations: 9.875 kB / 478.8 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1429, allocations: 0 / 478.8 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.1429, allocations: 0 / 478.8 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.1429, allocations: 4 kB / 478.8 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001524/0.143, allocations: 189.8 kB / 479 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.143, allocations: 0 / 479 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.003e-06/0.1431, allocations: 7.922 kB / 479 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.1431, allocations: 0 / 479 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.647e-06/0.1431, allocations: 7.938 kB / 479 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.1431, allocations: 3.984 kB / 479 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1431, allocations: 4 kB / 479 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008218/0.1439, allocations: 0.6108 MB / 479.7 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.683e-05/0.144, allocations: 108.7 kB / 479.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.364e-05/0.144, allocations: 0 / 479.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.354e-05/0.144, allocations: 3.938 kB / 479.8 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.899e-05/0.144, allocations: 4 kB / 479.8 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.059e-06/0.144, allocations: 0 / 479.8 MB, free: 3.934 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.16e-05/0.1441, allocations: 75.28 kB / 479.8 MB, free: 3.859 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1441, allocations: 4.031 kB / 479.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000479/0.1446, allocations: 95.98 kB / 479.9 MB, free: 3.762 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.0005094/0.1451, allocations: 258.2 kB / 480.2 MB, free: 3.535 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005922/0.1457, allocations: 481.4 kB / 480.7 MB, free: 3.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1457, allocations: 0 / 480.7 MB, free: 3.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.1458, allocations: 156.4 kB / 480.8 MB, free: 2.914 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001412/0.146, allocations: 7.094 kB / 480.8 MB, free: 2.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005261/0.1465, allocations: 449 kB / 481.3 MB, free: 2.445 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.1469, allocations: 0.7336 MB / 482 MB, free: 1.684 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.303e-05/0.1469, allocations: 43.59 kB / 482 MB, free: 1.641 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.651e-05/0.147, allocations: 27.44 kB / 482.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.147, allocations: 0 / 482.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of Templates: time 0.006518/0.1535, allocations: 2.969 MB / 485 MB, free: 14.64 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 -s gbode -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