Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.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.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001772/0.001773, allocations: 118.7 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00192/0.001921, allocations: 205.2 kB / 18.73 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 60.05 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2789, allocations: 50.54 MB / 408.8 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002464/0.2814, allocations: 1.535 MB / 410.3 MB, free: 136 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002314/0.2838, allocations: 1.479 MB / 411.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.021e-05/0.2839, allocations: 0 / 411.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001016/0.284, allocations: 11.88 kB / 411.8 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.725e-05/0.2841, allocations: 31.72 kB / 411.8 MB, free: 14.6 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.0009611/0.2851, allocations: 386.8 kB / 412.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000159/0.2852, allocations: 135.6 kB / 412.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.275e-05/0.2853, allocations: 13.48 kB / 412.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.465e-05/0.2854, allocations: 71.69 kB / 412.4 MB, free: 14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000541/0.2859, allocations: 69.52 kB / 412.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.519e-05/0.286, allocations: 12 kB / 412.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005854/0.2865, allocations: 411.3 kB / 412.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.779e-05/0.2866, allocations: 39.83 kB / 412.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.468e-05/0.2867, allocations: 71.48 kB / 413 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006139/0.2873, allocations: 404.8 kB / 413.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2873, allocations: 4 kB / 413.4 MB, free: 13.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2873, allocations: 0 / 413.4 MB, free: 13.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.2873, allocations: 0 / 413.4 MB, free: 13.01 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008301/0.2882, allocations: 0.5143 MB / 413.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.2882, allocations: 8.031 kB / 413.9 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.083e-05/0.2883, allocations: 46.64 kB / 414 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002135/0.2885, allocations: 28.73 kB / 414 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.2887, allocations: 205.7 kB / 414.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.2887, allocations: 8.375 kB / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.394e-05/0.2888, allocations: 11.94 kB / 414.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002578/0.289, allocations: 130.4 kB / 414.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.289, allocations: 0 / 414.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.2891, allocations: 7.984 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.718e-06/0.2891, allocations: 0 / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002134/0.2893, allocations: 67.89 kB / 414.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007393/0.29, allocations: 0.5555 MB / 415 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003532/0.2904, allocations: 155.9 kB / 415.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/0.2906, allocations: 62.55 kB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.2906, allocations: 7.922 kB / 415.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002781/0.2909, allocations: 161.8 kB / 415.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.443e-06/0.2909, allocations: 0 / 415.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005908/0.2915, allocations: 245.3 kB / 415.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.44e-05/0.2916, allocations: 122.9 kB / 415.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.2918, allocations: 199.6 kB / 415.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.9e-05/0.2918, allocations: 45.69 kB / 415.9 MB, free: 10.19 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.503e-05/0.2919, allocations: 116.5 kB / 416.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.054e-05/0.292, allocations: 51.38 kB / 416.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.721e-05/0.292, allocations: 49.7 kB / 416.2 MB, free: 9.965 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.2922, allocations: 334.8 kB / 416.5 MB, free: 9.629 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002064/0.2924, allocations: 103.9 kB / 416.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000208/0.2926, allocations: 132.3 kB / 416.7 MB, free: 9.387 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003798/0.293, allocations: 223.7 kB / 416.9 MB, free: 9.156 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.293, allocations: 4 kB / 416.9 MB, free: 9.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005196/0.2935, allocations: 297.3 kB / 417.2 MB, free: 8.855 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.2935, allocations: 4 kB / 417.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.2936, allocations: 4 kB / 417.2 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.2936, allocations: 0 / 417.2 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001573/0.2937, allocations: 39.86 kB / 417.3 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.2938, allocations: 8.031 kB / 417.3 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.612e-05/0.2938, allocations: 31.67 kB / 417.3 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.972e-05/0.2939, allocations: 8 kB / 417.3 MB, free: 8.762 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,globalSeed.seed,truncatedNormalNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,uniformNoise.actualGlobalSeed,uniformNoise.localSeed,globalSeed.id_impure,truncatedNormalNoise.r_raw,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r,truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[1],uniformNoise.r_raw,$PRE.uniformNoise.r_raw,uniformNoise.r,$PRE.uniformNoise.r,uniformNoise.state[4],$PRE.uniformNoise.state[4],uniformNoise.state[3],$PRE.uniformNoise.state[3],uniformNoise.state[2],$PRE.uniformNoise.state[2],uniformNoise.state[1],$PRE.uniformNoise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * 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.0001389/0.294, allocations: 149.7 kB / 417.5 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.658e-05/0.294, allocations: 15.81 kB / 417.5 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.506e-05/0.2941, allocations: 17.39 kB / 417.5 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.2941, allocations: 7.938 kB / 417.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.2941, allocations: 0 / 417.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.2941, allocations: 4 kB / 417.5 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001999/0.2943, allocations: 213.6 kB / 417.7 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2943, allocations: 0 / 417.7 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.929e-05/0.2944, allocations: 11.98 kB / 417.7 MB, free: 8.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.9e-06/0.2944, allocations: 4 kB / 417.7 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.2944, allocations: 3.938 kB / 417.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.2944, allocations: 3.938 kB / 417.7 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.2944, allocations: 4 kB / 417.7 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003909/0.2948, allocations: 242.5 kB / 418 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.903e-05/0.2949, allocations: 92.86 kB / 418.1 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.108e-05/0.2949, allocations: 15.98 kB / 418.1 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.536e-05/0.295, allocations: 7.938 kB / 418.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.53e-05/0.2951, allocations: 23.92 kB / 418.1 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.2951, allocations: 4.094 kB / 418.1 MB, free: 7.848 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001376/0.2953, allocations: 137.2 kB / 418.3 MB, free: 7.715 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2953, allocations: 0 / 418.3 MB, free: 7.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004315/0.2957, allocations: 120 kB / 418.4 MB, free: 7.598 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * 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.001432/0.2971, allocations: 1.064 MB / 419.4 MB, free: 6.523 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004662/0.2976, allocations: 202.4 kB / 419.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2976, allocations: 3.938 kB / 419.6 MB, free: 6.324 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.2978, allocations: 72.09 kB / 419.7 MB, free: 6.254 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001847/0.298, allocations: 11.98 kB / 419.7 MB, free: 6.242 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002951/0.301, allocations: 2.323 MB / 422 MB, free: 3.805 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.3013, allocations: 0.7241 MB / 422.8 MB, free: 3.055 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.638e-05/0.3014, allocations: 25.39 kB / 422.8 MB, free: 3.031 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.489e-05/0.3015, allocations: 47.42 kB / 422.8 MB, free: 2.984 MB / 334.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3015, allocations: 0 / 422.8 MB, free: 2.984 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02461/0.3261, allocations: 5.58 MB / 428.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.005/8.331, allocations: 3.984 kB / 428.4 MB, free: 13.48 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches