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.0008274/0.0008277, allocations: 92.98 kB / 16.65 MB, free: 6.59 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.0009618/0.0009619, allocations: 182.9 kB / 17.56 MB, free: 6.203 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.342/1.342, allocations: 223.3 MB / 241.6 MB, free: 120 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002475/0.0002476, allocations: 11.94 kB / 301.4 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0977/0.09796, allocations: 50.41 MB / 351.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001392/0.09939, allocations: 0.9585 MB / 352.8 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009826/0.1004, allocations: 463.3 kB / 353.2 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.33e-05/0.1004, allocations: 0 / 353.2 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.946e-05/0.1005, allocations: 3.938 kB / 353.2 MB, free: 2.293 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.0004048/0.1009, allocations: 59.88 kB / 353.3 MB, free: 2.234 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001589/0.1011, allocations: 55.88 kB / 353.3 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.371e-05/0.1011, allocations: 39.84 kB / 353.4 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.046e-05/0.1012, allocations: 0 / 353.4 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.54e-05/0.1012, allocations: 19.97 kB / 353.4 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.774e-05/0.1013, allocations: 23.91 kB / 353.4 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.321e-05/0.1013, allocations: 4 kB / 353.4 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002169/0.1015, allocations: 111.8 kB / 353.5 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.868e-05/0.1016, allocations: 35.86 kB / 353.6 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.903e-05/0.1017, allocations: 73.38 kB / 353.6 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002422/0.1019, allocations: 179.4 kB / 353.8 MB, free: 1.695 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1019, allocations: 0 / 353.8 MB, free: 1.695 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1019, allocations: 0 / 353.8 MB, free: 1.695 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.1019, allocations: 0 / 353.8 MB, free: 1.695 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.000537/0.1025, allocations: 0.553 MB / 354.4 MB, free: 1.078 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.1025, allocations: 8.031 kB / 354.4 MB, free: 1.07 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.1026, allocations: 20.75 kB / 354.4 MB, free: 1.051 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.1028, allocations: 180.5 kB / 354.6 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.1028, allocations: 8.312 kB / 354.6 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.657e-05/0.1028, allocations: 8.375 kB / 354.6 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.1031, allocations: 267.8 kB / 354.9 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.1032, allocations: 4.125 kB / 354.9 MB, free: 0.543 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.1032, allocations: 11.88 kB / 354.9 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.1032, allocations: 0 / 354.9 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001387/0.1033, allocations: 143.9 kB / 355 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001668/0.1035, allocations: 202.3 kB / 355.2 MB, free: 144 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003725/0.1039, allocations: 0.4933 MB / 355.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003286/0.1042, allocations: 469.7 kB / 356.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.388e-06/0.1042, allocations: 7.969 kB / 356.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004202/0.1047, allocations: 476.9 kB / 356.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.545e-06/0.1047, allocations: 0 / 356.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007651/0.1054, allocations: 0.7191 MB / 357.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.881e-05/0.1055, allocations: 164.4 kB / 357.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.174e-05/0.1056, allocations: 101.8 kB / 357.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.1056, allocations: 29.7 kB / 357.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.376e-05/0.1057, allocations: 81.14 kB / 357.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.89e-05/0.1058, allocations: 82.81 kB / 357.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.004e-05/0.1058, allocations: 33.77 kB / 357.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.1059, allocations: 334.8 kB / 358.2 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.947e-05/0.106, allocations: 80.34 kB / 358.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.564e-05/0.1061, allocations: 114.2 kB / 358.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003089/0.1064, allocations: 413.4 kB / 358.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1064, allocations: 0 / 358.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003405/0.1068, allocations: 344.7 kB / 359.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.1069, allocations: 115.3 kB / 359.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1069, allocations: 4.094 kB / 359.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.1069, allocations: 0 / 359.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.1069, allocations: 4 kB / 359.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.1069, allocations: 0 / 359.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.817e-05/0.107, allocations: 23.69 kB / 359.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.107, allocations: 12 kB / 359.3 MB, free: 11.88 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.0002412/0.1073, allocations: 299.7 kB / 359.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.234e-05/0.1073, allocations: 35.69 kB / 359.6 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.188e-05/0.1073, allocations: 9.562 kB / 359.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.1073, allocations: 0 / 359.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.1074, allocations: 0 / 359.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.1074, allocations: 0 / 359.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001669/0.1075, allocations: 233.3 kB / 359.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1075, allocations: 4 kB / 359.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.1075, allocations: 0 / 359.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1076, allocations: 7.875 kB / 359.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/0.1076, allocations: 16 kB / 359.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.1076, allocations: 7.984 kB / 359.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1076, allocations: 0 / 359.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.1088, allocations: 1.217 MB / 361.1 MB, free: 9.961 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.784e-05/0.1088, allocations: 104.9 kB / 361.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.1089, allocations: 71.88 kB / 361.2 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.703e-05/0.109, allocations: 8 kB / 361.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.848e-05/0.109, allocations: 15.92 kB / 361.3 MB, free: 9.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.581e-05/0.1091, allocations: 15.98 kB / 361.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.811e-05/0.1091, allocations: 87.59 kB / 361.4 MB, free: 9.645 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1091, allocations: 0 / 361.4 MB, free: 9.645 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003333/0.1095, allocations: 83.98 kB / 361.4 MB, free: 9.562 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.0005158/0.11, allocations: 311.9 kB / 361.8 MB, free: 9.281 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.1117, allocations: 2.123 MB / 363.9 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1117, allocations: 0 / 363.9 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001535/0.1133, allocations: 2.178 MB / 366.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002073/0.1135, allocations: 31.97 kB / 366.1 MB, free: 4.898 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005766/0.1141, allocations: 419.6 kB / 366.5 MB, free: 4.457 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002539/0.1143, allocations: 0.7208 MB / 367.2 MB, free: 3.703 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.077e-06/0.1143, allocations: 0 / 367.2 MB, free: 3.703 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.052e-05/0.1144, allocations: 11.44 kB / 367.2 MB, free: 3.691 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1144, allocations: 0 / 367.2 MB, free: 3.691 MB / 302.1 MB Notification: Performance of Templates: time 0.005675/0.1201, allocations: 2.8 MB / 370 MB, free: 0.9023 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