Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001078/0.001078, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00122/0.00122, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 61.31 kB / 307 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09475/0.096, allocations: 50.52 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002475/0.09852, allocations: 1.247 MB / 358.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009083/0.09945, allocations: 456 kB / 359.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.116e-05/0.0995, allocations: 4 kB / 359.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.782e-05/0.09955, allocations: 0 / 359.3 MB, free: 12.3 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0004544/0.1, allocations: 71.72 kB / 359.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000166/0.1002, allocations: 75.7 kB / 359.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.156e-05/0.1003, allocations: 51.83 kB / 359.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.966e-05/0.1003, allocations: 0 / 359.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.341e-05/0.1004, allocations: 23.92 kB / 359.5 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.678e-05/0.1004, allocations: 19.91 kB / 359.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.197e-05/0.1004, allocations: 4 kB / 359.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002377/0.1007, allocations: 115.8 kB / 359.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.636e-05/0.1007, allocations: 35.91 kB / 359.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.461e-05/0.1008, allocations: 43.67 kB / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002631/0.1011, allocations: 175.4 kB / 359.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1011, allocations: 4 kB / 359.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1011, allocations: 0 / 359.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.1011, allocations: 0 / 359.9 MB, free: 11.69 MB / 302.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.0005748/0.1017, allocations: 0.5571 MB / 360.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.1017, allocations: 12.03 kB / 360.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.834e-05/0.1018, allocations: 66.5 kB / 360.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000129/0.102, allocations: 20.75 kB / 360.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.1021, allocations: 184.2 kB / 360.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.1021, allocations: 4.375 kB / 360.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.632e-05/0.1021, allocations: 8.375 kB / 360.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003064/0.1025, allocations: 278.9 kB / 361 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.1025, allocations: 3.938 kB / 361 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.1025, allocations: 4 kB / 361 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.1025, allocations: 3.984 kB / 361 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001634/0.1027, allocations: 152.2 kB / 361.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003356/0.103, allocations: 377.6 kB / 361.5 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003896/0.1034, allocations: 0.5053 MB / 362 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003455/0.1038, allocations: 478.1 kB / 362.5 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.117e-05/0.1038, allocations: 4 kB / 362.5 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004556/0.1043, allocations: 490.8 kB / 363 MB, free: 8.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.403e-06/0.1043, allocations: 0 / 363 MB, free: 8.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.0008405/0.1051, allocations: 0.7306 MB / 363.7 MB, free: 7.594 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.44e-05/0.1052, allocations: 160.5 kB / 363.9 MB, free: 7.406 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.313e-05/0.1053, allocations: 101.9 kB / 364 MB, free: 7.297 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.1053, allocations: 25.7 kB / 364 MB, free: 7.266 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.314e-05/0.1054, allocations: 85.12 kB / 364.1 MB, free: 7.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.64e-05/0.1054, allocations: 106.6 kB / 364.2 MB, free: 7.074 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.368e-05/0.1055, allocations: 41.7 kB / 364.2 MB, free: 7.027 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1056, allocations: 330.8 kB / 364.5 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.278e-05/0.1057, allocations: 84.41 kB / 364.6 MB, free: 6.613 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.946e-05/0.1058, allocations: 116.3 kB / 364.7 MB, free: 6.492 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003432/0.1062, allocations: 435.7 kB / 365.2 MB, free: 6.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.1062, allocations: 11.81 kB / 365.2 MB, free: 6.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00037/0.1066, allocations: 368.2 kB / 365.5 MB, free: 5.645 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.701e-05/0.1067, allocations: 115.3 kB / 365.6 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1067, allocations: 0 / 365.6 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.1067, allocations: 0 / 365.6 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.533e-05/0.1068, allocations: 11.94 kB / 365.7 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.1068, allocations: 0 / 365.7 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.699e-05/0.1068, allocations: 19.75 kB / 365.7 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.1069, allocations: 12 kB / 365.7 MB, free: 5.477 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],$outputAlias_r1024,$outputAlias_r128,$outputAlias_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 (5): * Single equations (assignments): 3 * 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.0002639/0.1071, allocations: 300.7 kB / 366 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.946e-05/0.1072, allocations: 23.81 kB / 366 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.308e-05/0.1072, allocations: 13.56 kB / 366 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-06/0.1072, allocations: 64 / 366 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1072, allocations: 8 kB / 366 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1072, allocations: 0 / 366 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001281/0.1085, allocations: 1.444 MB / 367.5 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1085, allocations: 480 / 367.5 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.184e-05/0.1086, allocations: 4 kB / 367.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.1086, allocations: 4 kB / 367.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/0.1086, allocations: 19.98 kB / 367.5 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1086, allocations: 0 / 367.5 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1086, allocations: 0 / 367.5 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.1099, allocations: 1.327 MB / 368.8 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.661e-05/0.1099, allocations: 92.86 kB / 368.9 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.1101, allocations: 67.94 kB / 369 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.648e-05/0.1102, allocations: 8 kB / 369 MB, free: 2.043 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/0.1102, allocations: 15.98 kB / 369 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.616e-05/0.1102, allocations: 19.94 kB / 369 MB, free: 2.008 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.188e-05/0.1103, allocations: 91.2 kB / 369.1 MB, free: 1.918 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1103, allocations: 0 / 369.1 MB, free: 1.918 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003836/0.1107, allocations: 92 kB / 369.2 MB, free: 1.828 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 ($whenCondition1,rImpure,iImpure,$whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_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]) * Number of discrete states: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_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,iImpure,rImpure,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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.1386/0.2492, allocations: 2.301 MB / 371.5 MB, free: 20.63 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001789/0.2511, allocations: 2.151 MB / 373.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.2511, allocations: 4.125 kB / 373.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001429/0.2525, allocations: 2.191 MB / 375.9 MB, free: 18.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.2528, allocations: 19.25 kB / 375.9 MB, free: 18.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003465/0.2563, allocations: 3.31 MB / 379.2 MB, free: 16.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001619/0.2565, allocations: 0.7248 MB / 379.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.68e-05/0.2565, allocations: 5.438 kB / 379.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.836e-05/0.2565, allocations: 36.36 kB / 379.9 MB, free: 16.02 MB / 302.1 MB Notification: Performance of SimCode: time 1.172e-06/0.2565, allocations: 0 / 379.9 MB, free: 16.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02458/0.2811, allocations: 4.725 MB / 384.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.284/7.566, allocations: 7.328 kB / 384.7 MB, free: 15.36 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv","/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_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches