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.001438/0.001443, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.973/1.973, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001083/0.001083, allocations: 87.73 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3017/0.3017, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.977e-05/1.98e-05, allocations: 4.219 kB / 418.2 MB, free: 41.02 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4178/0.4179, allocations: 58.85 MB / 477.1 MB, free: 5.258 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2277/0.6456, allocations: 84.6 MB / 0.5485 GB, free: 14.7 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003425/0.646, allocations: 59.97 kB / 0.5486 GB, free: 14.64 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03102/0.6771, allocations: 5.009 MB / 0.5535 GB, free: 9.629 MB / 395.1 MB Notification: Performance of FrontEnd: time 3.015e-06/0.6771, allocations: 4 kB / 0.5535 GB, free: 9.625 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.6772, allocations: 0 / 0.5535 GB, free: 9.625 MB / 395.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.0009618/0.6782, allocations: 479 kB / 0.5539 GB, free: 9.113 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.085e-05/0.6782, allocations: 8.031 kB / 0.5539 GB, free: 9.105 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.583e-05/0.6784, allocations: 15.81 kB / 0.5539 GB, free: 9.09 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001922/0.6786, allocations: 178.8 kB / 0.5541 GB, free: 8.875 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.6786, allocations: 4 kB / 0.5541 GB, free: 8.871 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.06e-05/0.6787, allocations: 12 kB / 0.5541 GB, free: 8.859 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002632/0.679, allocations: 96.41 kB / 0.5542 GB, free: 8.766 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003013/0.6793, allocations: 142.6 kB / 0.5544 GB, free: 8.621 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.6793, allocations: 0 / 0.5544 GB, free: 8.621 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.6794, allocations: 0 / 0.5544 GB, free: 8.621 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.6794, allocations: 0 / 0.5544 GB, free: 8.621 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000294/0.6797, allocations: 166.3 kB / 0.5545 GB, free: 8.422 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003383/0.6801, allocations: 171 kB / 0.5547 GB, free: 8.246 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002803/0.6804, allocations: 149.7 kB / 0.5548 GB, free: 8.098 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.6804, allocations: 0 / 0.5548 GB, free: 8.098 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003778/0.6808, allocations: 162 kB / 0.555 GB, free: 7.93 MB / 395.1 MB Notification: Performance of pre-optimization done (n=54): time 3.356e-06/0.6808, allocations: 0 / 0.555 GB, free: 7.93 MB / 395.1 MB Notification: Performance of matching and sorting (n=54): time 0.00207/0.6829, allocations: 0.5754 MB / 0.5555 GB, free: 7.344 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001433/0.6831, allocations: 103.8 kB / 0.5556 GB, free: 7.23 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.6833, allocations: 120.8 kB / 0.5558 GB, free: 7.105 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001444/0.6834, allocations: 53.67 kB / 0.5558 GB, free: 7.047 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.6835, allocations: 155.9 kB / 0.556 GB, free: 6.895 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002566/0.6838, allocations: 126.5 kB / 0.5561 GB, free: 6.77 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.279e-05/0.6839, allocations: 0 / 0.5561 GB, free: 6.77 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0002341/0.6841, allocations: 346.8 kB / 0.5564 GB, free: 6.422 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006128/0.6848, allocations: 162.5 kB / 0.5566 GB, free: 6.262 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001025/0.6858, allocations: 0.4985 MB / 0.5571 GB, free: 5.598 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000983/0.6868, allocations: 247.6 kB / 0.5573 GB, free: 5.355 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.795e-05/0.6869, allocations: 4 kB / 0.5573 GB, free: 5.352 MB / 395.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002503/0.6894, allocations: 0.6258 MB / 0.5579 GB, free: 4.719 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.484e-05/0.6895, allocations: 8 kB / 0.5579 GB, free: 4.711 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.91e-05/0.6896, allocations: 12 kB / 0.5579 GB, free: 4.699 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.322e-05/0.6896, allocations: 20.81 kB / 0.5579 GB, free: 4.68 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009777/0.6906, allocations: 119.7 kB / 0.5581 GB, free: 4.562 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.176e-05/0.6907, allocations: 27.94 kB / 0.5581 GB, free: 4.535 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005639/0.6913, allocations: 47.38 kB / 0.5581 GB, free: 4.488 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.6914, allocations: 40 kB / 0.5582 GB, free: 4.449 MB / 395.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 ($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 () * 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.0004233/0.6919, allocations: 208.5 kB / 0.5584 GB, free: 4.238 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.773e-05/0.6919, allocations: 11.77 kB / 0.5584 GB, free: 4.227 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.352e-05/0.692, allocations: 9.969 kB / 0.5584 GB, free: 4.215 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.692, allocations: 4 kB / 0.5584 GB, free: 4.211 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.6921, allocations: 0 / 0.5584 GB, free: 4.211 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.6921, allocations: 0 / 0.5584 GB, free: 4.211 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002309/0.6923, allocations: 154.4 kB / 0.5585 GB, free: 4.023 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.6923, allocations: 0 / 0.5585 GB, free: 4.023 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.582e-05/0.6924, allocations: 3.938 kB / 0.5585 GB, free: 4.02 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.415e-06/0.6924, allocations: 7.938 kB / 0.5585 GB, free: 4.012 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.6925, allocations: 3.953 kB / 0.5586 GB, free: 4.008 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.364e-06/0.6925, allocations: 0 / 0.5586 GB, free: 4.008 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.957e-06/0.6925, allocations: 7.938 kB / 0.5586 GB, free: 4 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/0.6946, allocations: 0.607 MB / 0.5592 GB, free: 3.371 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.95e-05/0.6947, allocations: 92.86 kB / 0.5592 GB, free: 3.262 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.296e-05/0.6947, allocations: 0 / 0.5592 GB, free: 3.262 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.223e-05/0.6948, allocations: 11.97 kB / 0.5593 GB, free: 3.25 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.393e-05/0.6948, allocations: 4 kB / 0.5593 GB, free: 3.246 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/0.6949, allocations: 0 / 0.5593 GB, free: 3.246 MB / 395.1 MB Notification: Performance of sorting global known variables: time 4.968e-05/0.6949, allocations: 75.28 kB / 0.5593 GB, free: 3.172 MB / 395.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.695, allocations: 0 / 0.5593 GB, free: 3.172 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001236/0.6962, allocations: 95.92 kB / 0.5594 GB, free: 3.078 MB / 395.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 () * 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.001248/0.6975, allocations: 277 kB / 0.5597 GB, free: 2.809 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.6991, allocations: 421.4 kB / 0.5601 GB, free: 2.402 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 7.824e-06/0.6992, allocations: 0 / 0.5601 GB, free: 2.402 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003326/0.6995, allocations: 160.3 kB / 0.5602 GB, free: 2.246 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002171/0.6997, allocations: 4 kB / 0.5602 GB, free: 2.242 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.7008, allocations: 372.9 kB / 0.5606 GB, free: 1.848 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005181/0.7014, allocations: 0.7382 MB / 0.5613 GB, free: 1.082 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.7015, allocations: 27.44 kB / 0.5613 GB, free: 1.055 MB / 395.1 MB Notification: Performance of SimCode: time 1.663e-06/0.7015, allocations: 0 / 0.5613 GB, free: 1.055 MB / 395.1 MB Notification: Performance of Templates: time 0.01576/0.7173, allocations: 4.001 MB / 0.5652 GB, free: 13.05 MB / 411.1 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