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.001202/0.001202, allocations: 117.8 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 67.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2893, allocations: 50.53 MB / 408.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.003104/0.2925, allocations: 1.504 MB / 410.3 MB, free: 48 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.2938, allocations: 0.5637 MB / 410.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.894e-05/0.2939, allocations: 0 / 410.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.294, allocations: 7.875 kB / 410.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.134e-05/0.2941, allocations: 23.8 kB / 410.8 MB, free: 15.45 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.0005921/0.2947, allocations: 139.6 kB / 411 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001618/0.2949, allocations: 115.6 kB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.566e-05/0.295, allocations: 13.12 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.847e-05/0.295, allocations: 47.78 kB / 411.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005669/0.2956, allocations: 78.3 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.808e-05/0.2956, allocations: 12 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002175/0.2959, allocations: 103.9 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.689e-05/0.2959, allocations: 35.8 kB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.66e-05/0.296, allocations: 55.66 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003143/0.2963, allocations: 197.2 kB / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.2963, allocations: 0 / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2963, allocations: 0 / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.2964, allocations: 4 kB / 411.6 MB, free: 14.67 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.0007886/0.2971, allocations: 458.8 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.2972, allocations: 8.031 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.617e-05/0.2973, allocations: 46.64 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003231/0.2976, allocations: 36.81 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002138/0.2978, allocations: 204 kB / 412.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.2979, allocations: 8.375 kB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.703e-05/0.2979, allocations: 4.375 kB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002582/0.2982, allocations: 119.3 kB / 412.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.2982, allocations: 0 / 412.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.2982, allocations: 3.984 kB / 412.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.2982, allocations: 3.938 kB / 412.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001783/0.2984, allocations: 59.95 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006773/0.2991, allocations: 460.7 kB / 413 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003075/0.2994, allocations: 129.2 kB / 413.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.2995, allocations: 57.77 kB / 413.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.033e-05/0.2995, allocations: 0 / 413.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002609/0.2998, allocations: 141 kB / 413.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.192e-06/0.2998, allocations: 4 kB / 413.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005123/0.3003, allocations: 229.4 kB / 413.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.451e-05/0.3004, allocations: 97.16 kB / 413.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.3006, allocations: 174.3 kB / 413.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.391e-05/0.3006, allocations: 45.7 kB / 413.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.124e-05/0.3007, allocations: 104.5 kB / 414 MB, free: 12.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.002e-05/0.3007, allocations: 43.45 kB / 414 MB, free: 12.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.857e-05/0.3008, allocations: 61.91 kB / 414.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001991/0.301, allocations: 330.8 kB / 414.4 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.3012, allocations: 104.4 kB / 414.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001923/0.3014, allocations: 128.4 kB / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003317/0.3017, allocations: 218.8 kB / 414.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.3017, allocations: 0 / 414.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004833/0.3022, allocations: 285.3 kB / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.3023, allocations: 11.12 kB / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.3023, allocations: 0 / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.3023, allocations: 0 / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.3024, allocations: 31.98 kB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/0.3025, allocations: 4 kB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.268e-05/0.3025, allocations: 19.83 kB / 415.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.3026, allocations: 12 kB / 415.2 MB, free: 10.81 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.0001304/0.3027, allocations: 149.6 kB / 415.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.648e-05/0.3027, allocations: 15.81 kB / 415.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.138e-05/0.3028, allocations: 13.41 kB / 415.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-06/0.3028, allocations: 4 kB / 415.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3028, allocations: 0 / 415.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.3028, allocations: 7.922 kB / 415.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001982/0.303, allocations: 213.6 kB / 415.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.165e-06/0.3031, allocations: 0 / 415.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.855e-05/0.3031, allocations: 15.91 kB / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.598e-06/0.3031, allocations: 4 kB / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.3031, allocations: 0 / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3031, allocations: 0 / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3032, allocations: 4 kB / 415.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003372/0.3035, allocations: 229.5 kB / 415.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.596e-05/0.3036, allocations: 85.02 kB / 415.9 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.062e-05/0.3036, allocations: 15.98 kB / 415.9 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.501e-05/0.3037, allocations: 4 kB / 415.9 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.082e-05/0.3037, allocations: 11.92 kB / 416 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-06/0.3037, allocations: 8 kB / 416 MB, free: 9.938 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.832e-05/0.3038, allocations: 132.2 kB / 416.1 MB, free: 9.809 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3038, allocations: 0 / 416.1 MB, free: 9.809 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000282/0.3041, allocations: 44 kB / 416.1 MB, free: 9.766 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.001057/0.3052, allocations: 0.9135 MB / 417 MB, free: 8.844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004063/0.3056, allocations: 188 kB / 417.2 MB, free: 8.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3056, allocations: 0 / 417.2 MB, free: 8.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001372/0.3058, allocations: 63.91 kB / 417.3 MB, free: 8.598 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001704/0.3059, allocations: 7.938 kB / 417.3 MB, free: 8.59 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002467/0.3084, allocations: 2.109 MB / 419.4 MB, free: 6.387 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.3087, allocations: 0.7119 MB / 420.1 MB, free: 5.648 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.47e-05/0.3088, allocations: 16.88 kB / 420.1 MB, free: 5.629 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.979e-05/0.3089, allocations: 39.42 kB / 420.2 MB, free: 5.59 MB / 334.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3089, allocations: 0 / 420.2 MB, free: 5.59 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02168/0.3306, allocations: 3.678 MB / 423.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.604/7.935, allocations: 13.88 kB / 423.9 MB, free: 1.973 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.0.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