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.001399/0.001405, allocations: 116 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001913/0.001913, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 59.62 kB / 306.5 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1026, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002382/0.105, allocations: 1.313 MB / 358.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009963/0.1061, allocations: 460.2 kB / 358.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.326e-05/0.1061, allocations: 0 / 358.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.122e-05/0.1062, allocations: 0 / 358.8 MB, free: 12.54 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.0006033/0.1069, allocations: 67.8 kB / 358.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.1071, allocations: 51.83 kB / 359 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001239/0.1072, allocations: 51.83 kB / 359 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.153e-05/0.1073, allocations: 4 kB / 359 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.779e-05/0.1073, allocations: 19.92 kB / 359 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.508e-05/0.1074, allocations: 27.91 kB / 359.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.104e-05/0.1074, allocations: 0 / 359.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002988/0.1077, allocations: 119.8 kB / 359.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.529e-05/0.1078, allocations: 27.92 kB / 359.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.424e-05/0.1079, allocations: 51.67 kB / 359.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003515/0.1082, allocations: 175.4 kB / 359.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.628e-06/0.1083, allocations: 4 kB / 359.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1083, allocations: 0 / 359.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.1083, allocations: 0 / 359.4 MB, free: 11.95 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.0007118/0.109, allocations: 0.561 MB / 360 MB, free: 11.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.109, allocations: 8.031 kB / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.457e-05/0.1091, allocations: 58.58 kB / 360.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001484/0.1093, allocations: 24.73 kB / 360.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000132/0.1094, allocations: 188.1 kB / 360.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.1094, allocations: 4.375 kB / 360.3 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.048e-05/0.1095, allocations: 8.375 kB / 360.3 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003124/0.1098, allocations: 282.9 kB / 360.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.1098, allocations: 3.938 kB / 360.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.1098, allocations: 8 kB / 360.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.1098, allocations: 0 / 360.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001549/0.11, allocations: 148.2 kB / 360.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003069/0.1103, allocations: 377.6 kB / 361.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004027/0.1107, allocations: 0.5053 MB / 361.6 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003345/0.1111, allocations: 486.1 kB / 362.1 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.466e-06/0.1111, allocations: 0 / 362.1 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004439/0.1115, allocations: 490.8 kB / 362.5 MB, free: 8.598 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.112e-06/0.1115, allocations: 0 / 362.5 MB, free: 8.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.0009451/0.1125, allocations: 0.7228 MB / 363.3 MB, free: 7.859 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.416e-05/0.1126, allocations: 168.5 kB / 363.4 MB, free: 7.664 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.985e-05/0.1127, allocations: 101.8 kB / 363.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.1127, allocations: 25.7 kB / 363.5 MB, free: 7.523 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.159e-05/0.1128, allocations: 89.14 kB / 363.6 MB, free: 7.434 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.674e-05/0.1128, allocations: 98.55 kB / 363.7 MB, free: 7.336 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.769e-05/0.1129, allocations: 45.69 kB / 363.8 MB, free: 7.285 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.113, allocations: 326.8 kB / 364.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.1131, allocations: 88.41 kB / 364.2 MB, free: 6.871 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.689e-05/0.1132, allocations: 116.3 kB / 364.3 MB, free: 6.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003236/0.1136, allocations: 435.7 kB / 364.7 MB, free: 6.293 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.1136, allocations: 7.875 kB / 364.7 MB, free: 6.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003614/0.1139, allocations: 376.1 kB / 365.1 MB, free: 5.898 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.496e-05/0.114, allocations: 103.3 kB / 365.2 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.114, allocations: 0 / 365.2 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.1141, allocations: 4.422 kB / 365.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.096e-05/0.1141, allocations: 12.08 kB / 365.2 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.1141, allocations: 4 kB / 365.2 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.26e-05/0.1142, allocations: 23.75 kB / 365.2 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.1142, allocations: 8 kB / 365.2 MB, free: 5.734 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.0002415/0.1145, allocations: 304.7 kB / 365.5 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.235e-05/0.1145, allocations: 27.81 kB / 365.6 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.441e-05/0.1146, allocations: 13.53 kB / 365.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.1146, allocations: 0 / 365.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1146, allocations: 4 kB / 365.6 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1146, allocations: 0 / 365.6 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001402/0.116, allocations: 1.44 MB / 367 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.116, allocations: 7.938 kB / 367 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.217e-05/0.116, allocations: 4 kB / 367 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.441e-06/0.1161, allocations: 3.984 kB / 367 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.525e-05/0.1161, allocations: 16 kB / 367.1 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.1161, allocations: 0 / 367.1 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1161, allocations: 0 / 367.1 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0014/0.1175, allocations: 1.311 MB / 368.4 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.692e-05/0.1176, allocations: 100.9 kB / 368.5 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.1177, allocations: 67.94 kB / 368.5 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.855e-05/0.1178, allocations: 8 kB / 368.5 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.638e-05/0.1179, allocations: 19.86 kB / 368.6 MB, free: 2.285 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.04e-05/0.1179, allocations: 19.98 kB / 368.6 MB, free: 2.266 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.051e-05/0.118, allocations: 83.22 kB / 368.7 MB, free: 2.184 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.118, allocations: 0 / 368.7 MB, free: 2.184 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004001/0.1184, allocations: 91.98 kB / 368.7 MB, free: 2.094 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.2046/0.323, allocations: 2.302 MB / 371.1 MB, free: 20.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001894/0.325, allocations: 2.151 MB / 373.2 MB, free: 19.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.325, allocations: 0.7188 kB / 373.2 MB, free: 19.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001617/0.3266, allocations: 2.187 MB / 375.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002826/0.3269, allocations: 24.23 kB / 375.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003419/0.3303, allocations: 3.335 MB / 378.7 MB, free: 16.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001705/0.3305, allocations: 0.7253 MB / 379.5 MB, free: 16.11 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.333e-05/0.3305, allocations: 7.703 kB / 379.5 MB, free: 16.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.783e-05/0.3306, allocations: 31.23 kB / 379.5 MB, free: 16.09 MB / 302.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3306, allocations: 3.828 kB / 379.5 MB, free: 16.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01611/0.3467, allocations: 4.641 MB / 384.2 MB, free: 15.55 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001663/0.3469, allocations: 243.8 kB / 384.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.717/2.064, allocations: 0 / 384.4 MB, free: 15.29 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.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_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches