Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.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.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001522/0.001522, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001723/0.001724, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 63.91 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.283, allocations: 50.55 MB / 408.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.003028/0.2861, allocations: 1.488 MB / 410.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.2878, allocations: 0.5755 MB / 410.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.225e-05/0.2879, allocations: 3.938 kB / 410.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001162/0.288, allocations: 11.81 kB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.522e-05/0.2881, allocations: 15.84 kB / 410.9 MB, free: 15.36 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.typeClassSections: time 0.0007552/0.2889, allocations: 147.5 kB / 411.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002185/0.2891, allocations: 111.7 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.224e-05/0.2892, allocations: 9.109 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.2893, allocations: 51.83 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007733/0.2901, allocations: 74.62 kB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.876e-05/0.2902, allocations: 8 kB / 411.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003274/0.2905, allocations: 115.8 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.187e-05/0.2906, allocations: 31.91 kB / 411.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.461e-05/0.2907, allocations: 55.66 kB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004557/0.2912, allocations: 198.4 kB / 411.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2912, allocations: 0 / 411.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2912, allocations: 0 / 411.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.2912, allocations: 0 / 411.7 MB, free: 14.58 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0009192/0.2921, allocations: 466.5 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.2922, allocations: 8.031 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.697e-05/0.2923, allocations: 38.75 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004989/0.2928, allocations: 40.81 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002531/0.2931, allocations: 204.1 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.2931, allocations: 4.312 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.729e-05/0.2931, allocations: 12.38 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003665/0.2935, allocations: 119.3 kB / 412.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.2936, allocations: 0 / 412.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.2936, allocations: 0 / 412.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.2936, allocations: 4 kB / 412.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002648/0.2939, allocations: 59.89 kB / 412.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.2949, allocations: 452.8 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005081/0.2954, allocations: 129.2 kB / 413.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001868/0.2956, allocations: 57.75 kB / 413.3 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.2956, allocations: 0 / 413.3 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003903/0.296, allocations: 133.1 kB / 413.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 2.063e-06/0.2961, allocations: 4 kB / 413.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008493/0.2969, allocations: 245.5 kB / 413.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.719e-05/0.297, allocations: 92.98 kB / 413.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002903/0.2973, allocations: 182.2 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.554e-05/0.2974, allocations: 45.69 kB / 414 MB, free: 12.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.2975, allocations: 108.5 kB / 414.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.213e-05/0.2976, allocations: 47.67 kB / 414.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.2978, allocations: 53.94 kB / 414.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002261/0.298, allocations: 338.8 kB / 414.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003056/0.2983, allocations: 92.47 kB / 414.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003518/0.2987, allocations: 124.4 kB / 414.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005968/0.2993, allocations: 222.9 kB / 414.9 MB, free: 11.08 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.2993, allocations: 0 / 414.9 MB, free: 11.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008135/0.3002, allocations: 293.4 kB / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.3002, allocations: 4 kB / 415.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.3002, allocations: 0 / 415.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.3002, allocations: 4 kB / 415.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.3005, allocations: 27.97 kB / 415.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.3005, allocations: 3.938 kB / 415.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001295/0.3007, allocations: 27.89 kB / 415.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.646e-05/0.3007, allocations: 4 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,globalSeed.seed,uniformNoise2.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise1.localSeed,globalSeed.id_impure,uniformNoise2.r_raw,$PRE.uniformNoise2.r_raw,uniformNoise2.r,$PRE.uniformNoise2.r,uniformNoise2.state[4],$PRE.uniformNoise2.state[4],uniformNoise2.state[3],$PRE.uniformNoise2.state[3],uniformNoise2.state[2],$PRE.uniformNoise2.state[2],uniformNoise2.state[1],$PRE.uniformNoise2.state[1],uniformNoise1.r_raw,$PRE.uniformNoise1.r_raw,uniformNoise1.r,$PRE.uniformNoise1.r,uniformNoise1.state[4],$PRE.uniformNoise1.state[4],uniformNoise1.state[3],$PRE.uniformNoise1.state[3],uniformNoise1.state[2],$PRE.uniformNoise1.state[2],uniformNoise1.state[1],$PRE.uniformNoise1.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 2 * Algorithm blocks: 0 * 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.0002343/0.3009, allocations: 149.9 kB / 415.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.964e-05/0.301, allocations: 11.91 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.507e-05/0.3011, allocations: 17.39 kB / 415.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.3011, allocations: 0 / 415.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3011, allocations: 0 / 415.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.3011, allocations: 11.94 kB / 415.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000381/0.3015, allocations: 209.5 kB / 415.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.3015, allocations: 0 / 415.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.413e-05/0.3016, allocations: 15.92 kB / 415.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.3016, allocations: 0 / 415.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.3016, allocations: 0 / 415.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.3017, allocations: 4 kB / 415.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3017, allocations: 0 / 415.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005974/0.3023, allocations: 230.2 kB / 415.9 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.954e-05/0.3024, allocations: 93 kB / 416 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.328e-05/0.3024, allocations: 4 kB / 416 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.975e-05/0.3025, allocations: 7.984 kB / 416 MB, free: 9.871 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.078e-05/0.3026, allocations: 23.86 kB / 416 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.3027, allocations: 0 / 416 MB, free: 9.848 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001791/0.3029, allocations: 132.2 kB / 416.2 MB, free: 9.719 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3029, allocations: 4 kB / 416.2 MB, free: 9.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004855/0.3034, allocations: 47.92 kB / 416.2 MB, free: 9.668 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: 14 ($whenCondition2,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw,$whenCondition1,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw) * Number of discrete states: 8 (uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001678/0.3051, allocations: 0.903 MB / 417.1 MB, free: 8.758 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006381/0.3057, allocations: 199.9 kB / 417.3 MB, free: 8.562 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3057, allocations: 0 / 417.3 MB, free: 8.562 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002388/0.306, allocations: 59.97 kB / 417.4 MB, free: 8.504 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.3063, allocations: 18.58 kB / 417.4 MB, free: 8.488 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003922/0.3102, allocations: 2.101 MB / 419.5 MB, free: 6.297 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/0.3107, allocations: 0.7041 MB / 420.2 MB, free: 5.566 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.156e-05/0.3108, allocations: 20.86 kB / 420.2 MB, free: 5.543 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.3109, allocations: 47.42 kB / 420.3 MB, free: 5.496 MB / 334.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3109, allocations: 0 / 420.3 MB, free: 5.496 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02546/0.3364, allocations: 3.619 MB / 423.9 MB, free: 1.949 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.694/9.031, allocations: 11.61 kB / 423.9 MB, free: 1.941 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/UniformNoise/UniformNoise.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches