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.0009659/0.0009658, allocations: 101.3 kB / 16.5 MB, free: 6.648 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.0009527/0.0009526, allocations: 194.4 kB / 17.42 MB, free: 6.066 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.292/1.292, allocations: 222.9 MB / 241.1 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 47.97 kB / 300.1 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09299/0.09416, allocations: 49.46 MB / 349.5 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002789/0.09698, allocations: 1.286 MB / 350.8 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.09804, allocations: 479.9 kB / 351.3 MB, free: 2.98 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.802e-05/0.09809, allocations: 0 / 351.3 MB, free: 2.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.1e-05/0.09813, allocations: 0 / 351.3 MB, free: 2.98 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.0004261/0.09859, allocations: 51.88 kB / 351.3 MB, free: 2.93 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001522/0.09875, allocations: 59.81 kB / 351.4 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.445e-05/0.09882, allocations: 39.84 kB / 351.4 MB, free: 2.832 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.921e-05/0.09887, allocations: 8 kB / 351.4 MB, free: 2.824 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.88e-05/0.0989, allocations: 19.97 kB / 351.4 MB, free: 2.805 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.222e-05/0.09895, allocations: 15.94 kB / 351.5 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.171e-05/0.09897, allocations: 0 / 351.5 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002172/0.09919, allocations: 119.8 kB / 351.6 MB, free: 2.672 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.48e-05/0.09924, allocations: 39.84 kB / 351.6 MB, free: 2.633 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.635e-05/0.09931, allocations: 47.69 kB / 351.7 MB, free: 2.586 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002437/0.09956, allocations: 175.4 kB / 351.8 MB, free: 2.414 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.09957, allocations: 0 / 351.8 MB, free: 2.414 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.09957, allocations: 0 / 351.8 MB, free: 2.414 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.09959, allocations: 4 kB / 351.8 MB, free: 2.41 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.000562/0.1002, allocations: 0.5611 MB / 352.4 MB, free: 1.785 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.1002, allocations: 8.031 kB / 352.4 MB, free: 1.777 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.944e-05/0.1003, allocations: 58.58 kB / 352.5 MB, free: 1.711 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.1004, allocations: 24.73 kB / 352.5 MB, free: 1.688 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001393/0.1006, allocations: 176.2 kB / 352.7 MB, free: 1.477 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.642e-05/0.1006, allocations: 4.375 kB / 352.7 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/0.1006, allocations: 8.312 kB / 352.7 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000339/0.101, allocations: 282.9 kB / 352.9 MB, free: 1.176 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.101, allocations: 7.938 kB / 353 MB, free: 1.168 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.101, allocations: 7.984 kB / 353 MB, free: 1.16 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.101, allocations: 0 / 353 MB, free: 1.16 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001498/0.1012, allocations: 144.3 kB / 353.1 MB, free: 1.016 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003494/0.1015, allocations: 385.6 kB / 353.5 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003983/0.1019, allocations: 0.5053 MB / 354 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003493/0.1023, allocations: 486.1 kB / 354.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.131e-05/0.1023, allocations: 0 / 354.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004479/0.1028, allocations: 490.8 kB / 354.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 2.375e-06/0.1028, allocations: 3.984 kB / 354.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.0007776/0.1036, allocations: 0.7332 MB / 355.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.989e-05/0.1037, allocations: 160.4 kB / 355.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.238e-05/0.1037, allocations: 109.8 kB / 355.9 MB, free: 14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.328e-05/0.1038, allocations: 25.7 kB / 356 MB, free: 13.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.94e-05/0.1038, allocations: 85.14 kB / 356 MB, free: 13.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.924e-05/0.1039, allocations: 98.56 kB / 356.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.224e-05/0.1039, allocations: 41.69 kB / 356.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.1041, allocations: 334.9 kB / 356.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.415e-05/0.1042, allocations: 84.41 kB / 356.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.1043, allocations: 116.3 kB / 356.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003395/0.1046, allocations: 432.9 kB / 357.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.1046, allocations: 4 kB / 357.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003652/0.105, allocations: 372.4 kB / 357.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000105/0.1051, allocations: 107.3 kB / 357.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.1051, allocations: 0 / 357.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.1051, allocations: 11.97 kB / 357.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.833e-05/0.1052, allocations: 4 kB / 357.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.1052, allocations: 3.984 kB / 357.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.025e-05/0.1053, allocations: 23.75 kB / 357.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/0.1053, allocations: 8 kB / 357.6 MB, free: 12.2 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.0002735/0.1056, allocations: 299.6 kB / 357.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.658e-05/0.1057, allocations: 31.81 kB / 358 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.86e-05/0.1057, allocations: 5.562 kB / 358 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1057, allocations: 0 / 358 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.1057, allocations: 7.984 kB / 358 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1057, allocations: 0 / 358 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001334/0.1071, allocations: 1.44 MB / 359.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1071, allocations: 4 kB / 359.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.391e-05/0.1071, allocations: 7.938 kB / 359.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1071, allocations: 0 / 359.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/0.1071, allocations: 19.98 kB / 359.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.1072, allocations: 0 / 359.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1072, allocations: 0 / 359.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/0.1084, allocations: 1.315 MB / 360.8 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.48e-05/0.1085, allocations: 96.86 kB / 360.9 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.675e-05/0.1086, allocations: 63.94 kB / 360.9 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.138e-05/0.1087, allocations: 12 kB / 360.9 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.432e-05/0.1087, allocations: 11.98 kB / 361 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.656e-05/0.1088, allocations: 19.98 kB / 361 MB, free: 8.734 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.233e-05/0.1088, allocations: 83.69 kB / 361.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.653e-06/0.1088, allocations: 0 / 361.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003577/0.1092, allocations: 99.86 kB / 361.2 MB, free: 8.555 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.002175/0.1114, allocations: 2.321 MB / 363.5 MB, free: 6.227 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001701/0.1131, allocations: 2.136 MB / 365.6 MB, free: 4.062 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.1131, allocations: 4 kB / 365.6 MB, free: 4.059 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001584/0.1147, allocations: 2.19 MB / 367.8 MB, free: 1.844 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002604/0.115, allocations: 26.41 kB / 367.8 MB, free: 1.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.153/0.2679, allocations: 3.328 MB / 371.2 MB, free: 25.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001757/0.2681, allocations: 0.7242 MB / 371.9 MB, free: 25.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.009e-05/0.2682, allocations: 3.094 kB / 371.9 MB, free: 25.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.267e-05/0.2682, allocations: 37.5 kB / 371.9 MB, free: 25.29 MB / 302.1 MB Notification: Performance of SimCode: time 7.81e-07/0.2682, allocations: 0 / 371.9 MB, free: 25.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01667/0.2849, allocations: 4.402 MB / 376.3 MB, free: 24.81 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001625/0.2851, allocations: 252 kB / 376.6 MB, free: 24.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.77/2.055, allocations: 4.875 kB / 376.6 MB, free: 24.55 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