Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001419/0.001419, allocations: 197.7 kB / 16.79 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 226.5 MB / 244.1 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007476/0.0007476, allocations: 98.56 kB / 296.1 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3177/0.3177, allocations: 44.82 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002761/0.0002762, allocations: 12 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3101, allocations: 62.96 MB / 0.5165 GB, free: 37.03 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1036/0.4138, allocations: 87.46 MB / 0.6019 GB, free: 1.922 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/0.4141, allocations: 67.97 kB / 0.6019 GB, free: 1.855 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01181/0.4259, allocations: 5.449 MB / 0.6073 GB, free: 12.4 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4259, allocations: 3.938 kB / 0.6073 GB, free: 12.39 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.4259, allocations: 4 kB / 0.6073 GB, free: 12.39 MB / 426.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.0004664/0.4264, allocations: 476.2 kB / 0.6077 GB, free: 11.87 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.4265, allocations: 8.031 kB / 0.6077 GB, free: 11.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.028e-05/0.4265, allocations: 24.75 kB / 0.6078 GB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001/0.4266, allocations: 172.2 kB / 0.6079 GB, free: 11.63 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.4266, allocations: 16.38 kB / 0.6079 GB, free: 11.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.242e-05/0.4267, allocations: 20.38 kB / 0.608 GB, free: 11.6 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001604/0.4268, allocations: 132.8 kB / 0.6081 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-06/0.4269, allocations: 192 / 0.6081 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.777e-06/0.4269, allocations: 3.938 kB / 0.6081 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.4269, allocations: 0 / 0.6081 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.289e-05/0.427, allocations: 100.3 kB / 0.6082 GB, free: 11.36 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001787/0.4272, allocations: 222.2 kB / 0.6084 GB, free: 11.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001398/0.4273, allocations: 167 kB / 0.6086 GB, free: 10.93 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.4274, allocations: 157.7 kB / 0.6087 GB, free: 10.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.156e-06/0.4275, allocations: 0 / 0.6087 GB, free: 10.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001681/0.4276, allocations: 162 kB / 0.6089 GB, free: 10.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=54): time 9.72e-07/0.4276, allocations: 3.938 kB / 0.6089 GB, free: 10.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.0009802/0.4286, allocations: 0.7694 MB / 0.6096 GB, free: 9.82 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.749e-05/0.4287, allocations: 107.8 kB / 0.6097 GB, free: 9.699 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.242e-05/0.4288, allocations: 117.7 kB / 0.6098 GB, free: 9.574 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.788e-05/0.4288, allocations: 69.67 kB / 0.6099 GB, free: 9.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.525e-05/0.4289, allocations: 93.45 kB / 0.61 GB, free: 9.402 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.429, allocations: 130.5 kB / 0.6101 GB, free: 9.273 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.169e-05/0.429, allocations: 16 kB / 0.6101 GB, free: 9.258 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.4291, allocations: 350.8 kB / 0.6105 GB, free: 8.906 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002499/0.4294, allocations: 181.9 kB / 0.6106 GB, free: 8.73 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004598/0.4299, allocations: 0.5296 MB / 0.6112 GB, free: 8.035 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008007/0.4307, allocations: 0.7749 MB / 0.6119 GB, free: 7.094 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.4307, allocations: 4 kB / 0.6119 GB, free: 7.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009521/0.4317, allocations: 0.7319 MB / 0.6126 GB, free: 6.352 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.4317, allocations: 12 kB / 0.6126 GB, free: 6.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.4317, allocations: 24.03 kB / 0.6127 GB, free: 6.316 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.4317, allocations: 16 kB / 0.6127 GB, free: 6.301 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003103/0.432, allocations: 115.7 kB / 0.6128 GB, free: 6.188 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.106e-05/0.4321, allocations: 31.86 kB / 0.6128 GB, free: 6.156 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001848/0.4323, allocations: 71.22 kB / 0.6129 GB, free: 6.086 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.806e-05/0.4323, allocations: 40 kB / 0.6129 GB, free: 6.047 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.0002021/0.4325, allocations: 241.5 kB / 0.6132 GB, free: 5.801 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.373e-05/0.4325, allocations: 11.81 kB / 0.6132 GB, free: 5.789 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.044e-05/0.4326, allocations: 9.812 kB / 0.6132 GB, free: 5.781 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.4326, allocations: 3.938 kB / 0.6132 GB, free: 5.777 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.4326, allocations: 0 / 0.6132 GB, free: 5.777 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.4326, allocations: 0 / 0.6132 GB, free: 5.777 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001363/0.4327, allocations: 205.8 kB / 0.6134 GB, free: 5.527 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.4327, allocations: 0 / 0.6134 GB, free: 5.527 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.477e-06/0.4327, allocations: 0 / 0.6134 GB, free: 5.527 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-06/0.4328, allocations: 0 / 0.6134 GB, free: 5.527 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.4328, allocations: 3.938 kB / 0.6134 GB, free: 5.523 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.4328, allocations: 0 / 0.6134 GB, free: 5.523 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4328, allocations: 4 kB / 0.6134 GB, free: 5.52 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007845/0.4336, allocations: 0.6109 MB / 0.614 GB, free: 4.891 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.657e-05/0.4336, allocations: 100.9 kB / 0.6141 GB, free: 4.773 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.222e-05/0.4336, allocations: 3.938 kB / 0.6141 GB, free: 4.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.172e-05/0.4337, allocations: 0 / 0.6141 GB, free: 4.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.116e-05/0.4337, allocations: 4 kB / 0.6141 GB, free: 4.766 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.4337, allocations: 0 / 0.6141 GB, free: 4.766 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.421e-05/0.4337, allocations: 75.28 kB / 0.6142 GB, free: 4.691 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.462e-06/0.4337, allocations: 0 / 0.6142 GB, free: 4.691 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004665/0.4342, allocations: 115.9 kB / 0.6143 GB, free: 4.578 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.0005084/0.4347, allocations: 276.1 kB / 0.6145 GB, free: 4.34 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005341/0.4353, allocations: 469.2 kB / 0.615 GB, free: 3.883 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.4353, allocations: 0 / 0.615 GB, free: 3.883 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001382/0.4354, allocations: 164.4 kB / 0.6151 GB, free: 3.723 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.4355, allocations: 4.5 kB / 0.6151 GB, free: 3.719 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005154/0.4361, allocations: 484.5 kB / 0.6156 GB, free: 3.207 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002628/0.4363, allocations: 0.7345 MB / 0.6163 GB, free: 2.445 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.967e-05/0.4364, allocations: 23.44 kB / 0.6163 GB, free: 2.422 MB / 426.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4364, allocations: 0 / 0.6163 GB, free: 2.422 MB / 426.7 MB Notification: Performance of Templates: time 0.005519/0.4419, allocations: 4.011 MB / 0.6203 GB, free: 14.41 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches