Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_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.001149/0.001149, allocations: 117 kB / 17.08 MB, free: 5.832 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.001077/0.001077, allocations: 193.3 kB / 18.01 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.425/1.425, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1977/0.1977, allocations: 43.53 MB / 314.8 MB, free: 452 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 71.89 kB / 442.5 MB, free: 5.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1073, allocations: 57.78 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.00188/0.1093, allocations: 0.5484 MB / 0.4891 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.1105, allocations: 0.586 MB / 0.4896 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.706e-05/0.1106, allocations: 3.938 kB / 0.4896 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.28e-05/0.1107, allocations: 7.938 kB / 0.4897 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.029e-06/0.1107, allocations: 4 kB / 0.4897 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007958/0.1115, allocations: 203.4 kB / 0.4899 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.759e-05/0.1116, allocations: 23.97 kB / 0.4899 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.175e-05/0.1117, allocations: 4 kB / 0.4899 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.883e-05/0.1117, allocations: 19.91 kB / 0.4899 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.344e-05/0.1117, allocations: 12.22 kB / 0.4899 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.28e-05/0.1118, allocations: 4 kB / 0.4899 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003004/0.1121, allocations: 159.8 kB / 0.4901 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.295e-05/0.1122, allocations: 60.16 kB / 0.4901 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.142e-05/0.1122, allocations: 51.61 kB / 0.4902 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003165/0.1126, allocations: 211.4 kB / 0.4904 GB, free: 9.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.1126, allocations: 4 kB / 0.4904 GB, free: 9.922 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.1126, allocations: 0 / 0.4904 GB, free: 9.922 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1126, allocations: 0 / 0.4904 GB, free: 9.922 MB / 382.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.0005429/0.1131, allocations: 492.3 kB / 0.4908 GB, free: 9.395 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.1132, allocations: 15.89 kB / 0.4909 GB, free: 9.379 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.848e-05/0.1132, allocations: 16.75 kB / 0.4909 GB, free: 9.363 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.1134, allocations: 180.2 kB / 0.4911 GB, free: 9.148 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.024e-05/0.1134, allocations: 20.31 kB / 0.4911 GB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.457e-05/0.1134, allocations: 20.38 kB / 0.4911 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.1136, allocations: 132.4 kB / 0.4912 GB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.1136, allocations: 0 / 0.4912 GB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.1137, allocations: 0 / 0.4912 GB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1137, allocations: 0 / 0.4912 GB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.848e-05/0.1138, allocations: 96.41 kB / 0.4913 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001988/0.114, allocations: 226.2 kB / 0.4915 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001516/0.1141, allocations: 170.9 kB / 0.4917 GB, free: 8.434 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.1142, allocations: 153.7 kB / 0.4918 GB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.068e-06/0.1143, allocations: 0 / 0.4918 GB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002337/0.1145, allocations: 165.9 kB / 0.492 GB, free: 8.109 MB / 382.1 MB Notification: Performance of pre-optimization done (n=54): time 1.262e-06/0.1145, allocations: 0 / 0.492 GB, free: 8.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.001027/0.1155, allocations: 0.7733 MB / 0.4927 GB, free: 7.328 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.769e-05/0.1156, allocations: 107.7 kB / 0.4929 GB, free: 7.211 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.742e-05/0.1157, allocations: 117.6 kB / 0.493 GB, free: 7.086 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.386e-05/0.1158, allocations: 73.72 kB / 0.493 GB, free: 7.008 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.107e-05/0.1158, allocations: 93.45 kB / 0.4931 GB, free: 6.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.1159, allocations: 138.5 kB / 0.4933 GB, free: 6.773 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001602/0.1161, allocations: 154.7 kB / 0.4934 GB, free: 6.613 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.1162, allocations: 342.8 kB / 0.4937 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002612/0.1165, allocations: 185.9 kB / 0.4939 GB, free: 6.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004999/0.117, allocations: 0.5409 MB / 0.4944 GB, free: 5.387 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000894/0.1179, allocations: 0.7826 MB / 0.4952 GB, free: 4.438 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.1179, allocations: 0 / 0.4952 GB, free: 4.438 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001052/0.119, allocations: 0.7468 MB / 0.4959 GB, free: 3.684 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.119, allocations: 12 kB / 0.4959 GB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.72e-05/0.119, allocations: 12 kB / 0.496 GB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.845e-05/0.1191, allocations: 19.98 kB / 0.496 GB, free: 3.641 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003648/0.1194, allocations: 120.3 kB / 0.4961 GB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.314e-05/0.1195, allocations: 27.92 kB / 0.4961 GB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002083/0.1197, allocations: 67.38 kB / 0.4962 GB, free: 3.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.141e-05/0.1197, allocations: 43.94 kB / 0.4962 GB, free: 3.387 MB / 382.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.0002362/0.12, allocations: 249.3 kB / 0.4965 GB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.663e-05/0.12, allocations: 23.73 kB / 0.4965 GB, free: 3.109 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.991e-05/0.1201, allocations: 5.875 kB / 0.4965 GB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.1201, allocations: 0 / 0.4965 GB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.1201, allocations: 0 / 0.4965 GB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.1201, allocations: 0 / 0.4965 GB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001583/0.1202, allocations: 189.8 kB / 0.4967 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1203, allocations: 0 / 0.4967 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.033e-06/0.1203, allocations: 3.938 kB / 0.4967 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.1203, allocations: 0 / 0.4967 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.1203, allocations: 4 kB / 0.4967 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.746e-06/0.1203, allocations: 4 kB / 0.4967 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1203, allocations: 0 / 0.4967 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008302/0.1211, allocations: 0.6187 MB / 0.4973 GB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.547e-05/0.1212, allocations: 100.7 kB / 0.4974 GB, free: 2.094 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.1212, allocations: 0 / 0.4974 GB, free: 2.094 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.741e-05/0.1212, allocations: 3.984 kB / 0.4974 GB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.741e-05/0.1213, allocations: 4 kB / 0.4974 GB, free: 2.086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.1213, allocations: 4.031 kB / 0.4974 GB, free: 2.082 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.621e-05/0.1213, allocations: 75.28 kB / 0.4975 GB, free: 2.008 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1213, allocations: 0 / 0.4975 GB, free: 2.008 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005441/0.1219, allocations: 95.98 kB / 0.4976 GB, free: 1.914 MB / 382.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.0005759/0.1225, allocations: 254.7 kB / 0.4978 GB, free: 1.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006362/0.1231, allocations: 481 kB / 0.4983 GB, free: 1.211 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.1231, allocations: 3.938 kB / 0.4983 GB, free: 1.207 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.1233, allocations: 160.3 kB / 0.4984 GB, free: 1.051 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001534/0.1234, allocations: 7.281 kB / 0.4984 GB, free: 1.047 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006378/0.1241, allocations: 487.1 kB / 0.4989 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000338/0.1244, allocations: 0.7334 MB / 0.4996 GB, free: 15.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.463e-05/0.1245, allocations: 23.44 kB / 0.4996 GB, free: 15.75 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1245, allocations: 0 / 0.4996 GB, free: 15.75 MB / 398.1 MB Notification: Performance of Templates: time 0.00685/0.1313, allocations: 3.765 MB / 0.5033 GB, free: 11.98 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches