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.001171/0.00117, allocations: 109.7 kB / 17.16 MB, free: 6.324 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.001206/0.001206, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.376/1.376, allocations: 222.9 MB / 241.8 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 43.56 kB / 300.6 MB, free: 6.305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09693/0.09809, allocations: 49.45 MB / 350 MB, free: 4.852 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002855/0.101, allocations: 1.297 MB / 351.3 MB, free: 3.539 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.102, allocations: 471.9 kB / 351.8 MB, free: 3.078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3e-05/0.1021, allocations: 3.938 kB / 351.8 MB, free: 3.074 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.484e-05/0.1021, allocations: 4 kB / 351.8 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.0004837/0.1026, allocations: 55.86 kB / 351.9 MB, free: 3.016 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001675/0.1028, allocations: 55.88 kB / 351.9 MB, free: 2.961 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.517e-05/0.1029, allocations: 39.86 kB / 352 MB, free: 2.922 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.138e-05/0.103, allocations: 11.98 kB / 352 MB, free: 2.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.697e-05/0.103, allocations: 11.98 kB / 352 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.537e-05/0.1031, allocations: 23.91 kB / 352 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.1031, allocations: 0 / 352 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000272/0.1034, allocations: 115.8 kB / 352.1 MB, free: 2.762 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.33e-05/0.1034, allocations: 35.84 kB / 352.2 MB, free: 2.727 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.068e-05/0.1035, allocations: 51.67 kB / 352.2 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000243/0.1037, allocations: 123.7 kB / 352.3 MB, free: 2.555 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1038, allocations: 0 / 352.3 MB, free: 2.555 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.1038, allocations: 0 / 352.3 MB, free: 2.555 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.1038, allocations: 4 kB / 352.3 MB, free: 2.551 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.0006681/0.1045, allocations: 0.5608 MB / 352.9 MB, free: 1.926 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1045, allocations: 8.031 kB / 352.9 MB, free: 1.918 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001734/0.1047, allocations: 24.73 kB / 352.9 MB, free: 1.895 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001626/0.1049, allocations: 176.5 kB / 353.1 MB, free: 1.684 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.1049, allocations: 384 / 353.1 MB, free: 1.684 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.957e-05/0.1049, allocations: 8.375 kB / 353.1 MB, free: 1.676 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000348/0.1053, allocations: 279.8 kB / 353.4 MB, free: 1.391 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1053, allocations: 4.125 kB / 353.4 MB, free: 1.387 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.1053, allocations: 7.938 kB / 353.4 MB, free: 1.379 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.1053, allocations: 0 / 353.4 MB, free: 1.379 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001565/0.1055, allocations: 147.9 kB / 353.5 MB, free: 1.234 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002209/0.1057, allocations: 194.3 kB / 353.7 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003992/0.1061, allocations: 0.4893 MB / 354.2 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003554/0.1065, allocations: 473.7 kB / 354.7 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.327e-06/0.1065, allocations: 0 / 354.7 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004943/0.107, allocations: 480.9 kB / 355.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.503e-06/0.107, allocations: 0 / 355.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0008218/0.1078, allocations: 0.7153 MB / 355.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.529e-05/0.1079, allocations: 164.5 kB / 356 MB, free: 14.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.737e-05/0.108, allocations: 101.9 kB / 356.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/0.1081, allocations: 25.7 kB / 356.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.512e-05/0.1081, allocations: 93.06 kB / 356.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.983e-05/0.1082, allocations: 82.75 kB / 356.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.11e-05/0.1083, allocations: 41.7 kB / 356.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1084, allocations: 326.8 kB / 356.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.65e-05/0.1085, allocations: 84.34 kB / 356.8 MB, free: 13.8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.1086, allocations: 114.2 kB / 356.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003328/0.109, allocations: 413.4 kB / 357.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.109, allocations: 0 / 357.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003527/0.1093, allocations: 349 kB / 357.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.764e-05/0.1095, allocations: 115.3 kB / 357.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.1095, allocations: 0 / 357.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.1095, allocations: 3.984 kB / 357.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.576e-06/0.1095, allocations: 4 kB / 357.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.1095, allocations: 8.031 kB / 357.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.219e-05/0.1096, allocations: 19.75 kB / 357.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.932e-05/0.1096, allocations: 8 kB / 357.8 MB, free: 12.72 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.00025/0.1099, allocations: 303.7 kB / 358.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.353e-05/0.1099, allocations: 31.73 kB / 358.1 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.203e-05/0.1099, allocations: 5.562 kB / 358.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1099, allocations: 4 kB / 358.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.11, allocations: 0 / 358.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.11, allocations: 0 / 358.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002002/0.1102, allocations: 237.3 kB / 358.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.1102, allocations: 0 / 358.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.11e-07/0.1102, allocations: 3.938 kB / 358.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.1102, allocations: 7.938 kB / 358.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.1102, allocations: 15.98 kB / 358.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1102, allocations: 0 / 358.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1102, allocations: 0 / 358.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.1115, allocations: 1.224 MB / 359.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.556e-05/0.1116, allocations: 96.86 kB / 359.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.1117, allocations: 67.88 kB / 359.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.788e-05/0.1117, allocations: 16.03 kB / 359.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.433e-05/0.1118, allocations: 11.98 kB / 359.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.529e-05/0.1118, allocations: 16 kB / 359.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.114e-05/0.1119, allocations: 83.27 kB / 359.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1119, allocations: 3.938 kB / 359.9 MB, free: 10.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003548/0.1122, allocations: 88 kB / 360 MB, free: 10.41 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.0005781/0.1128, allocations: 311.5 kB / 360.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001644/0.1145, allocations: 2.123 MB / 362.4 MB, free: 7.977 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1145, allocations: 0 / 362.4 MB, free: 7.977 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001476/0.116, allocations: 2.186 MB / 364.6 MB, free: 5.766 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.1162, allocations: 20 kB / 364.6 MB, free: 5.746 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000645/0.1169, allocations: 443.9 kB / 365 MB, free: 5.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.1172, allocations: 0.7247 MB / 365.8 MB, free: 4.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.898e-05/0.1172, allocations: 11.44 kB / 365.8 MB, free: 4.508 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1172, allocations: 0 / 365.8 MB, free: 4.508 MB / 302.1 MB Notification: Performance of Templates: time 0.005412/0.1226, allocations: 2.843 MB / 368.6 MB, free: 1.664 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/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