Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.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.UniformNoiseProperties,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoiseProperties,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00151/0.00151, allocations: 116.1 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001947/0.001947, allocations: 200.7 kB / 18.73 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.497/1.497, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001765, allocations: 67.88 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2634, allocations: 50.55 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoiseProperties): time 0.003391/0.2668, allocations: 1.862 MB / 410.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002028/0.2689, allocations: 1.021 MB / 411.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.671e-05/0.269, allocations: 0 / 411.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.2692, allocations: 19.73 kB / 411.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001825/0.2693, allocations: 35.66 kB / 411.7 MB, free: 14.56 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.0005873/0.2699, allocations: 179.5 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002795/0.2702, allocations: 215.4 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.2704, allocations: 76.23 kB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001261/0.2705, allocations: 99.61 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006056/0.2712, allocations: 126 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.177e-05/0.2712, allocations: 20 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002537/0.2715, allocations: 119.8 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.927e-05/0.2716, allocations: 63.81 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.2717, allocations: 95.41 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004752/0.2722, allocations: 301.9 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2722, allocations: 0 / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2722, allocations: 0 / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.2722, allocations: 0 / 413 MB, free: 13.3 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001217/0.2734, allocations: 0.5619 MB / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.2735, allocations: 8.031 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.2736, allocations: 58.69 kB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002118/0.2738, allocations: 36.78 kB / 413.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002934/0.2741, allocations: 236.9 kB / 413.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/0.2741, allocations: 20.38 kB / 413.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.297e-05/0.2742, allocations: 23.94 kB / 413.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005276/0.2747, allocations: 202.4 kB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.2747, allocations: 0 / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.297e-05/0.2748, allocations: 8 kB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.2748, allocations: 0 / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000499/0.2753, allocations: 171.9 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001119/0.2764, allocations: 0.5865 MB / 414.9 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/0.2775, allocations: 302.7 kB / 415.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003056/0.2778, allocations: 112.8 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.96e-05/0.2779, allocations: 3.984 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004327/0.2783, allocations: 170.8 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.964e-06/0.2783, allocations: 0 / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001053/0.2794, allocations: 357.2 kB / 415.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.286e-05/0.2794, allocations: 55.41 kB / 415.9 MB, free: 10.22 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002475/0.2797, allocations: 226.7 kB / 416.1 MB, free: 9.988 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.394e-05/0.2797, allocations: 41.69 kB / 416.1 MB, free: 9.941 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.2799, allocations: 132.6 kB / 416.3 MB, free: 9.809 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.89e-05/0.2799, allocations: 79.38 kB / 416.3 MB, free: 9.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.28, allocations: 69.69 kB / 416.4 MB, free: 9.656 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.2802, allocations: 338.8 kB / 416.7 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003554/0.2806, allocations: 127.9 kB / 416.9 MB, free: 9.191 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000382/0.281, allocations: 169.6 kB / 417 MB, free: 9.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006553/0.2816, allocations: 267.2 kB / 417.3 MB, free: 8.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.2816, allocations: 0 / 417.3 MB, free: 8.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008581/0.2825, allocations: 374 kB / 417.6 MB, free: 8.383 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.2825, allocations: 4 kB / 417.7 MB, free: 8.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.2825, allocations: 7.969 kB / 417.7 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.2826, allocations: 7.984 kB / 417.7 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003161/0.2829, allocations: 59.95 kB / 417.7 MB, free: 8.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.2829, allocations: 7.938 kB / 417.7 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.2831, allocations: 39.75 kB / 417.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.453e-05/0.2831, allocations: 15.98 kB / 417.8 MB, free: 8.242 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: 17 ($whenCondition1,globalSeed.seed,noise.actualGlobalSeed,noise.localSeed,globalSeed.id_impure,noise.r_raw,$PRE.noise.r_raw,noise.r,$PRE.noise.r,noise.state[4],$PRE.noise.state[4],noise.state[3],$PRE.noise.state[3],noise.state[2],$PRE.noise.state[2],noise.state[1],$PRE.noise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 1 * 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.000165/0.2833, allocations: 149.7 kB / 417.9 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.955e-05/0.2834, allocations: 23.84 kB / 418 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.731e-05/0.2834, allocations: 25.86 kB / 418 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.2834, allocations: 4 kB / 418 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.2835, allocations: 4 kB / 418 MB, free: 8.027 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.2835, allocations: 0 / 418 MB, free: 8.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.2846, allocations: 0.6269 MB / 418.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2846, allocations: 0 / 418.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002571/0.2849, allocations: 39.91 kB / 418.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.2849, allocations: 4 kB / 418.7 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.358e-05/0.2849, allocations: 7.984 kB / 418.7 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.285, allocations: 4 kB / 418.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.285, allocations: 4 kB / 418.7 MB, free: 7.285 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/0.286, allocations: 482.4 kB / 419.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.773e-05/0.2861, allocations: 108.8 kB / 419.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.081e-05/0.2862, allocations: 12.05 kB / 419.3 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.2864, allocations: 15.98 kB / 419.3 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.947e-05/0.2865, allocations: 15.97 kB / 419.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.2865, allocations: 8 kB / 419.3 MB, free: 6.625 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000163/0.2866, allocations: 160.7 kB / 419.5 MB, free: 6.469 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2867, allocations: 0 / 419.5 MB, free: 6.469 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000403/0.2871, allocations: 67.92 kB / 419.5 MB, free: 6.402 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.mu,variance.mu,variance.var,standardDeviation.variance.mu,standardDeviation.variance.var) * Number of discrete variables: 7 ($whenCondition1,noise.state[1],noise.state[2],noise.state[3],noise.state[4],noise.r,noise.r_raw) * Number of discrete states: 4 (noise.state[1],noise.state[2],noise.state[3],noise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00181/0.2889, allocations: 1.089 MB / 420.6 MB, free: 5.305 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008386/0.2897, allocations: 291.5 kB / 420.9 MB, free: 5.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.2897, allocations: 0 / 420.9 MB, free: 5.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003282/0.2901, allocations: 107.9 kB / 421 MB, free: 4.914 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000375/0.2905, allocations: 38.11 kB / 421 MB, free: 4.879 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004542/0.295, allocations: 2.818 MB / 423.9 MB, free: 1.977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004465/0.2955, allocations: 0.7397 MB / 424.6 MB, free: 1.211 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001318/0.2956, allocations: 37.92 kB / 424.6 MB, free: 1.172 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.2958, allocations: 67.41 kB / 424.7 MB, free: 1.105 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2958, allocations: 0 / 424.7 MB, free: 1.105 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0349/0.3307, allocations: 5.291 MB / 430 MB, free: 11.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.431/8.762, allocations: 0 / 430 MB, free: 11.92 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-09 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoiseProperties.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/UniformNoiseProperties/UniformNoiseProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches