Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.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.ImpureGenerator,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001765/0.001765, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002018/0.002018, allocations: 201.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.4 MB / 247 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 59.89 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2846, allocations: 50.56 MB / 408.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002659/0.2873, allocations: 1.333 MB / 410.2 MB, free: 124 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007959/0.2881, allocations: 361.3 kB / 410.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.126e-05/0.2882, allocations: 0 / 410.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.066e-05/0.2882, allocations: 7.938 kB / 410.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.902e-05/0.2883, allocations: 3.938 kB / 410.5 MB, free: 15.76 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.0004929/0.2888, allocations: 83.73 kB / 410.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.024e-05/0.2889, allocations: 15.98 kB / 410.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.953e-05/0.2889, allocations: 0 / 410.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.747e-05/0.2889, allocations: 15.92 kB / 410.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.351e-05/0.289, allocations: 7.938 kB / 410.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.273e-05/0.289, allocations: 0 / 410.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002074/0.2892, allocations: 91.84 kB / 410.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.302e-05/0.2892, allocations: 0 / 410.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.879e-05/0.2892, allocations: 7.938 kB / 410.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.2894, allocations: 90.89 kB / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.2895, allocations: 4 kB / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2895, allocations: 0 / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.2895, allocations: 0 / 410.8 MB, free: 15.45 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0004674/0.29, allocations: 343.3 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.29, allocations: 8.031 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.383e-05/0.2901, allocations: 34.75 kB / 411.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.956e-05/0.2901, allocations: 8.859 kB / 411.2 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.2902, allocations: 164.3 kB / 411.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.2903, allocations: 12.31 kB / 411.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.163e-05/0.2903, allocations: 4.375 kB / 411.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.266e-05/0.2904, allocations: 38.23 kB / 411.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.2904, allocations: 3.938 kB / 411.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.2904, allocations: 4 kB / 411.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.2904, allocations: 0 / 411.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.288e-05/0.2905, allocations: 4 kB / 411.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004052/0.2909, allocations: 256.9 kB / 411.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.884e-05/0.2909, allocations: 26.52 kB / 411.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.823e-05/0.291, allocations: 24.84 kB / 411.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.361e-06/0.291, allocations: 0 / 411.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001322/0.2911, allocations: 51.41 kB / 411.8 MB, free: 14.31 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.293e-06/0.2911, allocations: 0 / 411.8 MB, free: 14.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001683/0.2913, allocations: 57.58 kB / 411.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/0.2914, allocations: 55.41 kB / 411.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.218e-05/0.2915, allocations: 113.8 kB / 412 MB, free: 14.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.2915, allocations: 25.7 kB / 412.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.468e-05/0.2916, allocations: 80.14 kB / 412.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.327e-05/0.2916, allocations: 11.89 kB / 412.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.031e-05/0.2916, allocations: 21.7 kB / 412.2 MB, free: 13.9 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.2918, allocations: 314.8 kB / 412.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.125e-05/0.2918, allocations: 4 kB / 412.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.607e-05/0.2918, allocations: 29.7 kB / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.234e-05/0.2919, allocations: 33.59 kB / 412.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2919, allocations: 0 / 412.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001011/0.292, allocations: 53.62 kB / 412.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.292, allocations: 8 kB / 412.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.292, allocations: 0 / 412.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.2921, allocations: 0 / 412.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.008e-05/0.2921, allocations: 11.98 kB / 412.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.2921, allocations: 4.031 kB / 412.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.845e-05/0.2922, allocations: 7.891 kB / 412.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.2922, allocations: 4 kB / 412.6 MB, free: 13.41 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: 4 ($whenCondition1,globalSeed.id_impure,globalSeed.seed,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * 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 9.015e-05/0.2923, allocations: 113.8 kB / 412.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.085e-05/0.2923, allocations: 4 kB / 412.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.565e-05/0.2923, allocations: 3.906 kB / 412.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.2923, allocations: 0 / 412.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.541e-05/0.2923, allocations: 3.984 kB / 412.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2924, allocations: 4 kB / 412.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002667/0.2926, allocations: 294.7 kB / 413 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.2926, allocations: 0 / 413 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.139e-05/0.2927, allocations: 48 / 413 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.2927, allocations: 3.984 kB / 413 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.2927, allocations: 4 kB / 413 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2927, allocations: 0 / 413 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2927, allocations: 0 / 413 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000138/0.2928, allocations: 155.5 kB / 413.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.442e-05/0.2929, allocations: 85.38 kB / 413.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.2929, allocations: 0 / 413.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.259e-05/0.293, allocations: 7.938 kB / 413.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.131e-05/0.293, allocations: 4 kB / 413.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.293, allocations: 0 / 413.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.35e-05/0.2931, allocations: 91.2 kB / 413.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2931, allocations: 0 / 413.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002645/0.2933, allocations: 23.94 kB / 413.4 MB, free: 12.52 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008454/0.2942, allocations: 0.7688 MB / 414.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001023/0.2943, allocations: 23.92 kB / 414.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2943, allocations: 0 / 414.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.006e-05/0.2944, allocations: 12 kB / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001954/0.2946, allocations: 0 / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.2958, allocations: 1.227 MB / 415.4 MB, free: 10.4 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.2961, allocations: 0.6807 MB / 416.1 MB, free: 9.695 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.464e-05/0.2962, allocations: 11.98 kB / 416.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.965e-05/0.2962, allocations: 11.44 kB / 416.1 MB, free: 9.672 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2962, allocations: 0 / 416.1 MB, free: 9.672 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02426/0.3205, allocations: 1.936 MB / 418.1 MB, free: 7.824 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.093/9.414, allocations: 8.062 kB / 418.1 MB, free: 7.816 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/ImpureGenerator/ImpureGenerator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches