Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 114.2 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 197.3 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 51.91 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2781, allocations: 49.43 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002947/0.2811, allocations: 1.521 MB / 401.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002775/0.2839, allocations: 1.435 MB / 403.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.563e-05/0.284, allocations: 8 kB / 403.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.2842, allocations: 11.86 kB / 403.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.748e-05/0.2843, allocations: 27.72 kB / 403.2 MB, free: 5.793 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.001315/0.2857, allocations: 378.8 kB / 403.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002022/0.2859, allocations: 127.7 kB / 403.7 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.358e-05/0.286, allocations: 21.47 kB / 403.8 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.845e-05/0.286, allocations: 59.7 kB / 403.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006617/0.2867, allocations: 91.56 kB / 403.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.145e-05/0.2868, allocations: 12 kB / 403.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007171/0.2875, allocations: 407.3 kB / 404.3 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.788e-05/0.2876, allocations: 39.84 kB / 404.3 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.763e-05/0.2876, allocations: 63.59 kB / 404.4 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006492/0.2883, allocations: 393.9 kB / 404.8 MB, free: 4.238 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2883, allocations: 0 / 404.8 MB, free: 4.238 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2883, allocations: 0 / 404.8 MB, free: 4.238 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.76e-06/0.2883, allocations: 8 kB / 404.8 MB, free: 4.23 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008519/0.2892, allocations: 0.5174 MB / 405.3 MB, free: 3.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.2893, allocations: 15.89 kB / 405.3 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.396e-05/0.2893, allocations: 42.69 kB / 405.4 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002232/0.2896, allocations: 36.77 kB / 405.4 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002282/0.2898, allocations: 216.4 kB / 405.6 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.2898, allocations: 4 kB / 405.6 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.2899, allocations: 12 kB / 405.6 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003109/0.2902, allocations: 128.2 kB / 405.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.2902, allocations: 0 / 405.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.522e-05/0.2902, allocations: 3.984 kB / 405.8 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.2902, allocations: 4 kB / 405.8 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002179/0.2905, allocations: 63.89 kB / 405.8 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008337/0.2913, allocations: 0.5478 MB / 406.4 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003806/0.2917, allocations: 155.8 kB / 406.5 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.2918, allocations: 62.61 kB / 406.6 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.225e-05/0.2919, allocations: 4 kB / 406.6 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003055/0.2922, allocations: 153.8 kB / 406.8 MB, free: 2.051 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.823e-06/0.2922, allocations: 0 / 406.8 MB, free: 2.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006237/0.2928, allocations: 261.4 kB / 407 MB, free: 1.789 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.314e-05/0.2929, allocations: 110.8 kB / 407.1 MB, free: 1.656 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002108/0.2931, allocations: 207.8 kB / 407.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.62e-05/0.2932, allocations: 45.69 kB / 407.4 MB, free: 1.395 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.391e-05/0.2933, allocations: 116.4 kB / 407.5 MB, free: 1.277 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.559e-05/0.2933, allocations: 43.69 kB / 407.5 MB, free: 1.234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.203e-05/0.2934, allocations: 57.7 kB / 407.6 MB, free: 1.172 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.2936, allocations: 330.8 kB / 407.9 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002378/0.2939, allocations: 104 kB / 408 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002559/0.2941, allocations: 139.4 kB / 408.1 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000396/0.2945, allocations: 224.2 kB / 408.4 MB, free: 368 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.2945, allocations: 0 / 408.4 MB, free: 368 kB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005571/0.2951, allocations: 305.3 kB / 408.7 MB, free: 56 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.2951, allocations: 7.938 kB / 408.7 MB, free: 48 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2951, allocations: 0 / 408.7 MB, free: 48 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.2952, allocations: 4 kB / 408.7 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.2953, allocations: 36.02 kB / 408.7 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.2954, allocations: 4 kB / 408.7 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.2955, allocations: 28.03 kB / 408.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/0.2955, allocations: 4 kB / 408.7 MB, free: 15.97 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,globalSeed.seed,truncatedNormalNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,uniformNoise.actualGlobalSeed,uniformNoise.localSeed,globalSeed.id_impure,truncatedNormalNoise.r_raw,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r,truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[1],uniformNoise.r_raw,$PRE.uniformNoise.r_raw,uniformNoise.r,$PRE.uniformNoise.r,uniformNoise.state[4],$PRE.uniformNoise.state[4],uniformNoise.state[3],$PRE.uniformNoise.state[3],uniformNoise.state[2],$PRE.uniformNoise.state[2],uniformNoise.state[1],$PRE.uniformNoise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * 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.0001701/0.2957, allocations: 153.8 kB / 408.9 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.532e-05/0.2957, allocations: 19.8 kB / 408.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.464e-05/0.2958, allocations: 25.33 kB / 408.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.2958, allocations: 4 kB / 408.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.2958, allocations: 0 / 408.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2958, allocations: 0 / 408.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002566/0.2961, allocations: 217.5 kB / 409.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-06/0.2961, allocations: 0 / 409.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.053e-05/0.2962, allocations: 15.92 kB / 409.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.503e-06/0.2962, allocations: 3.938 kB / 409.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.2962, allocations: 4 kB / 409.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.2962, allocations: 3.938 kB / 409.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2962, allocations: 0 / 409.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004366/0.2966, allocations: 242.7 kB / 409.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.075e-05/0.2967, allocations: 92.97 kB / 409.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.959e-05/0.2968, allocations: 15.94 kB / 409.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.195e-05/0.2969, allocations: 11.98 kB / 409.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.245e-05/0.2969, allocations: 15.92 kB / 409.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.297, allocations: 4 kB / 409.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001436/0.2971, allocations: 137.2 kB / 409.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2971, allocations: 0 / 409.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004831/0.2976, allocations: 135.6 kB / 409.8 MB, free: 14.78 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * 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.001651/0.2993, allocations: 1.061 MB / 410.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004862/0.2998, allocations: 191.8 kB / 411.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.2998, allocations: 192 / 411.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001748/0.3, allocations: 75.89 kB / 411.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/0.3002, allocations: 10.5 kB / 411.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003026/0.3032, allocations: 2.319 MB / 413.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003451/0.3036, allocations: 0.7201 MB / 414.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.457e-05/0.3037, allocations: 21.41 kB / 414.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.458e-05/0.3038, allocations: 43.42 kB / 414.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3038, allocations: 0 / 414.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02891/0.3327, allocations: 5.401 MB / 419.6 MB, free: 4.895 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.308/8.641, allocations: 23.89 kB / 419.7 MB, free: 4.875 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches