Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 128.5 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.415/1.415, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 51.86 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09492/0.0965, allocations: 53.32 MB / 426.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002938/0.09944, allocations: 1.547 MB / 427.9 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002554/0.102, allocations: 1.496 MB / 429.4 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.117e-05/0.1021, allocations: 4 kB / 429.4 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.37e-05/0.1022, allocations: 15.81 kB / 429.4 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.441e-05/0.1023, allocations: 23.78 kB / 429.4 MB, free: 1.691 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.001121/0.1034, allocations: 394.8 kB / 429.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001942/0.1036, allocations: 131.6 kB / 429.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.05e-05/0.1036, allocations: 9.484 kB / 429.9 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.622e-05/0.1037, allocations: 63.75 kB / 430 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006282/0.1043, allocations: 91.56 kB / 430.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.36e-05/0.1044, allocations: 12 kB / 430.1 MB, free: 1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007002/0.1051, allocations: 419.2 kB / 430.5 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.804e-05/0.1051, allocations: 47.77 kB / 430.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.271e-05/0.1052, allocations: 59.66 kB / 430.6 MB, free: 496 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006705/0.1059, allocations: 402.7 kB / 431 MB, free: 92 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1059, allocations: 0 / 431 MB, free: 92 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1059, allocations: 7.938 kB / 431 MB, free: 84 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.1059, allocations: 0 / 431 MB, free: 84 kB / 350.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.1827/0.2886, allocations: 0.5181 MB / 431.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.2886, allocations: 10.53 kB / 431.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.812e-05/0.2887, allocations: 39.98 kB / 431.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002339/0.2889, allocations: 33.5 kB / 431.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001654/0.2891, allocations: 208.3 kB / 431.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.2891, allocations: 10.02 kB / 431.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.106e-05/0.2891, allocations: 9.984 kB / 431.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002737/0.2894, allocations: 129.5 kB / 432 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.2894, allocations: 5.594 kB / 432 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.2894, allocations: 5.438 kB / 432 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.2894, allocations: 1.484 kB / 432 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002153/0.2896, allocations: 70.67 kB / 432 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006247/0.2902, allocations: 0.5537 MB / 432.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003298/0.2906, allocations: 148.7 kB / 432.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001237/0.2907, allocations: 60.56 kB / 432.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.366e-06/0.2907, allocations: 1.156 kB / 432.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002398/0.2909, allocations: 155.5 kB / 432.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.252e-06/0.2909, allocations: 0 / 432.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005658/0.2915, allocations: 248.1 kB / 433.2 MB, free: 9.988 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.2915, allocations: 119.6 kB / 433.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/0.2917, allocations: 201.8 kB / 433.5 MB, free: 9.754 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.2917, allocations: 45.42 kB / 433.5 MB, free: 9.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.628e-05/0.2918, allocations: 120.3 kB / 433.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.016e-05/0.2918, allocations: 40.2 kB / 433.7 MB, free: 9.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.499e-05/0.2919, allocations: 58.69 kB / 433.8 MB, free: 9.598 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.025e-05/0.2919, allocations: 339.5 kB / 434.1 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.2921, allocations: 96.33 kB / 434.2 MB, free: 9.281 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.2923, allocations: 143 kB / 434.3 MB, free: 9.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/0.2926, allocations: 222.2 kB / 434.5 MB, free: 9.215 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2926, allocations: 3.375 kB / 434.5 MB, free: 9.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000476/0.2931, allocations: 297.8 kB / 434.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.2931, allocations: 9.953 kB / 434.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.2931, allocations: 1.375 kB / 434.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.2931, allocations: 2 kB / 434.9 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.2933, allocations: 35.72 kB / 434.9 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.495e-06/0.2933, allocations: 3.453 kB / 434.9 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.27e-05/0.2934, allocations: 28.58 kB / 434.9 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/0.2934, allocations: 17.78 kB / 434.9 MB, free: 9.152 MB / 350.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 9.876e-05/0.2935, allocations: 144.5 kB / 435.1 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.66e-05/0.2935, allocations: 15 kB / 435.1 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.054e-05/0.2935, allocations: 22.75 kB / 435.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.2935, allocations: 1.094 kB / 435.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.2935, allocations: 1.125 kB / 435.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.2935, allocations: 2.781 kB / 435.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001427/0.2937, allocations: 221.7 kB / 435.3 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2937, allocations: 1.25 kB / 435.3 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.766e-05/0.2937, allocations: 13.95 kB / 435.3 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.624e-06/0.2937, allocations: 1.562 kB / 435.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.2938, allocations: 2.812 kB / 435.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.2938, allocations: 5.5 kB / 435.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.2938, allocations: 3.672 kB / 435.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003573/0.2941, allocations: 239.5 kB / 435.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.27e-05/0.2941, allocations: 99.72 kB / 435.7 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.002e-05/0.2942, allocations: 12.97 kB / 435.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.91e-05/0.2942, allocations: 10.27 kB / 435.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.969e-05/0.2943, allocations: 15.03 kB / 435.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.2943, allocations: 8.312 kB / 435.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.181e-05/0.2944, allocations: 136.8 kB / 435.9 MB, free: 8.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2944, allocations: 0 / 435.9 MB, free: 8.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004275/0.2948, allocations: 125.3 kB / 436 MB, free: 8.52 MB / 350.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.001274/0.2961, allocations: 1.059 MB / 437.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004125/0.2965, allocations: 189.7 kB / 437.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2965, allocations: 0 / 437.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001518/0.2967, allocations: 61.33 kB / 437.3 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001811/0.2968, allocations: 17.06 kB / 437.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002402/0.2993, allocations: 2.314 MB / 439.6 MB, free: 6.258 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001367/0.2994, allocations: 0.7193 MB / 440.3 MB, free: 5.559 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.795e-05/0.2995, allocations: 20.06 kB / 440.4 MB, free: 5.555 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.274e-05/0.2995, allocations: 45.25 kB / 440.4 MB, free: 5.523 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2995, allocations: 0 / 440.4 MB, free: 5.523 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03074/0.3303, allocations: 5.546 MB / 446 MB, free: 4.777 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.347/8.677, allocations: 4.781 kB / 446 MB, free: 4.777 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --stepSize=0.00039208 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 10.982532976893708]