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.001515/0.001515, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001699/0.001699, allocations: 203.9 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.555/1.555, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 59.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2953, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002724/0.2981, allocations: 1.348 MB / 410.1 MB, free: 184 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009201/0.2991, allocations: 349.4 kB / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.951e-05/0.2991, allocations: 0 / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.508e-05/0.2992, allocations: 3.938 kB / 410.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.904e-05/0.2993, allocations: 7.984 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.0005291/0.2998, allocations: 79.73 kB / 410.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.587e-05/0.2999, allocations: 19.92 kB / 410.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.112e-05/0.2999, allocations: 7.984 kB / 410.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.824e-05/0.3, allocations: 7.938 kB / 410.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.05e-05/0.3, allocations: 19.91 kB / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.223e-05/0.3, allocations: 0 / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001915/0.3002, allocations: 87.84 kB / 410.7 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.744e-05/0.3002, allocations: 7.938 kB / 410.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.192e-05/0.3003, allocations: 7.938 kB / 410.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002138/0.3005, allocations: 82.91 kB / 410.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3005, allocations: 0 / 410.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3005, allocations: 0 / 410.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.774e-06/0.3005, 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.0005582/0.3011, allocations: 355.3 kB / 411.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.3012, allocations: 12.03 kB / 411.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.075e-05/0.3012, allocations: 30.75 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.473e-05/0.3013, allocations: 0.9375 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001593/0.3014, allocations: 172.3 kB / 411.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.3015, allocations: 384 / 411.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.406e-05/0.3015, allocations: 384 / 411.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001192/0.3016, allocations: 46.19 kB / 411.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.3016, allocations: 3.938 kB / 411.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.337e-06/0.3016, allocations: 4 kB / 411.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.3016, allocations: 0 / 411.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.84e-05/0.3017, allocations: 7.984 kB / 411.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004286/0.3021, allocations: 249 kB / 411.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.589e-05/0.3022, allocations: 34.44 kB / 411.7 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.649e-05/0.3022, allocations: 12.92 kB / 411.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.05e-05/0.3022, allocations: 4 kB / 411.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001412/0.3024, allocations: 47.41 kB / 411.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.583e-06/0.3024, allocations: 0 / 411.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001924/0.3026, allocations: 65.56 kB / 411.8 MB, free: 14.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.3027, allocations: 51.41 kB / 411.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.915e-05/0.3027, allocations: 101.9 kB / 411.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.3028, allocations: 29.69 kB / 412 MB, free: 14.1 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.122e-05/0.3028, allocations: 92.14 kB / 412.1 MB, free: 14 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.168e-05/0.3029, allocations: 7.891 kB / 412.1 MB, free: 14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.826e-05/0.3029, allocations: 17.72 kB / 412.1 MB, free: 13.97 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.3031, allocations: 314.8 kB / 412.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.414e-05/0.3031, allocations: 8 kB / 412.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.769e-05/0.3031, allocations: 22.09 kB / 412.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.361e-05/0.3032, allocations: 37.64 kB / 412.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.3032, allocations: 3.938 kB / 412.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001097/0.3033, allocations: 57.69 kB / 412.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.3033, allocations: 4 kB / 412.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.3033, allocations: 240 / 412.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.3034, allocations: 0 / 412.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.15e-05/0.3034, allocations: 8 kB / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.3034, allocations: 7.875 kB / 412.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.77e-05/0.3035, allocations: 7.891 kB / 412.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.789e-06/0.3035, allocations: 7.984 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 9.107e-05/0.3036, allocations: 121.8 kB / 412.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.056e-05/0.3036, allocations: 4 kB / 412.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.643e-05/0.3036, allocations: 3.906 kB / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.3036, allocations: 0 / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.3036, allocations: 0 / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3036, allocations: 0 / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002708/0.3039, allocations: 290.6 kB / 413 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3039, allocations: 0 / 413 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.739e-05/0.3039, allocations: 11.92 kB / 413 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.304, allocations: 4 kB / 413 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.304, allocations: 0 / 413 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.304, allocations: 0 / 413 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.304, allocations: 0 / 413 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001288/0.3041, allocations: 143.5 kB / 413.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.03e-05/0.3042, allocations: 81.06 kB / 413.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.3042, allocations: 4 kB / 413.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.318e-05/0.3042, allocations: 4 kB / 413.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.351e-05/0.3043, allocations: 7.984 kB / 413.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.778e-06/0.3043, allocations: 0 / 413.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.011e-05/0.3043, allocations: 83.22 kB / 413.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3044, allocations: 0 / 413.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002596/0.3046, 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.0008834/0.3055, allocations: 0.7668 MB / 414.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001194/0.3056, allocations: 23.98 kB / 414.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3057, allocations: 0 / 414.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.333e-05/0.3057, allocations: 12 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.0001999/0.3059, allocations: 4 kB / 414.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.3073, allocations: 1.227 MB / 415.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003877/0.3077, allocations: 0.6768 MB / 416 MB, free: 9.766 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.419e-05/0.3078, allocations: 7.984 kB / 416 MB, free: 9.758 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.423e-05/0.3078, allocations: 11.44 kB / 416.1 MB, free: 9.746 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3078, allocations: 0 / 416.1 MB, free: 9.746 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02457/0.3324, allocations: 1.937 MB / 418 MB, free: 7.891 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.386/8.718, allocations: 10.66 kB / 418 MB, free: 7.883 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.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