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.001025/0.001025, allocations: 174.5 kB / 16.72 MB, free: 5.082 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.407/1.407, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0008094/0.0008097, allocations: 90.41 kB / 271.2 MB, free: 8.242 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.2912/0.2912, allocations: 43.56 MB / 363.1 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000321/0.0003211, allocations: 12 kB / 432 MB, free: 5.605 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09628/0.09661, allocations: 58.86 MB / 490.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0005746/0.09722, allocations: 280.2 kB / 491.1 MB, free: 10.39 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008931/0.09813, allocations: 0.5495 MB / 491.6 MB, free: 9.84 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.092e-05/0.09816, allocations: 0 / 491.6 MB, free: 9.84 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 7.348e-05/0.09824, allocations: 11.92 kB / 491.7 MB, free: 9.828 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.827e-06/0.09826, allocations: 4 kB / 491.7 MB, free: 9.824 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005505/0.09881, allocations: 163.7 kB / 491.8 MB, free: 9.664 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.783e-05/0.09887, allocations: 23.97 kB / 491.8 MB, free: 9.641 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.172e-05/0.09892, allocations: 4 kB / 491.9 MB, free: 9.637 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.35e-05/0.09894, allocations: 19.92 kB / 491.9 MB, free: 9.617 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.752e-05/0.09898, allocations: 15.94 kB / 491.9 MB, free: 9.602 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.608e-06/0.09899, allocations: 0 / 491.9 MB, free: 9.602 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002314/0.09923, allocations: 155.8 kB / 492 MB, free: 9.449 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.408e-05/0.09931, allocations: 67.81 kB / 492.1 MB, free: 9.383 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.111e-05/0.09939, allocations: 73.38 kB / 492.2 MB, free: 9.305 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000163/0.09956, allocations: 143.8 kB / 492.3 MB, free: 9.164 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.09957, allocations: 0 / 492.3 MB, free: 9.164 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.09958, allocations: 0 / 492.3 MB, free: 9.164 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.09959, allocations: 0 / 492.3 MB, free: 9.164 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.0004156/0.1, allocations: 476.6 kB / 492.8 MB, free: 8.652 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.1, allocations: 8.031 kB / 492.8 MB, free: 8.645 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.297e-05/0.1001, allocations: 16.75 kB / 492.8 MB, free: 8.629 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.086e-05/0.1002, allocations: 176.2 kB / 493 MB, free: 8.418 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.1002, allocations: 16.38 kB / 493 MB, free: 8.402 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.438e-05/0.1002, allocations: 28.38 kB / 493 MB, free: 8.375 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000147/0.1004, allocations: 132.2 kB / 493.2 MB, free: 8.242 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.1004, allocations: 3.938 kB / 493.2 MB, free: 8.238 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.284e-06/0.1004, allocations: 0 / 493.2 MB, free: 8.238 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.216e-06/0.1004, allocations: 0 / 493.2 MB, free: 8.238 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.836e-05/0.1005, allocations: 92.41 kB / 493.2 MB, free: 8.148 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001711/0.1007, allocations: 226.2 kB / 493.5 MB, free: 7.879 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001267/0.1008, allocations: 163 kB / 493.6 MB, free: 7.711 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/0.101, allocations: 165.7 kB / 493.8 MB, free: 7.547 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.845e-06/0.101, allocations: 3.938 kB / 493.8 MB, free: 7.543 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001928/0.1012, allocations: 165.9 kB / 494 MB, free: 7.363 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 1.152e-06/0.1012, allocations: 0 / 494 MB, free: 7.363 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.0009574/0.1022, allocations: 0.7616 MB / 494.7 MB, free: 6.602 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.518e-05/0.1022, allocations: 107.8 kB / 494.8 MB, free: 6.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.079e-05/0.1023, allocations: 121.7 kB / 494.9 MB, free: 6.352 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.386e-05/0.1024, allocations: 73.67 kB / 495 MB, free: 6.273 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.744e-05/0.1024, allocations: 93.45 kB / 495.1 MB, free: 6.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.1025, allocations: 130.5 kB / 495.2 MB, free: 6.051 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-05/0.1026, allocations: 20 kB / 495.2 MB, free: 6.031 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.1027, allocations: 346.8 kB / 495.6 MB, free: 5.684 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/0.1029, allocations: 181.9 kB / 495.8 MB, free: 5.504 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004511/0.1034, allocations: 0.5291 MB / 496.3 MB, free: 4.809 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007649/0.1042, allocations: 0.7749 MB / 497.1 MB, free: 3.867 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.1042, allocations: 7.938 kB / 497.1 MB, free: 3.859 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009411/0.1051, allocations: 0.7352 MB / 497.8 MB, free: 3.117 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.1051, allocations: 8 kB / 497.8 MB, free: 3.109 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.1052, allocations: 12 kB / 497.8 MB, free: 3.098 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.417e-05/0.1052, allocations: 23.94 kB / 497.9 MB, free: 3.074 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003256/0.1055, allocations: 108.4 kB / 498 MB, free: 2.969 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.35e-05/0.1056, allocations: 31.86 kB / 498 MB, free: 2.938 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/0.1058, allocations: 75.28 kB / 498.1 MB, free: 2.863 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.659e-05/0.1058, allocations: 36 kB / 498.1 MB, free: 2.828 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.0002058/0.106, allocations: 245.4 kB / 498.3 MB, free: 2.578 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.904e-05/0.106, allocations: 23.73 kB / 498.4 MB, free: 2.555 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.874e-05/0.1061, allocations: 5.875 kB / 498.4 MB, free: 2.551 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1061, allocations: 0 / 498.4 MB, free: 2.551 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.1061, allocations: 0 / 498.4 MB, free: 2.551 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.1061, allocations: 0 / 498.4 MB, free: 2.551 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001377/0.1062, allocations: 197.8 kB / 498.6 MB, free: 2.309 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1062, allocations: 7.938 kB / 498.6 MB, free: 2.301 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.447e-06/0.1062, allocations: 0 / 498.6 MB, free: 2.301 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.1062, allocations: 0 / 498.6 MB, free: 2.301 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.1063, allocations: 4 kB / 498.6 MB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1063, allocations: 0 / 498.6 MB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.1063, allocations: 4 kB / 498.6 MB, free: 2.293 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007773/0.107, allocations: 0.607 MB / 499.2 MB, free: 1.668 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.048e-05/0.1071, allocations: 100.7 kB / 499.3 MB, free: 1.551 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.028e-05/0.1071, allocations: 0 / 499.3 MB, free: 1.551 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.202e-05/0.1071, allocations: 0 / 499.3 MB, free: 1.551 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.615e-05/0.1072, allocations: 7.938 kB / 499.3 MB, free: 1.543 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.1072, allocations: 7.969 kB / 499.3 MB, free: 1.535 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.06e-05/0.1072, allocations: 83.31 kB / 499.4 MB, free: 1.453 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1072, allocations: 0 / 499.4 MB, free: 1.453 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000419/0.1076, allocations: 91.98 kB / 499.5 MB, free: 1.363 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.0004524/0.1081, allocations: 263 kB / 499.7 MB, free: 1.113 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000519/0.1086, allocations: 465.1 kB / 0.4885 GB, free: 0.6602 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1086, allocations: 0 / 0.4885 GB, free: 0.6602 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001253/0.1088, allocations: 156.4 kB / 0.4886 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001442/0.1089, allocations: 11.94 kB / 0.4886 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1432/0.2522, allocations: 487.2 kB / 0.4891 GB, free: 42.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001484/0.2523, allocations: 0.7323 MB / 0.4898 GB, free: 42.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.605e-05/0.2524, allocations: 22.64 kB / 0.4898 GB, free: 42.04 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.2524, allocations: 0 / 0.4898 GB, free: 42.04 MB / 378.7 MB Notification: Performance of Templates: time 0.005115/0.2575, allocations: 3.722 MB / 0.4935 GB, free: 41.79 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