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.0007145/0.0007145, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008546/0.0008547, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 227.7 MB / 246.8 MB, free: 9.684 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000195/0.0001948, allocations: 8 kB / 307.8 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08474/0.08495, allocations: 51.52 MB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001252/0.08624, allocations: 0.9667 MB / 360.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008629/0.08712, allocations: 456.2 kB / 360.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.956e-05/0.08716, allocations: 0 / 360.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.9e-05/0.0872, allocations: 3.938 kB / 360.8 MB, free: 11.56 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.0003647/0.08757, allocations: 63.88 kB / 360.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001381/0.08772, allocations: 51.88 kB / 360.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 6.09e-05/0.08779, allocations: 43.84 kB / 360.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.568e-05/0.08783, allocations: 0 / 360.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.175e-05/0.08787, allocations: 15.98 kB / 360.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.701e-05/0.08791, allocations: 23.84 kB / 361 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.212e-05/0.08793, allocations: 4 kB / 361 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002119/0.08815, allocations: 119.8 kB / 361.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.534e-05/0.0882, allocations: 35.89 kB / 361.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.071e-05/0.08827, allocations: 73.39 kB / 361.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002222/0.0885, allocations: 179.4 kB / 361.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.08851, allocations: 0 / 361.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.08851, allocations: 0 / 361.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.08852, allocations: 0 / 361.4 MB, free: 10.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.0004918/0.08902, allocations: 0.5493 MB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.08907, allocations: 8.031 kB / 361.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.839e-05/0.08915, allocations: 66.56 kB / 362 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.08928, allocations: 16.75 kB / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.08942, allocations: 188.1 kB / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.08944, allocations: 384 / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.651e-05/0.08947, allocations: 12.38 kB / 362.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.08977, allocations: 286.8 kB / 362.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.08979, allocations: 3.938 kB / 362.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.08981, allocations: 4 kB / 362.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.08982, allocations: 0 / 362.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000139/0.08996, allocations: 144.3 kB / 362.6 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000322/0.09029, allocations: 393.5 kB / 363 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003868/0.09069, allocations: 0.5014 MB / 363.5 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003595/0.09105, allocations: 482.1 kB / 364 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.027e-05/0.09107, allocations: 0 / 364 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004342/0.09151, allocations: 494.8 kB / 364.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.102e-06/0.09152, allocations: 0 / 364.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.0007897/0.09232, allocations: 0.7306 MB / 365.2 MB, free: 6.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.76e-05/0.09242, allocations: 160.5 kB / 365.4 MB, free: 6.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.935e-05/0.09249, allocations: 101.8 kB / 365.5 MB, free: 6.559 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.09251, allocations: 29.7 kB / 365.5 MB, free: 6.523 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.417e-05/0.09255, allocations: 81.14 kB / 365.6 MB, free: 6.441 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.929e-05/0.09263, allocations: 106.6 kB / 365.7 MB, free: 6.336 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.671e-05/0.09267, allocations: 33.7 kB / 365.7 MB, free: 6.297 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.09278, allocations: 326.8 kB / 366 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.675e-05/0.09286, allocations: 84.41 kB / 366.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.276e-05/0.09296, allocations: 112.3 kB / 366.2 MB, free: 5.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003168/0.09329, allocations: 443.7 kB / 366.6 MB, free: 5.305 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.0933, allocations: 3.938 kB / 366.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00038/0.09368, allocations: 376.1 kB / 367 MB, free: 4.914 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.09382, allocations: 107.3 kB / 367.1 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.259e-06/0.09384, allocations: 432 / 367.1 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.09385, allocations: 0 / 367.1 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.466e-05/0.09393, allocations: 11.98 kB / 367.1 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.09394, allocations: 0 / 367.1 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.134e-05/0.09403, allocations: 19.75 kB / 367.2 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.09406, allocations: 16 kB / 367.2 MB, free: 4.75 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.0003208/0.09439, allocations: 300.7 kB / 367.5 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.685e-05/0.09446, allocations: 27.81 kB / 367.5 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.368e-05/0.09449, allocations: 13.53 kB / 367.5 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.0945, allocations: 0 / 367.5 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.09451, allocations: 0 / 367.5 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.09452, allocations: 4 kB / 367.5 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001213/0.09574, allocations: 1.44 MB / 368.9 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.09576, allocations: 0 / 368.9 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.215e-05/0.09579, allocations: 11.94 kB / 369 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.09579, allocations: 3.984 kB / 369 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.09582, allocations: 16 kB / 369 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.09583, allocations: 0 / 369 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.09584, allocations: 0 / 369 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001116/0.09696, allocations: 1.319 MB / 370.3 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.352e-05/0.09701, allocations: 92.86 kB / 370.4 MB, free: 1.398 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.731e-05/0.09711, allocations: 67.94 kB / 370.5 MB, free: 1.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.066e-05/0.0972, allocations: 12 kB / 370.5 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.154e-05/0.09725, allocations: 16.09 kB / 370.5 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.669e-05/0.09728, allocations: 23.98 kB / 370.5 MB, free: 1.281 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.235e-05/0.09733, allocations: 95.16 kB / 370.6 MB, free: 1.188 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09733, allocations: 0 / 370.6 MB, free: 1.188 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003466/0.09768, allocations: 91.98 kB / 370.7 MB, free: 1.098 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.1377/0.2354, allocations: 2.292 MB / 373 MB, free: 19.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001631/0.2371, allocations: 2.137 MB / 375.1 MB, free: 18.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2371, allocations: 3.469 kB / 375.1 MB, free: 18.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001247/0.2384, allocations: 2.188 MB / 377.3 MB, free: 17.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/0.2386, allocations: 21.78 kB / 377.3 MB, free: 17.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002785/0.2414, allocations: 3.334 MB / 380.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001331/0.2416, allocations: 0.7303 MB / 381.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.473e-05/0.2416, allocations: 0.9375 kB / 381.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.565e-05/0.2416, allocations: 38.31 kB / 381.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2417, allocations: 0 / 381.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01334/0.255, allocations: 4.326 MB / 385.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001477/0.2552, allocations: 250.3 kB / 386 MB, free: 14.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.789/2.045, allocations: 3.625 kB / 386 MB, free: 14.12 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