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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 181.3 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 43.92 kB / 370.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2784, allocations: 52.2 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002779/0.2811, allocations: 1.532 MB / 424.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002529/0.2837, allocations: 1.472 MB / 425.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.795e-05/0.2837, allocations: 3.938 kB / 425.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001002/0.2838, allocations: 11.81 kB / 425.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.306e-05/0.2839, allocations: 27.8 kB / 425.7 MB, free: 11.53 MB / 334.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.001028/0.285, allocations: 390.8 kB / 426.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001997/0.2852, allocations: 135.5 kB / 426.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.825e-05/0.2852, allocations: 9.672 kB / 426.2 MB, free: 11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.636e-05/0.2853, allocations: 55.78 kB / 426.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006159/0.2859, allocations: 90.3 kB / 426.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.581e-05/0.2859, allocations: 12 kB / 426.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007581/0.2867, allocations: 459.1 kB / 426.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.636e-05/0.2868, allocations: 39.84 kB / 426.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.538e-05/0.2868, allocations: 63.59 kB / 426.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005933/0.2874, allocations: 395.1 kB / 427.3 MB, free: 9.922 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2874, allocations: 4 kB / 427.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2874, allocations: 0 / 427.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.704e-06/0.2874, allocations: 3.938 kB / 427.3 MB, free: 9.914 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0009007/0.2884, allocations: 452.7 kB / 427.7 MB, free: 9.441 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.2884, allocations: 8.031 kB / 427.8 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.42e-05/0.2885, allocations: 50.69 kB / 427.8 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002334/0.2887, allocations: 28.83 kB / 427.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/0.2889, allocations: 163.5 kB / 428 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/0.2889, allocations: 4 kB / 428 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.289, allocations: 12 kB / 428 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002955/0.2892, allocations: 132.1 kB / 428.1 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.2893, allocations: 0 / 428.1 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.2893, allocations: 0 / 428.1 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.2893, allocations: 0 / 428.1 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002198/0.2895, allocations: 75.88 kB / 428.2 MB, free: 8.926 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008172/0.2903, allocations: 0.5156 MB / 428.7 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003579/0.2907, allocations: 151.9 kB / 428.9 MB, free: 8.184 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/0.2908, allocations: 62.5 kB / 428.9 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.2908, allocations: 7.984 kB / 428.9 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003061/0.2911, allocations: 157.8 kB / 429.1 MB, free: 7.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.192e-06/0.2911, allocations: 3.938 kB / 429.1 MB, free: 7.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006164/0.2917, allocations: 257.4 kB / 429.4 MB, free: 7.668 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.89e-05/0.2918, allocations: 114.8 kB / 429.5 MB, free: 7.531 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000212/0.292, allocations: 199.1 kB / 429.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.191e-05/0.2921, allocations: 45.69 kB / 429.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.237e-05/0.2922, allocations: 116.5 kB / 429.8 MB, free: 7.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.366e-05/0.2922, allocations: 47.67 kB / 429.9 MB, free: 7.113 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.494e-05/0.2923, allocations: 53.69 kB / 429.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.2925, allocations: 338.9 kB / 430.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.2927, allocations: 95.95 kB / 430.3 MB, free: 6.621 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002249/0.2929, allocations: 144.1 kB / 430.5 MB, free: 6.469 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000385/0.2933, allocations: 220.3 kB / 430.7 MB, free: 6.242 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2933, allocations: 0 / 430.7 MB, free: 6.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005423/0.2938, allocations: 305.3 kB / 431 MB, free: 5.938 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.2939, allocations: 7.938 kB / 431 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.2939, allocations: 7.984 kB / 431 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.2939, allocations: 4.094 kB / 431 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.294, allocations: 35.92 kB / 431 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.2941, allocations: 0 / 431 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.304e-05/0.2941, allocations: 27.81 kB / 431.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.877e-05/0.2942, allocations: 8 kB / 431.1 MB, free: 5.848 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.0001741/0.2943, allocations: 145.8 kB / 431.2 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.028e-05/0.2944, allocations: 23.84 kB / 431.2 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.987e-05/0.2944, allocations: 13.41 kB / 431.3 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.2944, allocations: 0 / 431.3 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/0.2944, allocations: 4 kB / 431.3 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.2944, allocations: 3.984 kB / 431.3 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002487/0.2947, allocations: 192.5 kB / 431.5 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.2947, allocations: 8 kB / 431.5 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.629e-05/0.2947, allocations: 8 kB / 431.5 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.2947, allocations: 3.938 kB / 431.5 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.2948, allocations: 7.984 kB / 431.5 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.2948, allocations: 8 kB / 431.5 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2948, allocations: 0 / 431.5 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004318/0.2952, allocations: 228 kB / 431.7 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.293e-05/0.2952, allocations: 23.84 kB / 431.7 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.909e-05/0.2953, allocations: 11.94 kB / 431.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.912e-05/0.2953, allocations: 11.98 kB / 431.8 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.237e-05/0.2954, allocations: 15.98 kB / 431.8 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.2954, allocations: 4 kB / 431.8 MB, free: 5.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000152/0.2956, allocations: 145.1 kB / 431.9 MB, free: 4.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2956, allocations: 96 / 431.9 MB, free: 4.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004066/0.296, allocations: 127.5 kB / 432 MB, free: 4.805 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.001549/0.2975, allocations: 1.058 MB / 433.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004511/0.298, allocations: 187.8 kB / 433.3 MB, free: 3.559 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.126e-06/0.298, allocations: 4 kB / 433.3 MB, free: 3.555 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001475/0.2981, allocations: 51.91 kB / 433.3 MB, free: 3.504 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001834/0.2983, allocations: 12 kB / 433.4 MB, free: 3.492 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002954/0.3013, allocations: 2.312 MB / 435.7 MB, free: 1.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003569/0.3016, allocations: 0.7202 MB / 436.4 MB, free: 332 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.708e-05/0.3017, allocations: 21.42 kB / 436.4 MB, free: 312 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.101e-05/0.3018, allocations: 55.39 kB / 436.5 MB, free: 256 kB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3018, allocations: 0 / 436.5 MB, free: 256 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03379/0.3356, allocations: 5.658 MB / 442.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.46, allocations: 3.281 kB / 442.1 MB, free: 10.73 MB / 350.1 MB " [Timeout remaining time 648] (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 --stepSize=0.00039208 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.02402134402655]