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.001066/0.00107, allocations: 109 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001103/0.001104, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 227.4 MB / 246.3 MB, free: 10.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 64.33 kB / 306.4 MB, free: 0.9258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0864/0.08749, allocations: 50.52 MB / 356.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002263/0.08978, allocations: 1.306 MB / 358.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008954/0.0907, allocations: 476 kB / 358.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.311e-05/0.09074, allocations: 0 / 358.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.192e-05/0.0908, allocations: 7.938 kB / 358.7 MB, free: 12.61 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.0003642/0.09117, allocations: 51.88 kB / 358.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000148/0.09133, allocations: 59.88 kB / 358.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.736e-05/0.0914, allocations: 35.91 kB / 358.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.636e-05/0.09144, allocations: 4 kB / 358.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.034e-05/0.09147, allocations: 23.91 kB / 358.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.275e-05/0.09151, allocations: 15.94 kB / 358.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.119e-05/0.09153, allocations: 0 / 358.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002125/0.09174, allocations: 119.8 kB / 359 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.531e-05/0.0918, allocations: 35.91 kB / 359 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.297e-05/0.09187, allocations: 47.62 kB / 359 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002291/0.0921, allocations: 175.4 kB / 359.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.09212, allocations: 4 kB / 359.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.09212, allocations: 0 / 359.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.507e-06/0.09213, allocations: 0 / 359.2 MB, free: 12.04 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.0005262/0.09266, allocations: 0.5727 MB / 359.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.0927, allocations: 8.031 kB / 359.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.773e-05/0.09278, allocations: 62.56 kB / 359.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001128/0.0929, allocations: 24.73 kB / 359.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.09303, allocations: 172.3 kB / 360 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/0.09305, allocations: 8.375 kB / 360.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.403e-05/0.09307, allocations: 8.375 kB / 360.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002878/0.09337, allocations: 286.8 kB / 360.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.09338, allocations: 3.938 kB / 360.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.0934, allocations: 7.984 kB / 360.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.09341, allocations: 4 kB / 360.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001447/0.09356, allocations: 140.3 kB / 360.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003158/0.09388, allocations: 389.5 kB / 360.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003675/0.09426, allocations: 0.5014 MB / 361.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003194/0.09459, allocations: 486.1 kB / 361.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-06/0.09461, allocations: 0 / 361.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004195/0.09503, allocations: 490.8 kB / 362.3 MB, free: 8.676 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.282e-06/0.09504, allocations: 0 / 362.3 MB, free: 8.676 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.0007589/0.0958, allocations: 0.7306 MB / 363.1 MB, free: 7.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.493e-05/0.09589, allocations: 156.5 kB / 363.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.29e-05/0.09597, allocations: 105.8 kB / 363.3 MB, free: 7.633 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.09599, allocations: 25.7 kB / 363.3 MB, free: 7.602 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.069e-05/0.09603, allocations: 81.14 kB / 363.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.458e-05/0.09611, allocations: 110.5 kB / 363.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.07e-05/0.09616, allocations: 41.69 kB / 363.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.09627, allocations: 330.8 kB / 363.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.421e-05/0.09637, allocations: 80.41 kB / 364 MB, free: 6.953 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.085e-05/0.09647, allocations: 112.3 kB / 364.1 MB, free: 6.836 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003112/0.09679, allocations: 439.7 kB / 364.5 MB, free: 6.375 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.0968, allocations: 7.922 kB / 364.5 MB, free: 6.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003423/0.09715, allocations: 372.6 kB / 364.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.893e-05/0.09724, allocations: 111.3 kB / 365 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.09725, allocations: 0 / 365 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.959e-06/0.09726, allocations: 0 / 365 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.304e-05/0.09732, allocations: 8 kB / 365 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.09733, allocations: 0 / 365 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.694e-05/0.0974, allocations: 31.72 kB / 365 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.09742, allocations: 8 kB / 365 MB, free: 5.816 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.0002288/0.09766, allocations: 300.7 kB / 365.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.723e-05/0.09771, allocations: 27.81 kB / 365.4 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.992e-05/0.09774, allocations: 9.562 kB / 365.4 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.09774, allocations: 0 / 365.4 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.09775, allocations: 3.984 kB / 365.4 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.696e-06/0.09776, allocations: 8 kB / 365.4 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.09893, allocations: 1.436 MB / 366.8 MB, free: 3.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.09894, allocations: 4 kB / 366.8 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.19e-05/0.09897, allocations: 4.062 kB / 366.8 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.09898, allocations: 7.938 kB / 366.8 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.861e-05/0.09901, allocations: 19.98 kB / 366.9 MB, free: 3.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.09902, allocations: 3.938 kB / 366.9 MB, free: 3.914 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.09902, allocations: 0 / 366.9 MB, free: 3.914 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.1001, allocations: 1.319 MB / 368.2 MB, free: 2.566 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.186e-05/0.1002, allocations: 96.86 kB / 368.3 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.167e-05/0.1003, allocations: 67.94 kB / 368.3 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.401e-05/0.1004, allocations: 12 kB / 368.3 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.662e-05/0.1004, allocations: 11.98 kB / 368.4 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.779e-05/0.1004, allocations: 19.98 kB / 368.4 MB, free: 2.344 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.372e-05/0.1005, allocations: 87.22 kB / 368.5 MB, free: 2.258 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1005, allocations: 0 / 368.5 MB, free: 2.258 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000339/0.1008, allocations: 91.98 kB / 368.6 MB, free: 2.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.1499/0.2507, allocations: 2.301 MB / 370.9 MB, free: 20.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001696/0.2524, allocations: 2.135 MB / 373 MB, free: 20.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2525, allocations: 3.938 kB / 373 MB, free: 20.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/0.2538, allocations: 2.191 MB / 375.2 MB, free: 18.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002914/0.2541, allocations: 22.67 kB / 375.2 MB, free: 18.69 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003099/0.2572, allocations: 3.326 MB / 378.5 MB, free: 16.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001483/0.2574, allocations: 0.7255 MB / 379.3 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.518e-05/0.2574, allocations: 4.047 kB / 379.3 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.395e-05/0.2575, allocations: 38.47 kB / 379.3 MB, free: 16.18 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2575, allocations: 0 / 379.3 MB, free: 16.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0151/0.2726, allocations: 4.413 MB / 383.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002206/0.2728, allocations: 240.1 kB / 383.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.772/2.045, allocations: 0 / 383.9 MB, free: 15.4 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