Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001396/0.001396, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001569/0.001569, allocations: 214.9 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 230.5 MB / 257.4 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] 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.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 55.91 kB / 377.8 MB, free: 3.086 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2659, allocations: 53.4 MB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003005/0.2689, allocations: 1.562 MB / 432.7 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002642/0.2715, allocations: 1.519 MB / 434.3 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.342e-05/0.2716, allocations: 0 / 434.3 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.747e-05/0.2717, allocations: 7.875 kB / 434.3 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.043e-05/0.2718, allocations: 31.72 kB / 434.3 MB, free: 3.551 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.001059/0.2728, allocations: 398.8 kB / 434.7 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001958/0.273, allocations: 139.5 kB / 434.8 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.45e-05/0.2731, allocations: 5.688 kB / 434.8 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.295e-05/0.2732, allocations: 63.75 kB / 434.9 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006076/0.2738, allocations: 74.92 kB / 435 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.813e-05/0.2738, allocations: 15.94 kB / 435 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007595/0.2746, allocations: 463.1 kB / 435.4 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.107e-05/0.2747, allocations: 43.84 kB / 435.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.858e-05/0.2748, allocations: 59.59 kB / 435.5 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006296/0.2754, allocations: 407.1 kB / 435.9 MB, free: 1.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2754, allocations: 4 kB / 435.9 MB, free: 1.914 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2754, allocations: 0 / 435.9 MB, free: 1.914 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.2754, allocations: 4 kB / 435.9 MB, free: 1.91 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.0008665/0.2763, allocations: 460.7 kB / 436.4 MB, free: 1.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.2763, allocations: 11.97 kB / 436.4 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.817e-05/0.2764, allocations: 42.67 kB / 436.4 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002215/0.2766, allocations: 32.83 kB / 436.5 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001873/0.2768, allocations: 147.7 kB / 436.6 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.2768, allocations: 8.375 kB / 436.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.275e-05/0.2768, allocations: 12.38 kB / 436.6 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/0.2771, allocations: 135 kB / 436.8 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.2771, allocations: 7.984 kB / 436.8 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.2771, allocations: 3.984 kB / 436.8 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-06/0.2772, allocations: 0 / 436.8 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002397/0.2774, allocations: 71.89 kB / 436.9 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008373/0.2782, allocations: 0.5272 MB / 437.4 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003617/0.2786, allocations: 147.9 kB / 437.5 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.2787, allocations: 62.55 kB / 437.6 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.7e-05/0.2787, allocations: 8 kB / 437.6 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000312/0.2791, allocations: 148.4 kB / 437.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.152e-06/0.2791, allocations: 4 kB / 437.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.000615/0.2797, allocations: 245.4 kB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.2798, allocations: 126.8 kB / 438.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002164/0.28, allocations: 195.2 kB / 438.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.454e-05/0.28, allocations: 45.7 kB / 438.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.2801, allocations: 108.5 kB / 438.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.837e-05/0.2802, allocations: 43.64 kB / 438.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.775e-05/0.2803, allocations: 61.67 kB / 438.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.2805, allocations: 338.9 kB / 438.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002088/0.2807, allocations: 99.95 kB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002337/0.2809, allocations: 135.4 kB / 439.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003957/0.2813, allocations: 223.7 kB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2813, allocations: 0 / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005446/0.2818, allocations: 309.3 kB / 439.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.2819, allocations: 4 kB / 439.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.2819, allocations: 4.094 kB / 439.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.2819, allocations: 4 kB / 439.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.2821, allocations: 27.92 kB / 439.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.2821, allocations: 4 kB / 439.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.451e-05/0.2822, allocations: 35.7 kB / 439.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.725e-05/0.2822, allocations: 4 kB / 439.7 MB, free: 13.86 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 0.0001593/0.2823, allocations: 145.8 kB / 439.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.774e-05/0.2824, allocations: 23.84 kB / 439.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.001e-05/0.2824, allocations: 17.41 kB / 439.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2824, allocations: 96 / 439.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.457e-06/0.2824, allocations: 11.91 kB / 439.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.2824, allocations: 3.938 kB / 439.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000233/0.2827, allocations: 192.6 kB / 440.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2827, allocations: 0 / 440.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.804e-05/0.2827, allocations: 11.98 kB / 440.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.2827, allocations: 4 kB / 440.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.2827, allocations: 0 / 440.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.2827, allocations: 4 kB / 440.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.2827, allocations: 4 kB / 440.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004389/0.2832, allocations: 238.9 kB / 440.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.251e-05/0.2832, allocations: 23.83 kB / 440.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.193e-05/0.2832, allocations: 12 kB / 440.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.877e-05/0.2833, allocations: 11.98 kB / 440.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.594e-05/0.2834, allocations: 15.92 kB / 440.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.113e-06/0.2834, allocations: 4 kB / 440.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001453/0.2835, allocations: 149.1 kB / 440.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2835, allocations: 0 / 440.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004301/0.284, allocations: 119.7 kB / 440.7 MB, free: 12.8 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.001594/0.2856, allocations: 1.064 MB / 441.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004441/0.286, allocations: 191.6 kB / 441.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.286, allocations: 0 / 441.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001555/0.2862, allocations: 59.91 kB / 442 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001768/0.2863, allocations: 15.92 kB / 442 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003015/0.2893, allocations: 2.317 MB / 444.3 MB, free: 9.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003995/0.2897, allocations: 0.7162 MB / 445 MB, free: 8.305 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.548e-05/0.2898, allocations: 21.41 kB / 445.1 MB, free: 8.285 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.126e-05/0.2899, allocations: 43.42 kB / 445.1 MB, free: 8.242 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2899, allocations: 4 kB / 445.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03409/0.324, allocations: 5.751 MB / 450.9 MB, free: 2.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.25, allocations: 0 / 450.9 MB, free: 2.59 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --stepSize=0.00039208 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.72386278398335]