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.001158/0.001158, allocations: 109.3 kB / 18.39 MB, free: 4.629 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.001314/0.001314, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.417/1.417, allocations: 222.9 MB / 243 MB, free: 15.07 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.2314/0.2314, allocations: 44.18 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 68.28 kB / 409.9 MB, free: 26.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1373, allocations: 60.82 MB / 470.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001841/0.1392, allocations: 0.5331 MB / 471.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001266/0.1405, allocations: 0.6065 MB / 471.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.571e-05/0.1406, allocations: 3.938 kB / 471.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.808e-05/0.1407, allocations: 7.938 kB / 471.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.1407, allocations: 0 / 471.9 MB, free: 12.47 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.0008174/0.1415, allocations: 199.3 kB / 472 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.236e-05/0.1416, allocations: 31.95 kB / 472.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.777e-05/0.1417, allocations: 0 / 472.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.402e-05/0.1417, allocations: 19.92 kB / 472.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.044e-05/0.1418, allocations: 8.219 kB / 472.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.1418, allocations: 4 kB / 472.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002873/0.1421, allocations: 171.7 kB / 472.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.1422, allocations: 56.16 kB / 472.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.339e-05/0.1423, allocations: 55.62 kB / 472.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002877/0.1426, allocations: 203.4 kB / 472.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.147e-06/0.1426, allocations: 4 kB / 472.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1426, allocations: 0 / 472.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.1426, allocations: 0 / 472.6 MB, free: 11.73 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.0005831/0.1432, allocations: 496.4 kB / 473.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.1432, allocations: 8.031 kB / 473.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.527e-05/0.1433, allocations: 16.75 kB / 473.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000135/0.1434, allocations: 184.1 kB / 473.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.1434, allocations: 20.38 kB / 473.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.799e-05/0.1435, allocations: 16.38 kB / 473.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001935/0.1437, allocations: 132.4 kB / 473.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.1437, allocations: 0 / 473.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.1437, allocations: 0 / 473.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.1437, allocations: 3.984 kB / 473.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.703e-05/0.1438, allocations: 96.41 kB / 473.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002153/0.144, allocations: 226.2 kB / 473.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001554/0.1442, allocations: 170.9 kB / 473.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.1444, allocations: 157.7 kB / 474.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.258e-06/0.1444, allocations: 4 kB / 474.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002357/0.1446, allocations: 161.9 kB / 474.2 MB, free: 9.918 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.382e-06/0.1446, allocations: 0 / 474.2 MB, free: 9.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001101/0.1457, allocations: 0.781 MB / 475 MB, free: 9.129 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.869e-05/0.1458, allocations: 103.8 kB / 475.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.291e-05/0.1459, allocations: 125.7 kB / 475.3 MB, free: 8.883 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.178e-05/0.146, allocations: 65.69 kB / 475.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.24e-05/0.146, allocations: 93.45 kB / 475.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.1462, allocations: 134.5 kB / 475.5 MB, free: 8.586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001527/0.1463, allocations: 162.7 kB / 475.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1465, allocations: 342.8 kB / 476 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003053/0.1468, allocations: 185.9 kB / 476.2 MB, free: 7.895 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005683/0.1473, allocations: 0.5331 MB / 476.7 MB, free: 7.199 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008983/0.1482, allocations: 0.7827 MB / 477.5 MB, free: 6.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/0.1483, allocations: 4 kB / 477.5 MB, free: 6.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009999/0.1493, allocations: 0.7428 MB / 478.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.1493, allocations: 12 kB / 478.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.1493, allocations: 12.84 kB / 478.3 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.995e-05/0.1494, allocations: 16 kB / 478.3 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003362/0.1497, allocations: 127.7 kB / 478.4 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.201e-05/0.1497, allocations: 19.94 kB / 478.5 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002001/0.1499, allocations: 63.38 kB / 478.5 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/0.15, allocations: 40 kB / 478.6 MB, free: 5.211 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.0002305/0.1502, allocations: 245.4 kB / 478.8 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.907e-05/0.1502, allocations: 15.75 kB / 478.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.208e-05/0.1503, allocations: 9.859 kB / 478.8 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1503, allocations: 0 / 478.8 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.1503, allocations: 0 / 478.8 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.1503, allocations: 0 / 478.8 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001574/0.1505, allocations: 193.8 kB / 479 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1505, allocations: 4 kB / 479 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.06e-06/0.1505, allocations: 7.938 kB / 479 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.1505, allocations: 0 / 479 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.495e-06/0.1505, allocations: 4 kB / 479 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1505, allocations: 0 / 479 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1505, allocations: 0 / 479 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008433/0.1514, allocations: 0.6225 MB / 479.7 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.627e-05/0.1514, allocations: 100.7 kB / 479.8 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.1515, allocations: 0 / 479.8 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.601e-05/0.1515, allocations: 4.031 kB / 479.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.909e-05/0.1515, allocations: 7.984 kB / 479.8 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-06/0.1515, allocations: 3.938 kB / 479.8 MB, free: 3.902 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.448e-05/0.1516, allocations: 75.28 kB / 479.8 MB, free: 3.828 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1516, allocations: 0 / 479.8 MB, free: 3.828 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005066/0.1521, allocations: 95.98 kB / 479.9 MB, free: 3.734 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.0006658/0.1528, allocations: 262.9 kB / 480.2 MB, free: 3.504 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006612/0.1534, allocations: 472 kB / 480.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1534, allocations: 0 / 480.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.1536, allocations: 166 kB / 480.8 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001402/0.1537, allocations: 6.344 kB / 480.8 MB, free: 2.879 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005958/0.1543, allocations: 449.1 kB / 481.3 MB, free: 2.414 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003619/0.1547, allocations: 0.7295 MB / 482 MB, free: 1.656 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.709e-05/0.1548, allocations: 47.58 kB / 482 MB, free: 1.609 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.521e-05/0.1548, allocations: 19.44 kB / 482.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1548, allocations: 0 / 482.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of Templates: time 0.006487/0.1613, allocations: 2.969 MB / 485 MB, free: 14.61 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 cvode -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