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.001552/0.001552, allocations: 187.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.11/2.11, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.00123/0.00123, allocations: 106.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2855/0.2855, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000449/0.0004493, allocations: 16 kB / 431.4 MB, free: 20.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1237, allocations: 58.86 MB / 490.2 MB, free: 9.344 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0007667/0.1245, allocations: 260.6 kB / 490.5 MB, free: 9.086 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001486/0.126, allocations: 0.5466 MB / 491 MB, free: 8.535 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.059e-05/0.1261, allocations: 7.938 kB / 491 MB, free: 8.527 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001049/0.1262, allocations: 7.938 kB / 491 MB, free: 8.52 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 4.869e-06/0.1262, allocations: 0 / 491 MB, free: 8.52 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008619/0.1271, allocations: 167.5 kB / 491.2 MB, free: 8.355 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 6.202e-05/0.1272, allocations: 11.98 kB / 491.2 MB, free: 8.344 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.37e-05/0.1273, allocations: 4 kB / 491.2 MB, free: 8.34 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.952e-05/0.1273, allocations: 19.92 kB / 491.2 MB, free: 8.32 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.792e-05/0.1274, allocations: 15.94 kB / 491.3 MB, free: 8.305 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.452e-05/0.1274, allocations: 0 / 491.3 MB, free: 8.305 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003486/0.1277, allocations: 127.8 kB / 491.4 MB, free: 8.18 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.1279, allocations: 67.88 kB / 491.4 MB, free: 8.113 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.795e-05/0.128, allocations: 45.64 kB / 491.5 MB, free: 8.062 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000278/0.1282, allocations: 139.8 kB / 491.6 MB, free: 7.926 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1283, allocations: 4 kB / 491.6 MB, free: 7.922 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1283, allocations: 0 / 491.6 MB, free: 7.922 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.1283, allocations: 0 / 491.6 MB, free: 7.922 MB / 330.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.0007006/0.129, allocations: 464.5 kB / 492.1 MB, free: 7.422 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.129, allocations: 8.031 kB / 492.1 MB, free: 7.414 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.52e-05/0.1291, allocations: 15.81 kB / 492.1 MB, free: 7.398 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.1293, allocations: 182.8 kB / 492.3 MB, free: 7.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.1293, allocations: 16 kB / 492.3 MB, free: 7.164 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.048e-05/0.1294, allocations: 24 kB / 492.3 MB, free: 7.141 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002419/0.1296, allocations: 128.3 kB / 492.5 MB, free: 7.012 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.1297, allocations: 0 / 492.5 MB, free: 7.012 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.1297, allocations: 0 / 492.5 MB, free: 7.012 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.1297, allocations: 4 kB / 492.5 MB, free: 7.008 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001499/0.1298, allocations: 100.3 kB / 492.6 MB, free: 6.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002663/0.1301, allocations: 230.1 kB / 492.8 MB, free: 6.633 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002472/0.1304, allocations: 167 kB / 492.9 MB, free: 6.461 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.961e-06/0.1304, allocations: 0 / 492.9 MB, free: 6.461 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002998/0.1307, allocations: 162 kB / 493.1 MB, free: 6.293 MB / 330.7 MB Notification: Performance of pre-optimization done (n=54): time 1.883e-06/0.1307, allocations: 0 / 493.1 MB, free: 6.293 MB / 330.7 MB Notification: Performance of matching and sorting (n=54): time 0.001706/0.1324, allocations: 0.8685 MB / 494 MB, free: 5.398 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001368/0.1326, allocations: 103.8 kB / 494.1 MB, free: 5.285 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.435e-05/0.1327, allocations: 125.7 kB / 494.2 MB, free: 5.152 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001116/0.1328, allocations: 69.67 kB / 494.3 MB, free: 5.078 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.308e-05/0.1329, allocations: 163.9 kB / 494.4 MB, free: 4.918 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001804/0.1331, allocations: 134.5 kB / 494.6 MB, free: 4.785 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.874e-05/0.1332, allocations: 20 kB / 494.6 MB, free: 4.766 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.1334, allocations: 338.8 kB / 494.9 MB, free: 4.426 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004892/0.1339, allocations: 185.8 kB / 495.1 MB, free: 4.246 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008026/0.1347, allocations: 0.5253 MB / 495.6 MB, free: 3.555 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006979/0.1354, allocations: 283.6 kB / 495.9 MB, free: 3.277 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-05/0.1354, allocations: 7.938 kB / 495.9 MB, free: 3.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001787/0.1372, allocations: 0.7312 MB / 496.6 MB, free: 2.531 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.391e-05/0.1373, allocations: 12 kB / 496.6 MB, free: 2.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.417e-05/0.1373, allocations: 12 kB / 496.6 MB, free: 2.508 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.215e-05/0.1373, allocations: 20 kB / 496.7 MB, free: 2.488 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006529/0.138, allocations: 116.4 kB / 496.8 MB, free: 2.375 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.42e-05/0.1381, allocations: 27.92 kB / 496.8 MB, free: 2.348 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003198/0.1384, allocations: 67.38 kB / 496.9 MB, free: 2.281 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.83e-05/0.1385, allocations: 40 kB / 496.9 MB, free: 2.242 MB / 330.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.0003634/0.1388, allocations: 253.3 kB / 497.2 MB, free: 1.984 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.064e-05/0.1389, allocations: 11.81 kB / 497.2 MB, free: 1.973 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.209e-05/0.1389, allocations: 5.875 kB / 497.2 MB, free: 1.961 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1389, allocations: 0 / 497.2 MB, free: 1.961 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.139, allocations: 0 / 497.2 MB, free: 1.961 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.139, allocations: 3.984 kB / 497.2 MB, free: 1.957 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002052/0.1392, allocations: 201.8 kB / 497.4 MB, free: 1.711 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.982e-06/0.1392, allocations: 3.953 kB / 497.4 MB, free: 1.707 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.721e-06/0.1392, allocations: 0 / 497.4 MB, free: 1.707 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.1392, allocations: 4 kB / 497.4 MB, free: 1.703 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-06/0.1392, allocations: 3.938 kB / 497.4 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.1393, allocations: 0 / 497.4 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1393, allocations: 0 / 497.4 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.1405, allocations: 0.607 MB / 498 MB, free: 1.07 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.503e-05/0.1406, allocations: 108.7 kB / 498.1 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.531e-05/0.1407, allocations: 0 / 498.1 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.011e-05/0.1407, allocations: 0 / 498.1 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.095e-05/0.1407, allocations: 4.031 kB / 498.1 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.005e-05/0.1407, allocations: 4 kB / 498.1 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.72e-05/0.1408, allocations: 75.28 kB / 498.2 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1408, allocations: 0 / 498.2 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006717/0.1415, allocations: 95.98 kB / 498.3 MB, free: 0.7695 MB / 330.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.0006939/0.1422, allocations: 270 kB / 498.5 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.1432, allocations: 464.8 kB / 499 MB, free: 72 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1432, allocations: 0 / 499 MB, free: 72 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002454/0.1435, allocations: 164.4 kB / 499.2 MB, free: 15.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001301/0.1436, allocations: 0 / 499.2 MB, free: 15.91 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008322/0.1445, allocations: 481.3 kB / 499.6 MB, free: 15.41 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004222/0.1449, allocations: 0.7336 MB / 0.4886 GB, free: 14.64 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.82e-05/0.145, allocations: 27.44 kB / 0.4887 GB, free: 14.62 MB / 346.7 MB Notification: Performance of SimCode: time 6.31e-07/0.145, allocations: 0 / 0.4887 GB, free: 14.62 MB / 346.7 MB Notification: Performance of Templates: time 0.009065/0.1541, allocations: 3.772 MB / 0.4923 GB, free: 10.84 MB / 346.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/jenkins1/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