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.001126/0.001126, 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.001232/0.001232, 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.401/1.401, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 59.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2814, allocations: 50.55 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002209/0.2836, allocations: 1.348 MB / 410.1 MB, free: 184 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007087/0.2844, allocations: 349.4 kB / 410.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.194e-05/0.2844, allocations: 0 / 410.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.521e-05/0.2844, allocations: 3.938 kB / 410.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.148e-05/0.2845, allocations: 4 kB / 410.5 MB, free: 15.83 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.000457/0.285, allocations: 83.72 kB / 410.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.545e-05/0.2851, allocations: 19.92 kB / 410.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.025e-05/0.2851, allocations: 0 / 410.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.323e-05/0.2851, allocations: 7.938 kB / 410.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.538e-05/0.2852, allocations: 15.92 kB / 410.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.017e-05/0.2852, allocations: 0 / 410.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001649/0.2853, allocations: 87.86 kB / 410.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.574e-05/0.2854, allocations: 11.92 kB / 410.7 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.621e-05/0.2854, allocations: 11.92 kB / 410.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001753/0.2856, allocations: 78.92 kB / 410.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.2856, allocations: 4 kB / 410.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2856, allocations: 0 / 410.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.92e-06/0.2856, allocations: 0 / 410.8 MB, free: 15.52 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.0003845/0.286, allocations: 343.3 kB / 411.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.286, allocations: 12.03 kB / 411.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.832e-05/0.2861, allocations: 38.73 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.681e-05/0.2861, allocations: 0.9375 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.2862, allocations: 176.3 kB / 411.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.2863, allocations: 384 / 411.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.173e-05/0.2863, allocations: 384 / 411.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.569e-05/0.2864, allocations: 46.19 kB / 411.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.2864, allocations: 3.938 kB / 411.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.705e-06/0.2864, allocations: 0 / 411.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.2864, allocations: 0 / 411.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.389e-05/0.2864, allocations: 4 kB / 411.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003604/0.2868, allocations: 261 kB / 411.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.252e-05/0.2869, allocations: 34.44 kB / 411.7 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.476e-05/0.2869, allocations: 12.92 kB / 411.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.178e-06/0.2869, allocations: 0 / 411.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001154/0.2871, allocations: 51.41 kB / 411.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.2871, allocations: 4 kB / 411.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001746/0.2872, allocations: 53.64 kB / 411.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.027e-05/0.2873, allocations: 55.34 kB / 411.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.754e-05/0.2874, allocations: 109.8 kB / 412 MB, free: 14.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.2874, allocations: 25.7 kB / 412 MB, free: 14.1 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.69e-05/0.2874, allocations: 92.12 kB / 412.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.051e-05/0.2874, allocations: 7.891 kB / 412.1 MB, free: 14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.165e-05/0.2875, allocations: 17.72 kB / 412.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.651e-05/0.2876, allocations: 318.8 kB / 412.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.215e-05/0.2876, allocations: 7.984 kB / 412.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.141e-05/0.2876, allocations: 21.72 kB / 412.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.257e-05/0.2877, allocations: 25.66 kB / 412.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2877, allocations: 0 / 412.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.597e-05/0.2878, allocations: 61.62 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.2878, allocations: 8.016 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.838e-06/0.2878, allocations: 4 kB / 412.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.2878, allocations: 0 / 412.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.744e-05/0.2879, allocations: 8 kB / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.068e-06/0.2879, allocations: 3.938 kB / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.871e-05/0.2879, allocations: 7.891 kB / 412.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.2879, allocations: 7.938 kB / 412.6 MB, free: 13.48 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 7.729e-05/0.288, allocations: 117.7 kB / 412.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.018e-05/0.288, allocations: 4 kB / 412.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.37e-05/0.2881, allocations: 12.12 kB / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.2881, allocations: 3.984 kB / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.2881, allocations: 0 / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.2881, allocations: 0 / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001995/0.2883, allocations: 286.6 kB / 413 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2883, allocations: 0 / 413 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.399e-05/0.2883, allocations: 4 kB / 413 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.2883, allocations: 0 / 413 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.2883, allocations: 7.922 kB / 413 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.2883, allocations: 3.984 kB / 413 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2883, allocations: 4 kB / 413 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001021/0.2884, allocations: 143.5 kB / 413.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.248e-05/0.2885, allocations: 81.44 kB / 413.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.2885, allocations: 4 kB / 413.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.676e-05/0.2886, allocations: 8 kB / 413.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.465e-05/0.2886, allocations: 3.984 kB / 413.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.2886, allocations: 0 / 413.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.555e-05/0.2887, allocations: 83.22 kB / 413.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2887, allocations: 4 kB / 413.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002609/0.2889, allocations: 31.92 kB / 413.3 MB, free: 12.59 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.0006603/0.2896, allocations: 0.7619 MB / 414.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 9.272e-05/0.2897, allocations: 23.98 kB / 414.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2897, allocations: 0 / 414.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.499e-05/0.2897, allocations: 7.938 kB / 414.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002048/0.29, allocations: 4 kB / 414.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.291, allocations: 1.223 MB / 415.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002589/0.2913, allocations: 0.6807 MB / 416 MB, free: 9.77 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.125e-05/0.2913, allocations: 7.984 kB / 416.1 MB, free: 9.762 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.615e-05/0.2913, allocations: 11.44 kB / 416.1 MB, free: 9.75 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2913, allocations: 0 / 416.1 MB, free: 9.75 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01668/0.308, allocations: 1.933 MB / 418 MB, free: 7.898 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.886/8.195, allocations: 11.25 kB / 418 MB, free: 7.891 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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