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.001331/0.001331, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.001314/0.001314, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.299/1.299, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009931/0.0009932, allocations: 39.19 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08984/0.09085, allocations: 49.45 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002433/0.09333, allocations: 1.221 MB / 351.4 MB, free: 3.098 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009599/0.09431, allocations: 459.9 kB / 351.8 MB, free: 2.648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.474e-05/0.09436, allocations: 0 / 351.8 MB, free: 2.648 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.381e-05/0.09441, allocations: 3.938 kB / 351.8 MB, free: 2.645 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.0004784/0.0949, allocations: 79.66 kB / 351.9 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001444/0.09505, allocations: 63.81 kB / 352 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.645e-05/0.09516, allocations: 47.84 kB / 352 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.958e-05/0.0952, allocations: 3.984 kB / 352 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.962e-05/0.09524, allocations: 16 kB / 352 MB, free: 2.438 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.803e-05/0.09528, allocations: 19.91 kB / 352.1 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.55e-05/0.0953, allocations: 4 kB / 352.1 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002071/0.09551, allocations: 123.8 kB / 352.2 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.499e-05/0.09558, allocations: 35.91 kB / 352.2 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.966e-05/0.09564, allocations: 47.61 kB / 352.3 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002411/0.09589, allocations: 175.4 kB / 352.4 MB, free: 2.039 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.0959, allocations: 0 / 352.4 MB, free: 2.039 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.09591, allocations: 0 / 352.4 MB, free: 2.039 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.09592, allocations: 0 / 352.4 MB, free: 2.039 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.0005807/0.0965, allocations: 0.561 MB / 353 MB, free: 1.414 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.09655, allocations: 12.03 kB / 353 MB, free: 1.402 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.155e-05/0.09664, allocations: 58.58 kB / 353.1 MB, free: 1.336 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.09678, allocations: 24.73 kB / 353.1 MB, free: 1.312 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001584/0.09695, allocations: 176.2 kB / 353.3 MB, free: 1.102 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.09697, allocations: 12.31 kB / 353.3 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.906e-05/0.09699, allocations: 4.375 kB / 353.3 MB, free: 1.086 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003269/0.09733, allocations: 282.9 kB / 353.6 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.09735, allocations: 7.922 kB / 353.6 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.09737, allocations: 0 / 353.6 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.09738, allocations: 8 kB / 353.6 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001846/0.09757, allocations: 148.3 kB / 353.7 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003899/0.09797, allocations: 381.5 kB / 354.1 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000432/0.09841, allocations: 0.4976 MB / 354.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003606/0.09878, allocations: 490 kB / 355.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.195e-05/0.0988, allocations: 7.984 kB / 355.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004393/0.09924, allocations: 482.8 kB / 355.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.312e-06/0.09925, allocations: 0 / 355.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.000828/0.1001, allocations: 0.7332 MB / 356.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.733e-05/0.1002, allocations: 160.5 kB / 356.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.958e-05/0.1003, allocations: 101.8 kB / 356.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.1003, allocations: 29.7 kB / 356.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.514e-05/0.1003, allocations: 81.14 kB / 356.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.545e-05/0.1005, allocations: 102.5 kB / 356.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.094e-05/0.1005, allocations: 45.69 kB / 356.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1006, allocations: 326.8 kB / 357.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.499e-05/0.1007, allocations: 88.34 kB / 357.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.1009, allocations: 120.2 kB / 357.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003507/0.1012, allocations: 436.9 kB / 357.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.1012, allocations: 3.938 kB / 357.7 MB, free: 12.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003796/0.1016, allocations: 368.4 kB / 358.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.672e-05/0.1017, allocations: 107.3 kB / 358.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.1017, allocations: 3.938 kB / 358.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.1018, allocations: 0 / 358.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.108e-05/0.1018, allocations: 8 kB / 358.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.1018, allocations: 4.031 kB / 358.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.578e-05/0.1019, allocations: 23.75 kB / 358.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.303e-05/0.1019, allocations: 15.98 kB / 358.3 MB, free: 11.82 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.0002867/0.1022, allocations: 295.7 kB / 358.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.187e-05/0.1023, allocations: 27.81 kB / 358.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.97e-05/0.1023, allocations: 5.562 kB / 358.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1023, allocations: 432 / 358.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.1023, allocations: 0 / 358.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.1023, allocations: 7.984 kB / 358.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001324/0.1037, allocations: 1.44 MB / 360 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.1037, allocations: 0 / 360 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.028e-05/0.1037, allocations: 12.05 kB / 360 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.1037, allocations: 3.984 kB / 360 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.923e-05/0.1038, allocations: 19.98 kB / 360.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1038, allocations: 0 / 360.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.1038, allocations: 3.938 kB / 360.1 MB, free: 9.926 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001209/0.105, allocations: 1.307 MB / 361.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.03e-05/0.1051, allocations: 92.98 kB / 361.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.1052, allocations: 75.94 kB / 361.5 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.1053, allocations: 8 kB / 361.5 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.786e-05/0.1054, allocations: 15.98 kB / 361.6 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.658e-05/0.1054, allocations: 23.97 kB / 361.6 MB, free: 8.352 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.25e-05/0.1055, allocations: 87.22 kB / 361.7 MB, free: 8.266 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.623e-06/0.1055, allocations: 0 / 361.7 MB, free: 8.266 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003835/0.1059, allocations: 99.92 kB / 361.8 MB, free: 8.168 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.002392/0.1083, allocations: 2.312 MB / 364.1 MB, free: 5.855 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001728/0.11, allocations: 2.152 MB / 366.2 MB, free: 3.676 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.11, allocations: 0 / 366.2 MB, free: 3.676 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001466/0.1115, allocations: 2.186 MB / 368.4 MB, free: 1.465 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.1118, allocations: 24.12 kB / 368.4 MB, free: 1.441 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1394/0.2512, allocations: 3.305 MB / 371.7 MB, free: 25.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002088/0.2515, allocations: 0.7256 MB / 372.5 MB, free: 25.22 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.073e-05/0.2515, allocations: 2.422 kB / 372.5 MB, free: 25.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.162e-05/0.2515, allocations: 35.02 kB / 372.5 MB, free: 25.21 MB / 302.1 MB Notification: Performance of SimCode: time 7.22e-07/0.2515, allocations: 1.406 kB / 372.5 MB, free: 25.21 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02476/0.2763, allocations: 4.717 MB / 377.2 MB, free: 24.6 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.791/8.067, allocations: 15.28 kB / 377.2 MB, free: 24.59 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.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_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches