Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001309/0.001315, allocations: 180.1 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.641/1.641, allocations: 205.4 MB / 222.6 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008438/0.0008438, allocations: 90.56 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3584/0.3584, allocations: 43.55 MB / 362.7 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004632/0.0004633, allocations: 12 kB / 431.4 MB, free: 6.156 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1316, allocations: 58.84 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0006621/0.1323, allocations: 272.2 kB / 490.5 MB, free: 10.96 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009529/0.1333, allocations: 0.5573 MB / 491.1 MB, free: 10.4 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.461e-05/0.1333, allocations: 0 / 491.1 MB, free: 10.4 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 7.796e-05/0.1334, allocations: 3.938 kB / 491.1 MB, free: 10.4 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.617e-06/0.1334, allocations: 0 / 491.1 MB, free: 10.4 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000592/0.134, allocations: 175.6 kB / 491.2 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.231e-05/0.1341, allocations: 23.97 kB / 491.3 MB, free: 10.2 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.9e-05/0.1341, allocations: 3.984 kB / 491.3 MB, free: 10.2 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.449e-05/0.1341, allocations: 15.98 kB / 491.3 MB, free: 10.18 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.81e-05/0.1342, allocations: 15.94 kB / 491.3 MB, free: 10.17 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.15e-05/0.1342, allocations: 4 kB / 491.3 MB, free: 10.16 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002337/0.1344, allocations: 155.7 kB / 491.4 MB, free: 10.01 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.771e-05/0.1345, allocations: 59.89 kB / 491.5 MB, free: 9.953 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.914e-05/0.1346, allocations: 45.62 kB / 491.6 MB, free: 9.902 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001685/0.1348, allocations: 139.8 kB / 491.7 MB, free: 9.766 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1348, allocations: 4 kB / 491.7 MB, free: 9.762 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1348, allocations: 0 / 491.7 MB, free: 9.762 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.633e-06/0.1348, allocations: 0 / 491.7 MB, free: 9.762 MB / 378.7 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.0004429/0.1352, allocations: 472.4 kB / 492.2 MB, free: 9.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.058e-05/0.1353, allocations: 12.03 kB / 492.2 MB, free: 9.238 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.249e-05/0.1353, allocations: 23.75 kB / 492.2 MB, free: 9.215 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.1354, allocations: 178.8 kB / 492.4 MB, free: 9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.1355, allocations: 12 kB / 492.4 MB, free: 8.988 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.867e-05/0.1355, allocations: 23.98 kB / 492.4 MB, free: 8.965 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001596/0.1357, allocations: 132.3 kB / 492.5 MB, free: 8.832 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.062e-06/0.1357, allocations: 0 / 492.5 MB, free: 8.832 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.056e-06/0.1357, allocations: 0 / 492.5 MB, free: 8.832 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.1357, allocations: 3.984 kB / 492.5 MB, free: 8.828 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.511e-05/0.1358, allocations: 96.41 kB / 492.6 MB, free: 8.734 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001897/0.136, allocations: 226.1 kB / 492.8 MB, free: 8.465 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000141/0.1361, allocations: 166.9 kB / 493 MB, free: 8.293 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.1363, allocations: 153.7 kB / 493.2 MB, free: 8.141 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.997e-06/0.1363, allocations: 4 kB / 493.2 MB, free: 8.137 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002083/0.1365, allocations: 166 kB / 493.3 MB, free: 7.957 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 1.192e-06/0.1365, allocations: 0 / 493.3 MB, free: 7.957 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.0009631/0.1375, allocations: 0.7694 MB / 494.1 MB, free: 7.188 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.84e-05/0.1375, allocations: 99.8 kB / 494.2 MB, free: 7.078 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.114e-05/0.1376, allocations: 125.6 kB / 494.3 MB, free: 6.945 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.423e-05/0.1377, allocations: 69.72 kB / 494.4 MB, free: 6.871 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.775e-05/0.1378, allocations: 93.45 kB / 494.5 MB, free: 6.777 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.1379, allocations: 138.5 kB / 494.6 MB, free: 6.641 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.951e-05/0.1379, allocations: 16 kB / 494.6 MB, free: 6.625 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.138, allocations: 342.8 kB / 495 MB, free: 6.281 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002474/0.1383, allocations: 189.8 kB / 495.1 MB, free: 6.094 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000483/0.1388, allocations: 0.5292 MB / 495.7 MB, free: 5.395 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003588/0.1392, allocations: 271.7 kB / 495.9 MB, free: 5.129 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.1392, allocations: 4 kB / 495.9 MB, free: 5.125 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009452/0.1401, allocations: 0.7314 MB / 496.7 MB, free: 4.387 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.1401, allocations: 12 kB / 496.7 MB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.1402, allocations: 12 kB / 496.7 MB, free: 4.363 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.592e-05/0.1402, allocations: 16 kB / 496.7 MB, free: 4.348 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003577/0.1406, allocations: 115.7 kB / 496.8 MB, free: 4.234 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.776e-05/0.1406, allocations: 24.52 kB / 496.8 MB, free: 4.211 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.1408, allocations: 75.28 kB / 496.9 MB, free: 4.137 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.104e-05/0.1408, allocations: 44 kB / 497 MB, free: 4.094 MB / 378.7 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 ($PRE.state33[33],state33[33],$PRE.state33[32],state33[32],$PRE.state33[31],state33[31],$PRE.state33[30],state33[30],$PRE.state33[29],state33[29],$PRE.state33[28],state33[28],$PRE.state33[27],state33[27],$PRE.state33[26],state33[26],$PRE.state33[25],state33[25],$PRE.state33[24],state33[24],$PRE.state33[23],state33[23],$PRE.state33[22],state33[22],$PRE.state33[21],state33[21],$PRE.state33[20],state33[20],$PRE.state33[19],state33[19],$PRE.state33[18],state33[18],$PRE.state33[17],state33[17],$PRE.state33[16],state33[16],$PRE.state33[15],state33[15],$PRE.state33[14],state33[14],$PRE.state33[13],state33[13],$PRE.state33[12],state33[12],$PRE.state33[11],state33[11],$PRE.state33[10],state33[10],$PRE.state33[9],state33[9],$PRE.state33[8],state33[8],$PRE.state33[7],state33[7],$PRE.state33[6],state33[6],$PRE.state33[5],state33[5],$PRE.state33[4],state33[4],$PRE.state33[3],state33[3],$PRE.state33[2],state33[2],$PRE.state33[1],state33[1],$PRE.state4c[4],state4c[4],$PRE.state4c[3],state4c[3],$PRE.state4c[2],state4c[2],$PRE.state4c[1],state4c[1],$PRE.state4b[4],state4b[4],$PRE.state4b[3],state4b[3],$PRE.state4b[2],state4b[2],$PRE.state4b[1],state4b[1],$PRE.state4a[4],state4a[4],$PRE.state4a[3],state4a[3],$PRE.state4a[2],state4a[2],$PRE.state4a[1],state4a[1],$PRE.state2[2],state2[2],$PRE.state2[1],state2[1],$PRE.r33,r33,$PRE.r4c,r4c,$PRE.r4b,r4b,$PRE.r4a,r4a,$PRE.r2,r2,$PRE.result,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002252/0.1411, allocations: 253.3 kB / 497.2 MB, free: 3.836 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.383e-05/0.1411, allocations: 7.812 kB / 497.2 MB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.12e-05/0.1411, allocations: 5.875 kB / 497.2 MB, free: 3.824 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.1411, allocations: 4 kB / 497.2 MB, free: 3.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.1411, allocations: 0 / 497.2 MB, free: 3.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1411, allocations: 0 / 497.2 MB, free: 3.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001486/0.1413, allocations: 193.7 kB / 497.4 MB, free: 3.582 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.1413, allocations: 3.984 kB / 497.4 MB, free: 3.578 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-06/0.1413, allocations: 4 kB / 497.4 MB, free: 3.574 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.656e-06/0.1413, allocations: 4 kB / 497.4 MB, free: 3.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.1413, allocations: 7.938 kB / 497.4 MB, free: 3.562 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1413, allocations: 0 / 497.4 MB, free: 3.562 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1413, allocations: 0 / 497.4 MB, free: 3.562 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007672/0.1421, allocations: 0.6109 MB / 498.1 MB, free: 2.934 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.615e-05/0.1422, allocations: 100.8 kB / 498.1 MB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.198e-05/0.1422, allocations: 4 kB / 498.2 MB, free: 2.812 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.237e-05/0.1422, allocations: 0 / 498.2 MB, free: 2.812 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.254e-05/0.1422, allocations: 4 kB / 498.2 MB, free: 2.809 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.1422, allocations: 4.031 kB / 498.2 MB, free: 2.805 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.536e-05/0.1423, allocations: 75.28 kB / 498.2 MB, free: 2.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1423, allocations: 4 kB / 498.2 MB, free: 2.727 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004479/0.1427, allocations: 91.98 kB / 498.3 MB, free: 2.637 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004949/0.1432, allocations: 276.8 kB / 498.6 MB, free: 2.379 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005136/0.1438, allocations: 465.1 kB / 499.1 MB, free: 1.926 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1438, allocations: 4 kB / 499.1 MB, free: 1.922 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.1439, allocations: 156.4 kB / 499.2 MB, free: 1.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001388/0.144, allocations: 7.953 kB / 499.2 MB, free: 1.762 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005319/0.1446, allocations: 497 kB / 499.7 MB, free: 1.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002638/0.1449, allocations: 0.7258 MB / 0.4887 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.272e-05/0.1449, allocations: 27.44 kB / 0.4887 GB, free: 480 kB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1449, allocations: 0 / 0.4887 GB, free: 480 kB / 378.7 MB Notification: Performance of Templates: time 0.1822/0.3271, allocations: 3.713 MB / 0.4924 GB, free: 42.1 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches