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.001067/0.001067, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001445/0.001445, allocations: 199.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2468, allocations: 50.54 MB / 408.7 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002264/0.2491, allocations: 1.238 MB / 410 MB, free: 484 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008794/0.25, allocations: 460.9 kB / 410.4 MB, free: 24 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.693e-05/0.25, allocations: 0 / 410.4 MB, free: 24 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.851e-05/0.2501, allocations: 4 kB / 410.4 MB, free: 20 kB / 318.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.0005451/0.2506, allocations: 71.83 kB / 410.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001837/0.2508, allocations: 71.75 kB / 410.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001115/0.251, allocations: 43.75 kB / 410.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.888e-05/0.251, allocations: 7.969 kB / 410.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.854e-05/0.2511, allocations: 16 kB / 410.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.852e-05/0.2511, allocations: 19.84 kB / 410.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.511e-05/0.2511, allocations: 7.938 kB / 410.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002599/0.2514, allocations: 123.8 kB / 410.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.377e-05/0.2515, allocations: 35.91 kB / 410.8 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.273e-05/0.2515, allocations: 43.67 kB / 410.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002741/0.2518, allocations: 175.4 kB / 411 MB, free: 15.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.2518, allocations: 0 / 411 MB, free: 15.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2518, allocations: 0 / 411 MB, free: 15.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.2518, allocations: 4 kB / 411 MB, free: 15.41 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.0005505/0.2524, allocations: 0.5664 MB / 411.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.2524, allocations: 8.031 kB / 411.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.331e-05/0.2525, allocations: 50.73 kB / 411.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001269/0.2527, allocations: 28.73 kB / 411.7 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001302/0.2528, allocations: 188 kB / 411.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.2528, allocations: 4.375 kB / 411.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.46e-05/0.2528, allocations: 4.375 kB / 411.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.2531, allocations: 282.9 kB / 412.2 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.2532, allocations: 3.938 kB / 412.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.2532, allocations: 4 kB / 412.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.2532, allocations: 4 kB / 412.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001457/0.2533, allocations: 152.2 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000322/0.2537, allocations: 373.6 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003861/0.2541, allocations: 0.5014 MB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003229/0.2544, allocations: 486.1 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.2544, allocations: 7.984 kB / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004602/0.2549, allocations: 486.8 kB / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.253e-06/0.2549, allocations: 0 / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.0007501/0.2556, allocations: 0.7306 MB / 414.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.906e-05/0.2557, allocations: 156.5 kB / 415 MB, free: 11.13 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.348e-05/0.2558, allocations: 114 kB / 415.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.454e-05/0.2558, allocations: 25.7 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.135e-05/0.2559, allocations: 81.14 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.642e-05/0.2559, allocations: 94.66 kB / 415.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.033e-05/0.256, allocations: 45.69 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.572e-05/0.2561, allocations: 330.8 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.347e-05/0.2562, allocations: 80.41 kB / 415.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.971e-05/0.2563, allocations: 120.3 kB / 415.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002965/0.2566, allocations: 435.7 kB / 416.3 MB, free: 9.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.2566, allocations: 3.938 kB / 416.3 MB, free: 9.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003385/0.2569, allocations: 368.2 kB / 416.7 MB, free: 9.371 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.863e-05/0.257, allocations: 114.1 kB / 416.8 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.257, allocations: 0 / 416.8 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.2571, allocations: 7.938 kB / 416.8 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.539e-05/0.2571, allocations: 7.938 kB / 416.8 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.2571, allocations: 0 / 416.8 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.919e-05/0.2572, allocations: 27.75 kB / 416.9 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.78e-05/0.2572, allocations: 16.02 kB / 416.9 MB, free: 9.191 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.0002241/0.2574, allocations: 295.6 kB / 417.2 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.864e-05/0.2575, allocations: 31.81 kB / 417.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.811e-05/0.2575, allocations: 9.562 kB / 417.2 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.2575, allocations: 0 / 417.2 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.2575, allocations: 4 kB / 417.2 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.2576, allocations: 3.984 kB / 417.2 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.2587, allocations: 1.432 MB / 418.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.2587, allocations: 4 kB / 418.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.357e-05/0.2588, allocations: 8.062 kB / 418.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.2588, allocations: 0 / 418.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.72e-05/0.2588, allocations: 23.98 kB / 418.7 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.2588, allocations: 0 / 418.7 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2588, allocations: 0 / 418.7 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.2599, allocations: 1.315 MB / 420 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.44e-05/0.26, allocations: 104.7 kB / 420.1 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.099e-05/0.2601, allocations: 63.94 kB / 420.2 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.474e-05/0.2601, allocations: 16 kB / 420.2 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.852e-05/0.2602, allocations: 15.98 kB / 420.2 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.813e-05/0.2602, allocations: 15.98 kB / 420.2 MB, free: 5.727 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.649e-05/0.2603, allocations: 87.22 kB / 420.3 MB, free: 5.641 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2603, allocations: 3.938 kB / 420.3 MB, free: 5.637 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000353/0.2606, allocations: 95.98 kB / 420.4 MB, free: 5.543 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.002064/0.2627, allocations: 2.303 MB / 422.7 MB, free: 3.223 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00153/0.2642, allocations: 2.14 MB / 424.8 MB, free: 1.059 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2643, allocations: 0 / 424.8 MB, free: 1.059 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001417/0.2657, allocations: 2.19 MB / 427 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002592/0.266, allocations: 23.94 kB / 427 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00309/0.2691, allocations: 3.316 MB / 430.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.2693, allocations: 0.7316 MB / 431.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.363e-05/0.2694, allocations: 0 / 431.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.388e-05/0.2694, allocations: 35.42 kB / 431.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2694, allocations: 0 / 431.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02001/0.2894, allocations: 4.903 MB / 436 MB, free: 5.785 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.252/7.542, allocations: 11.53 kB / 436 MB, free: 5.777 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.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