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.001316/0.001316, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001556/0.001556, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 63.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2652, allocations: 50.55 MB / 408.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002607/0.2678, allocations: 1.25 MB / 410.1 MB, free: 212 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.2689, allocations: 457 kB / 410.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.787e-05/0.269, allocations: 0 / 410.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.713e-05/0.269, allocations: 3.938 kB / 410.5 MB, free: 15.76 MB / 334.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.0004835/0.2695, allocations: 75.67 kB / 410.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001444/0.2697, allocations: 63.73 kB / 410.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001024/0.2698, allocations: 47.91 kB / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.784e-05/0.2698, allocations: 7.516 kB / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.675e-05/0.2699, allocations: 19.97 kB / 410.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.696e-05/0.2699, allocations: 27.84 kB / 410.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.215e-05/0.2699, allocations: 7.938 kB / 410.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002392/0.2702, allocations: 115.8 kB / 410.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.664e-05/0.2702, allocations: 31.92 kB / 410.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.223e-05/0.2703, allocations: 47.69 kB / 411 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.2706, allocations: 178.2 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2706, allocations: 0 / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2706, allocations: 0 / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.2706, allocations: 0 / 411.1 MB, free: 15.15 MB / 334.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.000599/0.2712, allocations: 0.5643 MB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.2712, allocations: 12.03 kB / 411.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.187e-05/0.2713, allocations: 58.69 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001115/0.2714, allocations: 20.83 kB / 411.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001623/0.2716, allocations: 184.1 kB / 412 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.2716, allocations: 384 / 412 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.044e-05/0.2716, allocations: 12.31 kB / 412 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003473/0.272, allocations: 282.9 kB / 412.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.272, allocations: 3.938 kB / 412.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.272, allocations: 4 kB / 412.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.2721, allocations: 4 kB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.2722, allocations: 144.3 kB / 412.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005641/0.2728, allocations: 385.6 kB / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005211/0.2733, allocations: 0.4975 MB / 413.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005672/0.2739, allocations: 490.1 kB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.305e-05/0.2739, allocations: 0 / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000639/0.2746, allocations: 494.8 kB / 414.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.303e-06/0.2746, allocations: 0 / 414.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.0009266/0.2755, allocations: 0.727 MB / 415 MB, free: 11.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.2757, allocations: 160.5 kB / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.877e-05/0.2758, allocations: 109.9 kB / 415.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.2758, allocations: 29.7 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.742e-05/0.2758, allocations: 85.14 kB / 415.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.12e-05/0.2759, allocations: 99.12 kB / 415.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.255e-05/0.276, allocations: 45.69 kB / 415.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.2762, allocations: 330.8 kB / 415.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.2763, allocations: 84.41 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.2764, allocations: 120.3 kB / 416 MB, free: 9.934 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004318/0.2768, allocations: 431.8 kB / 416.4 MB, free: 9.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.2769, allocations: 7.938 kB / 416.4 MB, free: 9.473 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004264/0.2773, allocations: 372.2 kB / 416.8 MB, free: 9.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002479/0.2775, allocations: 107.3 kB / 416.9 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.2776, allocations: 4 kB / 416.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.2776, allocations: 0 / 416.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.021e-05/0.2776, allocations: 7.984 kB / 416.9 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.2777, allocations: 0 / 416.9 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.286e-05/0.2777, allocations: 31.81 kB / 416.9 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.2777, allocations: 8 kB / 417 MB, free: 8.922 MB / 334.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.0002816/0.278, allocations: 303.7 kB / 417.3 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.901e-05/0.2781, allocations: 23.91 kB / 417.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.206e-05/0.2781, allocations: 13.48 kB / 417.3 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.2781, allocations: 4 kB / 417.3 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2781, allocations: 0 / 417.3 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.2781, allocations: 0 / 417.3 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001855/0.28, allocations: 1.436 MB / 418.7 MB, free: 7.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.28, allocations: 0 / 418.7 MB, free: 7.062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.017e-05/0.28, allocations: 4 kB / 418.7 MB, free: 7.059 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.28, allocations: 3.984 kB / 418.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.373e-05/0.2801, allocations: 20 kB / 418.8 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.2801, allocations: 3.938 kB / 418.8 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2801, allocations: 0 / 418.8 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/0.2815, allocations: 1.315 MB / 420.1 MB, free: 5.688 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.653e-05/0.2815, allocations: 96.95 kB / 420.2 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.2816, allocations: 67.94 kB / 420.2 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.009e-05/0.2817, allocations: 8 kB / 420.2 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.019e-05/0.2818, allocations: 15.98 kB / 420.3 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.84e-05/0.2818, allocations: 20.11 kB / 420.3 MB, free: 5.465 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.98e-05/0.2819, allocations: 83.22 kB / 420.4 MB, free: 5.383 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2819, allocations: 3.938 kB / 420.4 MB, free: 5.379 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003705/0.2822, allocations: 95.86 kB / 420.5 MB, free: 5.285 MB / 334.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.002905/0.2852, allocations: 2.315 MB / 422.8 MB, free: 2.949 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00188/0.287, allocations: 2.136 MB / 424.9 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2871, allocations: 0 / 424.9 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002059/0.2891, allocations: 2.186 MB / 427.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.2894, allocations: 24 kB / 427.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003808/0.2932, allocations: 3.332 MB / 430.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005339/0.2938, allocations: 0.728 MB / 431.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.511e-05/0.2938, allocations: 0 / 431.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.138e-05/0.2939, allocations: 39.42 kB / 431.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2939, allocations: 0 / 431.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02671/0.3206, allocations: 4.757 MB / 436 MB, free: 5.652 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.182/8.503, allocations: 11.53 kB / 436 MB, free: 5.645 MB / 350.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.1.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