Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 99.88 kB / 16.5 MB, free: 6.641 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.001101/0.001101, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 241.1 MB, free: 15.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009916/0.0009916, allocations: 53.44 kB / 300 MB, free: 6.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08826/0.08926, allocations: 49.45 MB / 349.4 MB, free: 4.84 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002281/0.09158, allocations: 1.282 MB / 350.7 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008865/0.09248, allocations: 479.9 kB / 351.2 MB, free: 3.074 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.571e-05/0.09252, allocations: 4 kB / 351.2 MB, free: 3.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.499e-05/0.09257, allocations: 0 / 351.2 MB, free: 3.07 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeBindings: time 0.0003997/0.09298, allocations: 59.81 kB / 351.2 MB, free: 3.012 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001189/0.09311, allocations: 55.88 kB / 351.3 MB, free: 2.957 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.14e-05/0.09318, allocations: 39.84 kB / 351.3 MB, free: 2.918 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.441e-05/0.09322, allocations: 0 / 351.3 MB, free: 2.918 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.131e-05/0.09325, allocations: 19.97 kB / 351.3 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.637e-05/0.0933, allocations: 23.91 kB / 351.3 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.41e-05/0.09332, allocations: 4 kB / 351.4 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001996/0.09352, allocations: 111.8 kB / 351.5 MB, free: 2.762 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.759e-05/0.09358, allocations: 35.86 kB / 351.5 MB, free: 2.727 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.827e-05/0.09364, allocations: 51.67 kB / 351.5 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002203/0.09387, allocations: 179.4 kB / 351.7 MB, free: 2.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.09388, allocations: 0 / 351.7 MB, free: 2.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.09389, allocations: 0 / 351.7 MB, free: 2.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.0939, allocations: 0 / 351.7 MB, free: 2.5 MB / 286.1 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.0005073/0.09441, allocations: 0.5569 MB / 352.3 MB, free: 1.879 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.09445, allocations: 12.03 kB / 352.3 MB, free: 1.867 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.09458, allocations: 20.73 kB / 352.3 MB, free: 1.848 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001196/0.09471, allocations: 180.4 kB / 352.5 MB, free: 1.633 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.09473, allocations: 8.375 kB / 352.5 MB, free: 1.625 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.09475, allocations: 4.375 kB / 352.5 MB, free: 1.621 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000273/0.09503, allocations: 279.8 kB / 352.8 MB, free: 1.336 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.621e-06/0.09504, allocations: 192 / 352.8 MB, free: 1.336 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.09506, allocations: 3.938 kB / 352.8 MB, free: 1.332 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.09507, allocations: 7.984 kB / 352.8 MB, free: 1.324 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001329/0.09521, allocations: 143.9 kB / 352.9 MB, free: 1.184 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001622/0.09538, allocations: 202.3 kB / 353.1 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003609/0.09575, allocations: 497.2 kB / 353.6 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/0.09605, allocations: 469.8 kB / 354.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.147e-06/0.09607, allocations: 3.938 kB / 354.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004036/0.09648, allocations: 484.8 kB / 354.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.092e-06/0.09649, allocations: 4 kB / 354.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007311/0.09723, allocations: 0.7153 MB / 355.3 MB, free: 14.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.583e-05/0.09732, allocations: 156.5 kB / 355.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.939e-05/0.09739, allocations: 101.9 kB / 355.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.09741, allocations: 33.62 kB / 355.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.17e-05/0.09745, allocations: 85.14 kB / 355.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.481e-05/0.09751, allocations: 86.88 kB / 355.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.631e-05/0.09756, allocations: 37.7 kB / 355.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.949e-05/0.09767, allocations: 326.8 kB / 356.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.559e-05/0.09775, allocations: 84.34 kB / 356.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.777e-05/0.09785, allocations: 110.1 kB / 356.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002893/0.09814, allocations: 421.4 kB / 356.7 MB, free: 13.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.09815, allocations: 0 / 356.7 MB, free: 13.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003108/0.09847, allocations: 352.8 kB / 357 MB, free: 12.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.091e-05/0.09857, allocations: 115.3 kB / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.09858, allocations: 0 / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.0986, allocations: 0 / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.312e-06/0.09861, allocations: 3.938 kB / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.09862, allocations: 0 / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.239e-05/0.09868, allocations: 23.75 kB / 357.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.47e-05/0.09871, allocations: 8 kB / 357.2 MB, free: 12.67 MB / 302.1 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 (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],r1024,r128,r64,$whenCondition2,iImpure,rImpure,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000275/0.09899, allocations: 299.7 kB / 357.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.853e-05/0.09904, allocations: 31.75 kB / 357.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.868e-06/0.09906, allocations: 5.562 kB / 357.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.09907, allocations: 0 / 357.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.09908, allocations: 4 kB / 357.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.09908, allocations: 4 kB / 357.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001526/0.09924, allocations: 229.3 kB / 357.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.09925, allocations: 0 / 357.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.972e-06/0.09926, allocations: 8 kB / 357.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.09927, allocations: 7.922 kB / 357.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.765e-05/0.0993, allocations: 16 kB / 357.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.09931, allocations: 0 / 357.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.09931, allocations: 3.938 kB / 357.8 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.1004, allocations: 1.225 MB / 359 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.054e-05/0.1005, allocations: 92.86 kB / 359.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.773e-05/0.1006, allocations: 71.88 kB / 359.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.255e-05/0.1006, allocations: 8 kB / 359.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.988e-05/0.1007, allocations: 15.97 kB / 359.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/0.1007, allocations: 19.98 kB / 359.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.458e-05/0.1007, allocations: 83.27 kB / 359.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1007, allocations: 0 / 359.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003139/0.1011, allocations: 88.03 kB / 359.4 MB, free: 10.36 MB / 302.1 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 (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.0004768/0.1016, allocations: 311.5 kB / 359.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001464/0.103, allocations: 2.127 MB / 361.8 MB, free: 7.922 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.103, allocations: 0 / 361.8 MB, free: 7.922 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001373/0.1044, allocations: 2.182 MB / 364 MB, free: 5.715 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001978/0.1046, allocations: 20 kB / 364 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005431/0.1052, allocations: 418.1 kB / 364.4 MB, free: 5.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002273/0.1054, allocations: 0.7247 MB / 365.1 MB, free: 4.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.766e-06/0.1054, allocations: 0 / 365.1 MB, free: 4.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.959e-06/0.1054, allocations: 7.438 kB / 365.1 MB, free: 4.492 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1054, allocations: 0 / 365.1 MB, free: 4.492 MB / 302.1 MB Notification: Performance of Templates: time 0.005208/0.1107, allocations: 2.809 MB / 367.9 MB, free: 1.691 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches