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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 183.8 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 223.2 MB / 241 MB, free: 11.84 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008024/0.0008023, allocations: 93 kB / 292.2 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3211/0.3211, allocations: 44.23 MB / 387.5 MB, free: 38.78 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002939/0.0002939, allocations: 8 kB / 459.9 MB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3012, allocations: 61.9 MB / 0.5096 GB, free: 38.24 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1065/0.4078, allocations: 86.55 MB / 0.5941 GB, free: 8.582 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002025/0.408, allocations: 75.88 kB / 0.5942 GB, free: 8.512 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01312/0.4212, allocations: 5.79 MB / 0.5998 GB, free: 2.719 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.4212, allocations: 4 kB / 0.5998 GB, free: 2.715 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.4212, allocations: 4 kB / 0.5998 GB, free: 2.711 MB / 410.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.0006002/0.4218, allocations: 480 kB / 0.6003 GB, free: 2.195 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.4219, allocations: 8.031 kB / 0.6003 GB, free: 2.188 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.536e-05/0.422, allocations: 15.81 kB / 0.6003 GB, free: 2.172 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.4221, allocations: 178.8 kB / 0.6005 GB, free: 1.957 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.4221, allocations: 12 kB / 0.6005 GB, free: 1.945 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.508e-05/0.4222, allocations: 23.95 kB / 0.6005 GB, free: 1.922 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/0.4223, allocations: 132.3 kB / 0.6006 GB, free: 1.785 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.4224, allocations: 4 kB / 0.6006 GB, free: 1.781 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-06/0.4224, allocations: 0 / 0.6006 GB, free: 1.781 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.4224, allocations: 0 / 0.6006 GB, free: 1.781 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001002/0.4225, allocations: 96.41 kB / 0.6007 GB, free: 1.688 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002098/0.4227, allocations: 222.2 kB / 0.6009 GB, free: 1.422 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001635/0.4229, allocations: 166.9 kB / 0.6011 GB, free: 1.25 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.178e-06/0.4229, allocations: 0 / 0.6011 GB, free: 1.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001877/0.4231, allocations: 170 kB / 0.6013 GB, free: 1.074 MB / 410.7 MB Notification: Performance of pre-optimization done (n=54): time 1.042e-06/0.4231, allocations: 0 / 0.6013 GB, free: 1.074 MB / 410.7 MB Notification: Performance of matching and sorting (n=54): time 0.001152/0.4242, allocations: 0.8724 MB / 0.6021 GB, free: 180 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.017e-05/0.4243, allocations: 103.8 kB / 0.6022 GB, free: 64 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.043e-05/0.4244, allocations: 116.8 kB / 0.6023 GB, free: 15.94 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.685e-05/0.4245, allocations: 65.69 kB / 0.6024 GB, free: 15.87 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.011e-05/0.4246, allocations: 89.45 kB / 0.6025 GB, free: 15.78 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.4247, allocations: 142.5 kB / 0.6026 GB, free: 15.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.994e-05/0.4247, allocations: 20.03 kB / 0.6026 GB, free: 15.62 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.4249, allocations: 342.8 kB / 0.6029 GB, free: 15.28 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002576/0.4251, allocations: 185.8 kB / 0.6031 GB, free: 15.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000494/0.4256, allocations: 0.5179 MB / 0.6036 GB, free: 14.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003543/0.426, allocations: 271.7 kB / 0.6039 GB, free: 14.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.592e-06/0.426, allocations: 4 kB / 0.6039 GB, free: 14.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009412/0.427, allocations: 0.7434 MB / 0.6046 GB, free: 13.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.427, allocations: 8 kB / 0.6046 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.427, allocations: 12 kB / 0.6046 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.066e-05/0.427, allocations: 23.95 kB / 0.6047 GB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003166/0.4274, allocations: 119.7 kB / 0.6048 GB, free: 13.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.226e-05/0.4274, allocations: 23.92 kB / 0.6048 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001961/0.4276, allocations: 67.28 kB / 0.6049 GB, free: 13.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.392e-05/0.4277, allocations: 40 kB / 0.6049 GB, free: 13.11 MB / 426.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.0002494/0.4279, allocations: 246.2 kB / 0.6051 GB, free: 12.86 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.45e-05/0.4279, allocations: 11.81 kB / 0.6051 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.657e-05/0.428, allocations: 9.875 kB / 0.6052 GB, free: 12.83 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.428, allocations: 3.953 kB / 0.6052 GB, free: 12.82 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.428, allocations: 0 / 0.6052 GB, free: 12.82 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.428, allocations: 4 kB / 0.6052 GB, free: 12.82 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000173/0.4282, allocations: 193.8 kB / 0.6053 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.4282, allocations: 0 / 0.6053 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.782e-06/0.4282, allocations: 3.984 kB / 0.6054 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.4282, allocations: 0 / 0.6054 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.898e-05/0.4282, allocations: 8 kB / 0.6054 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.4282, allocations: 0 / 0.6054 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.4282, allocations: 3.953 kB / 0.6054 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000865/0.4291, allocations: 0.6109 MB / 0.606 GB, free: 11.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.152e-05/0.4292, allocations: 96.84 kB / 0.6061 GB, free: 11.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.307e-05/0.4292, allocations: 0 / 0.6061 GB, free: 11.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.251e-05/0.4292, allocations: 4 kB / 0.6061 GB, free: 11.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.829e-05/0.4293, allocations: 0 / 0.6061 GB, free: 11.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.4293, allocations: 3.953 kB / 0.6061 GB, free: 11.81 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.437e-05/0.4293, allocations: 75.28 kB / 0.6061 GB, free: 11.74 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4293, allocations: 4.031 kB / 0.6061 GB, free: 11.73 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005549/0.4299, allocations: 115.9 kB / 0.6062 GB, free: 11.62 MB / 426.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.0006156/0.4305, allocations: 285.5 kB / 0.6065 GB, free: 11.37 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005681/0.4311, allocations: 465.5 kB / 0.607 GB, free: 10.91 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.4311, allocations: 4.125 kB / 0.607 GB, free: 10.91 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.4312, allocations: 160.3 kB / 0.6071 GB, free: 10.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001013/0.4314, allocations: 7.984 kB / 0.6071 GB, free: 10.75 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005755/0.4319, allocations: 450.8 kB / 0.6076 GB, free: 10.28 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.4323, allocations: 0.7336 MB / 0.6083 GB, free: 9.52 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 9.202e-05/0.4324, allocations: 47.58 kB / 0.6083 GB, free: 9.473 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.447e-05/0.4324, allocations: 19.44 kB / 0.6083 GB, free: 9.453 MB / 426.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4324, allocations: 0 / 0.6083 GB, free: 9.453 MB / 426.7 MB Notification: Performance of Templates: time 0.006368/0.4388, allocations: 3.089 MB / 0.6114 GB, free: 6.359 MB / 426.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches