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: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 105.1 kB / 16.62 MB, free: 6.809 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.001627/0.001627, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.322/1.322, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001042/0.001042, allocations: 50.92 kB / 300.2 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1023, allocations: 49.43 MB / 349.7 MB, free: 4.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002556/0.1049, allocations: 1.29 MB / 351 MB, free: 3.293 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008576/0.1057, allocations: 455.9 kB / 351.4 MB, free: 2.848 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.885e-05/0.1058, allocations: 0 / 351.4 MB, free: 2.848 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.725e-05/0.1058, allocations: 7.922 kB / 351.4 MB, free: 2.84 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.0004344/0.1063, allocations: 63.86 kB / 351.5 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001322/0.1064, allocations: 55.89 kB / 351.5 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.713e-05/0.1065, allocations: 51.83 kB / 351.6 MB, free: 2.672 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.64e-05/0.1066, allocations: 0 / 351.6 MB, free: 2.672 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.853e-05/0.1066, allocations: 11.98 kB / 351.6 MB, free: 2.66 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.331e-05/0.1066, allocations: 19.92 kB / 351.6 MB, free: 2.641 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.459e-05/0.1067, allocations: 11.94 kB / 351.6 MB, free: 2.629 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001968/0.1069, allocations: 127.8 kB / 351.8 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.858e-05/0.1069, allocations: 23.92 kB / 351.8 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.75e-05/0.107, allocations: 51.67 kB / 351.8 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002181/0.1072, allocations: 179.4 kB / 352 MB, free: 2.254 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1072, allocations: 3.938 kB / 352 MB, free: 2.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1072, allocations: 0 / 352 MB, free: 2.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.1072, allocations: 0 / 352 MB, free: 2.25 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.0005851/0.1078, allocations: 0.5571 MB / 352.6 MB, free: 1.629 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.1079, allocations: 12.03 kB / 352.6 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.5e-05/0.108, allocations: 66.56 kB / 352.6 MB, free: 1.543 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.1081, allocations: 28.72 kB / 352.7 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/0.1083, allocations: 172.3 kB / 352.8 MB, free: 1.309 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.1083, allocations: 8.312 kB / 352.8 MB, free: 1.301 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.748e-05/0.1083, allocations: 8.375 kB / 352.9 MB, free: 1.293 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003005/0.1086, allocations: 278.9 kB / 353.1 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1086, allocations: 3.938 kB / 353.1 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.1086, allocations: 7.938 kB / 353.1 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.1087, allocations: 4 kB / 353.1 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001477/0.1088, allocations: 144.3 kB / 353.3 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003344/0.1091, allocations: 377.6 kB / 353.6 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003804/0.1095, allocations: 0.5014 MB / 354.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000314/0.1099, allocations: 490.1 kB / 354.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.462e-06/0.1099, allocations: 0 / 354.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004237/0.1103, allocations: 490.8 kB / 355.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.092e-06/0.1103, allocations: 0 / 355.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.0007522/0.1111, allocations: 0.7332 MB / 355.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.144e-05/0.1112, allocations: 160.5 kB / 356 MB, free: 13.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.221e-05/0.1112, allocations: 101.8 kB / 356.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.1113, allocations: 29.7 kB / 356.1 MB, free: 13.81 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.27e-05/0.1113, allocations: 89.05 kB / 356.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.876e-05/0.1114, allocations: 94.56 kB / 356.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.293e-05/0.1114, allocations: 49.69 kB / 356.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.1115, allocations: 322.8 kB / 356.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.082e-05/0.1116, allocations: 88.41 kB / 356.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.486e-05/0.1117, allocations: 120.3 kB / 356.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003089/0.112, allocations: 441.2 kB / 357.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.1121, allocations: 3.938 kB / 357.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000353/0.1124, allocations: 368.5 kB / 357.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.093e-05/0.1125, allocations: 111.3 kB / 357.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.1125, allocations: 7.922 kB / 357.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.1125, allocations: 0 / 357.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.351e-05/0.1126, allocations: 7.938 kB / 357.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.1126, allocations: 3.984 kB / 357.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.136e-05/0.1127, allocations: 27.78 kB / 357.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.1127, allocations: 8 kB / 357.8 MB, free: 12.03 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.0002445/0.1129, allocations: 303.7 kB / 358.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.606e-05/0.113, allocations: 23.81 kB / 358.1 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.78e-05/0.113, allocations: 5.562 kB / 358.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.113, allocations: 7.984 kB / 358.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.113, allocations: 0 / 358.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.113, allocations: 0 / 358.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001208/0.1143, allocations: 1.444 MB / 359.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.1143, allocations: 0 / 359.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.965e-05/0.1143, allocations: 8 kB / 359.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1143, allocations: 0 / 359.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.765e-05/0.1143, allocations: 19.98 kB / 359.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.1143, allocations: 4 kB / 359.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1143, allocations: 0 / 359.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001135/0.1155, allocations: 1.311 MB / 360.9 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.219e-05/0.1155, allocations: 92.86 kB / 361 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.21e-05/0.1156, allocations: 67.94 kB / 361.1 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.244e-05/0.1157, allocations: 12 kB / 361.1 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.055e-05/0.1158, allocations: 11.98 kB / 361.1 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.607e-05/0.1158, allocations: 23.97 kB / 361.2 MB, free: 8.566 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.411e-05/0.1159, allocations: 87.22 kB / 361.2 MB, free: 8.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.502e-06/0.1159, allocations: 0 / 361.2 MB, free: 8.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000365/0.1162, allocations: 95.92 kB / 361.3 MB, free: 8.387 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.002046/0.1183, allocations: 2.311 MB / 363.6 MB, free: 6.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001594/0.1199, allocations: 2.144 MB / 365.8 MB, free: 3.898 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.1199, allocations: 4 kB / 365.8 MB, free: 3.895 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001409/0.1213, allocations: 2.19 MB / 368 MB, free: 1.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.1216, allocations: 19.94 kB / 368 MB, free: 1.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1509/0.2725, allocations: 3.328 MB / 371.3 MB, free: 26.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001587/0.2727, allocations: 0.7251 MB / 372.1 MB, free: 25.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.891e-05/0.2728, allocations: 1.172 kB / 372.1 MB, free: 25.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.127e-05/0.2728, allocations: 41.08 kB / 372.1 MB, free: 25.32 MB / 302.1 MB Notification: Performance of SimCode: time 1.112e-06/0.2728, allocations: 0 / 372.1 MB, free: 25.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01425/0.2871, allocations: 4.641 MB / 376.7 MB, free: 24.83 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001408/0.2872, allocations: 250.9 kB / 377 MB, free: 24.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.786/2.073, allocations: 0 / 377 MB, free: 24.57 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > 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