Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.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) 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(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers") translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009068/0.0009065, allocations: 186 kB / 18.04 MB, free: 3.75 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.419/1.419, allocations: 205.4 MB / 224.2 MB, free: 9.012 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.0007234/0.0007235, allocations: 93.53 kB / 272.5 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005235/0.0005237, allocations: 19.98 kB / 329.4 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.242, allocations: 47.57 MB / 377 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1219/0.3639, allocations: 75.41 MB / 452.4 MB, free: 5.133 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.3642, allocations: 63.97 kB / 452.5 MB, free: 5.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01126/0.3755, allocations: 2.957 MB / 455.4 MB, free: 2.109 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3756, allocations: 0 / 455.4 MB, free: 2.109 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.3756, allocations: 4 kB / 455.5 MB, free: 2.105 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008357/0.3764, allocations: 0.5567 MB / 456 MB, free: 1.484 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/0.3765, allocations: 16.03 kB / 456 MB, free: 1.469 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001943/0.3767, allocations: 20.73 kB / 456 MB, free: 1.449 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001964/0.3769, allocations: 176.3 kB / 456.2 MB, free: 1.238 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.377, allocations: 8.312 kB / 456.2 MB, free: 1.23 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.465e-05/0.377, allocations: 4.375 kB / 456.2 MB, free: 1.227 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005078/0.3776, allocations: 283.5 kB / 456.5 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.3776, allocations: 192 / 456.5 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.3776, allocations: 3.938 kB / 456.5 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.3776, allocations: 11.94 kB / 456.5 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002698/0.3779, allocations: 151.7 kB / 456.7 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003034/0.3782, allocations: 210.3 kB / 456.9 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006317/0.3789, allocations: 499.6 kB / 457.4 MB, free: 16 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005998/0.3795, allocations: 469.7 kB / 457.8 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.3795, allocations: 4 kB / 457.8 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007269/0.3803, allocations: 472.6 kB / 458.3 MB, free: 15.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 2.424e-06/0.3803, allocations: 0 / 458.3 MB, free: 15.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.001466/0.3818, allocations: 0.727 MB / 459 MB, free: 14.29 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001467/0.382, allocations: 160.5 kB / 459.2 MB, free: 14.11 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.3821, allocations: 105.8 kB / 459.3 MB, free: 13.99 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.717e-05/0.3821, allocations: 33.7 kB / 459.3 MB, free: 13.95 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.353e-05/0.3822, allocations: 81.14 kB / 459.4 MB, free: 13.87 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.3823, allocations: 86.75 kB / 459.5 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.392e-06/0.3823, allocations: 0 / 459.5 MB, free: 13.79 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.3825, allocations: 330.8 kB / 459.8 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.3827, allocations: 76.36 kB / 459.9 MB, free: 13.38 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.3829, allocations: 114.4 kB / 460 MB, free: 13.26 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005435/0.3834, allocations: 421.7 kB / 460.4 MB, free: 12.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.3835, allocations: 3.938 kB / 460.4 MB, free: 12.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005867/0.3841, allocations: 340.7 kB / 460.7 MB, free: 12.46 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001624/0.3842, allocations: 118.4 kB / 460.8 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.3843, allocations: 0 / 460.8 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.3843, allocations: 0 / 460.8 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.679e-06/0.3843, allocations: 4 kB / 460.8 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.3843, allocations: 0 / 460.8 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.3844, allocations: 19.75 kB / 460.9 MB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.3845, allocations: 8 kB / 460.9 MB, free: 12.31 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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.0003923/0.3849, allocations: 299.8 kB / 461.2 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.412e-05/0.385, allocations: 27.75 kB / 461.2 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.433e-05/0.385, allocations: 13.56 kB / 461.2 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/0.385, allocations: 7.938 kB / 461.2 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.385, allocations: 0 / 461.2 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3851, allocations: 0 / 461.2 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003014/0.3854, allocations: 249.3 kB / 461.5 MB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.3854, allocations: 0 / 461.5 MB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.092e-06/0.3854, allocations: 0 / 461.5 MB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.3854, allocations: 3.938 kB / 461.5 MB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.403e-05/0.3855, allocations: 27.97 kB / 461.5 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3855, allocations: 0 / 461.5 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.3855, allocations: 0 / 461.5 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001881/0.3874, allocations: 1.236 MB / 462.7 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.036e-05/0.3875, allocations: 92.86 kB / 462.8 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001882/0.3877, allocations: 87.72 kB / 462.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.596e-05/0.3878, allocations: 8 kB / 462.9 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.271e-05/0.3878, allocations: 15.92 kB / 462.9 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.467e-05/0.3879, allocations: 27.98 kB / 463 MB, free: 10.11 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.862e-05/0.388, allocations: 79.31 kB / 463 MB, free: 10.03 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.388, allocations: 0 / 463 MB, free: 10.03 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006368/0.3886, allocations: 107.9 kB / 463.1 MB, free: 9.922 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.0008516/0.3895, allocations: 308.5 kB / 463.4 MB, free: 9.637 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002516/0.392, allocations: 2.127 MB / 465.6 MB, free: 7.484 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.392, allocations: 4 kB / 465.6 MB, free: 7.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002378/0.3944, allocations: 2.186 MB / 467.8 MB, free: 5.27 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003191/0.3948, allocations: 23.98 kB / 467.8 MB, free: 5.246 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000909/0.3957, allocations: 408 kB / 468.2 MB, free: 4.816 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000419/0.3961, allocations: 0.7247 MB / 468.9 MB, free: 4.059 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.433e-05/0.3962, allocations: 0 / 468.9 MB, free: 4.059 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.558e-05/0.3962, allocations: 11.44 kB / 468.9 MB, free: 4.047 MB / 346.7 MB Notification: Performance of SimCode: time 7.91e-07/0.3962, allocations: 0 / 468.9 MB, free: 4.047 MB / 346.7 MB Notification: Performance of Templates: time 0.01004/0.4063, allocations: 3.271 MB / 472.2 MB, free: 0.7734 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","../files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches