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.001422/0.001422, allocations: 112.6 kB / 17.04 MB, free: 6.078 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.001239/0.001239, allocations: 195 kB / 17.97 MB, free: 5.16 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.448/1.448, allocations: 205.1 MB / 223.8 MB, free: 12.25 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.2122/0.2122, allocations: 43.51 MB / 314.7 MB, free: 492 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.001592/0.001592, allocations: 72.06 kB / 384.2 MB, free: 56.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09138/0.09298, allocations: 57.79 MB / 442 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001696/0.09472, allocations: 0.5379 MB / 442.5 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008619/0.0956, allocations: 0.596 MB / 443.1 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.311e-05/0.09564, allocations: 0 / 443.1 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.034e-05/0.09572, allocations: 7.938 kB / 443.1 MB, free: 5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.037e-06/0.09574, allocations: 0 / 443.1 MB, free: 5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006294/0.09638, allocations: 199.5 kB / 443.3 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.034e-05/0.09644, allocations: 27.95 kB / 443.3 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.671e-05/0.09648, allocations: 4 kB / 443.3 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.889e-05/0.0965, allocations: 15.92 kB / 443.4 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.303e-05/0.09654, allocations: 16.2 kB / 443.4 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.388e-06/0.09656, allocations: 3.938 kB / 443.4 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002111/0.09677, allocations: 159.8 kB / 443.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.88e-05/0.09684, allocations: 60.16 kB / 443.6 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.471e-05/0.09689, allocations: 51.62 kB / 443.6 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001992/0.09709, allocations: 207.4 kB / 443.8 MB, free: 4.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.09711, allocations: 4 kB / 443.8 MB, free: 4.266 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.09711, allocations: 0 / 443.8 MB, free: 4.266 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.967e-06/0.09712, allocations: 0 / 443.8 MB, free: 4.266 MB / 318.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.0003873/0.09751, allocations: 496.3 kB / 444.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.09755, allocations: 11.89 kB / 444.3 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.074e-05/0.0976, allocations: 16.75 kB / 444.4 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.713e-05/0.09766, allocations: 176.2 kB / 444.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.09768, allocations: 20.36 kB / 444.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.858e-05/0.0977, allocations: 24.38 kB / 444.6 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.09783, allocations: 128.4 kB / 444.7 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.09784, allocations: 0 / 444.7 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.166e-06/0.09786, allocations: 4 kB / 444.7 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.09786, allocations: 3.938 kB / 444.7 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.198e-05/0.09793, allocations: 96.34 kB / 444.8 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001235/0.09806, allocations: 230.2 kB / 445 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.14e-05/0.09816, allocations: 163 kB / 445.2 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.25e-05/0.09824, allocations: 153.7 kB / 445.3 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.452e-06/0.09825, allocations: 4 kB / 445.3 MB, free: 2.621 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001674/0.09842, allocations: 169.9 kB / 445.5 MB, free: 2.445 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 1.272e-06/0.09843, allocations: 0 / 445.5 MB, free: 2.445 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.0007746/0.09921, allocations: 0.7733 MB / 446.3 MB, free: 1.664 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.09927, allocations: 103.8 kB / 446.4 MB, free: 1.551 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.86e-05/0.0993, allocations: 117.7 kB / 446.5 MB, free: 1.426 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.261e-05/0.09935, allocations: 69.67 kB / 446.6 MB, free: 1.352 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.211e-05/0.09938, allocations: 101.5 kB / 446.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.988e-05/0.09946, allocations: 134.5 kB / 446.8 MB, free: 1.117 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.09957, allocations: 154.7 kB / 446.9 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.648e-05/0.09963, allocations: 350.8 kB / 447.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.09984, allocations: 177.9 kB / 447.5 MB, free: 444 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004592/0.1003, allocations: 0.5448 MB / 448 MB, free: 15.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007881/0.1011, allocations: 0.7749 MB / 448.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.206e-06/0.1011, allocations: 4 kB / 448.8 MB, free: 14.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009727/0.1021, allocations: 0.7469 MB / 449.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.1021, allocations: 8 kB / 449.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.805e-05/0.1022, allocations: 12 kB / 449.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.52e-05/0.1022, allocations: 16 kB / 449.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003507/0.1025, allocations: 119.7 kB / 449.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.756e-05/0.1026, allocations: 28.42 kB / 449.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002064/0.1028, allocations: 67.31 kB / 449.8 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.005e-05/0.1028, allocations: 48 kB / 449.8 MB, free: 13.73 MB / 334.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.0002238/0.1031, allocations: 245.5 kB / 450.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.665e-05/0.1031, allocations: 15.69 kB / 450.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.312e-05/0.1031, allocations: 5.875 kB / 450.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-06/0.1031, allocations: 7.984 kB / 450.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.1031, allocations: 4 kB / 450.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1031, allocations: 0 / 450.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001493/0.1033, allocations: 193.8 kB / 450.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1033, allocations: 0 / 450.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.043e-06/0.1033, allocations: 7.938 kB / 450.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.1033, allocations: 0 / 450.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.1033, allocations: 4 kB / 450.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.1033, allocations: 0 / 450.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1034, allocations: 0 / 450.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008209/0.1042, allocations: 0.6109 MB / 450.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.105e-05/0.1043, allocations: 104.7 kB / 451 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.253e-05/0.1043, allocations: 4 kB / 451 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.311e-05/0.1043, allocations: 0 / 451 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.158e-05/0.1043, allocations: 3.984 kB / 451 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-06/0.1043, allocations: 4.031 kB / 451 MB, free: 12.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 2.678e-05/0.1044, allocations: 79.22 kB / 451.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1044, allocations: 4 kB / 451.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005013/0.1049, allocations: 88 kB / 451.2 MB, free: 12.27 MB / 334.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.0005195/0.1054, allocations: 275.9 kB / 451.5 MB, free: 12.03 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006342/0.106, allocations: 469.3 kB / 451.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1061, allocations: 0 / 451.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001263/0.1062, allocations: 160.4 kB / 452.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000147/0.1063, allocations: 4 kB / 452.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005193/0.1069, allocations: 441 kB / 452.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002771/0.1072, allocations: 0.7338 MB / 453.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.793e-05/0.1072, allocations: 43.58 kB / 453.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.721e-05/0.1073, allocations: 23.44 kB / 453.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1073, allocations: 0 / 453.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of Templates: time 0.00657/0.1139, allocations: 2.942 MB / 456.2 MB, free: 7.18 MB / 334.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 -s gbode -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