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.00109/0.00109, 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.00133/0.00133, 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.298/1.298, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2255, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002606/0.2282, allocations: 1.242 MB / 410 MB, free: 304 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009856/0.2292, allocations: 460.9 kB / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.632e-05/0.2293, allocations: 0 / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.538e-05/0.2293, allocations: 3.938 kB / 410.4 MB, free: 15.84 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.000492/0.2298, allocations: 71.73 kB / 410.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001661/0.23, allocations: 63.81 kB / 410.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000109/0.2301, allocations: 47.84 kB / 410.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.616e-05/0.2302, allocations: 7.984 kB / 410.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.73e-05/0.2302, allocations: 15.98 kB / 410.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.633e-05/0.2302, allocations: 23.91 kB / 410.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.354e-05/0.2303, allocations: 4 kB / 410.7 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002544/0.2305, allocations: 119.8 kB / 410.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.263e-05/0.2306, allocations: 35.91 kB / 410.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.799e-05/0.2307, allocations: 43.69 kB / 410.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002692/0.2309, allocations: 183.4 kB / 411.1 MB, free: 15.24 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2309, allocations: 0 / 411.1 MB, free: 15.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.231, allocations: 0 / 411.1 MB, free: 15.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.231, allocations: 0 / 411.1 MB, free: 15.24 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.0006286/0.2316, allocations: 0.5624 MB / 411.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.2317, allocations: 16.03 kB / 411.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.617e-05/0.2317, allocations: 46.73 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.2319, allocations: 20.75 kB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002481/0.2321, allocations: 188.1 kB / 411.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.2321, allocations: 8.312 kB / 411.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.492e-05/0.2322, allocations: 4.375 kB / 411.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003056/0.2325, allocations: 278.9 kB / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.2325, allocations: 3.938 kB / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.2325, allocations: 4 kB / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.2325, allocations: 7.984 kB / 412.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001541/0.2327, allocations: 152.3 kB / 412.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003397/0.233, allocations: 381.5 kB / 412.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003918/0.2334, allocations: 0.4975 MB / 413.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003436/0.2338, allocations: 486.1 kB / 413.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.274e-06/0.2338, allocations: 0 / 413.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004621/0.2343, allocations: 490.7 kB / 414.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.412e-06/0.2343, allocations: 0 / 414.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.0008146/0.2351, allocations: 0.7344 MB / 414.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.286e-05/0.2352, allocations: 160.5 kB / 415 MB, free: 10.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.875e-05/0.2353, allocations: 105.9 kB / 415.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.2353, allocations: 29.7 kB / 415.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.361e-05/0.2353, allocations: 81.14 kB / 415.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.083e-05/0.2354, allocations: 94.66 kB / 415.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.717e-05/0.2355, allocations: 45.69 kB / 415.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.2356, allocations: 326.8 kB / 415.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.648e-05/0.2357, allocations: 84.41 kB / 415.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.272e-05/0.2358, allocations: 116.3 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003114/0.2361, allocations: 439.7 kB / 416.3 MB, free: 9.582 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2361, allocations: 3.938 kB / 416.3 MB, free: 9.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000341/0.2364, allocations: 368.1 kB / 416.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.433e-05/0.2365, allocations: 111.3 kB / 416.8 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.2366, allocations: 7.922 kB / 416.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.2366, allocations: 0 / 416.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.751e-05/0.2366, allocations: 8 kB / 416.8 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.2366, allocations: 64 / 416.8 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.169e-05/0.2367, allocations: 31.78 kB / 416.9 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.2367, allocations: 8 kB / 416.9 MB, free: 9.023 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.0002488/0.237, allocations: 307.6 kB / 417.2 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.751e-05/0.237, allocations: 23.81 kB / 417.2 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.266e-05/0.2371, allocations: 13.56 kB / 417.2 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.2371, allocations: 0 / 417.2 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.2371, allocations: 0 / 417.2 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.2371, allocations: 0 / 417.2 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001237/0.2383, allocations: 1.441 MB / 418.6 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2384, allocations: 0 / 418.6 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.163e-05/0.2384, allocations: 4 kB / 418.6 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.2384, allocations: 0 / 418.6 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.914e-05/0.2384, allocations: 23.98 kB / 418.7 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.2384, allocations: 0 / 418.7 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2384, allocations: 4 kB / 418.7 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001148/0.2396, allocations: 1.319 MB / 420 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.579e-05/0.2396, allocations: 100.7 kB / 420.1 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.12e-05/0.2397, allocations: 71.94 kB / 420.2 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.163e-05/0.2398, allocations: 8 kB / 420.2 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.69e-05/0.2399, allocations: 15.98 kB / 420.2 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-05/0.2399, allocations: 16 kB / 420.2 MB, free: 5.555 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.3e-05/0.24, allocations: 87.2 kB / 420.3 MB, free: 5.469 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.343e-06/0.24, allocations: 0 / 420.3 MB, free: 5.469 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003548/0.2403, allocations: 99.94 kB / 420.4 MB, free: 5.371 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.002132/0.2425, allocations: 2.307 MB / 422.7 MB, free: 3.047 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001607/0.2441, allocations: 2.136 MB / 424.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2441, allocations: 0 / 424.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001411/0.2455, allocations: 2.19 MB / 427 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002634/0.2458, allocations: 23.38 kB / 427 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003132/0.2489, allocations: 3.316 MB / 430.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002827/0.2492, allocations: 0.7355 MB / 431.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.48e-05/0.2493, allocations: 0 / 431.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.238e-05/0.2493, allocations: 35.42 kB / 431.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of SimCode: time 2.996e-06/0.2493, allocations: 0 / 431.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02208/0.2714, allocations: 4.902 MB / 436 MB, free: 5.609 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.348/7.62, allocations: 3.672 kB / 436 MB, free: 5.609 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