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: translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions") translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 110.3 kB / 17.06 MB, free: 6.129 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.001275/0.001275, allocations: 191 kB / 18 MB, free: 5.207 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.444/1.444, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 47.92 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3756/0.3767, allocations: 49.44 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003611/0.3804, allocations: 1.521 MB / 402.3 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003004/0.3835, allocations: 1.432 MB / 403.7 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.3836, allocations: 7.938 kB / 403.7 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000127/0.3837, allocations: 15.8 kB / 403.7 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001391/0.3839, allocations: 27.78 kB / 403.7 MB, free: 5.859 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.001443/0.3854, allocations: 374.8 kB / 404.1 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000264/0.3857, allocations: 127.7 kB / 404.2 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.965e-05/0.3857, allocations: 25.45 kB / 404.2 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.3859, allocations: 59.7 kB / 404.3 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007185/0.3866, allocations: 80.98 kB / 404.4 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.155e-05/0.3866, allocations: 12 kB / 404.4 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007758/0.3874, allocations: 407.3 kB / 404.8 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.871e-05/0.3875, allocations: 35.86 kB / 404.8 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.472e-05/0.3876, allocations: 67.58 kB / 404.9 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001075/0.3887, allocations: 392.5 kB / 405.3 MB, free: 4.312 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3887, allocations: 0 / 405.3 MB, free: 4.312 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.3887, allocations: 0 / 405.3 MB, free: 4.312 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.954e-06/0.3887, allocations: 4 kB / 405.3 MB, free: 4.309 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.001246/0.39, allocations: 0.5101 MB / 405.8 MB, free: 3.754 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/0.3901, allocations: 8.031 kB / 405.8 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003551/0.3904, allocations: 32.73 kB / 405.8 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003178/0.3908, allocations: 209.4 kB / 406 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.641e-05/0.3908, allocations: 4 kB / 406 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.339e-05/0.3909, allocations: 15.98 kB / 406.1 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.3912, allocations: 124.1 kB / 406.2 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.3912, allocations: 0 / 406.2 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.3913, allocations: 3.984 kB / 406.2 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.3913, allocations: 0 / 406.2 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002488/0.3915, allocations: 67.88 kB / 406.2 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.3926, allocations: 0.5515 MB / 406.8 MB, free: 2.633 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004013/0.393, allocations: 147.7 kB / 406.9 MB, free: 2.461 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001513/0.3932, allocations: 66.61 kB / 407 MB, free: 2.387 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.832e-05/0.3932, allocations: 0 / 407 MB, free: 2.387 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003408/0.3936, allocations: 160.6 kB / 407.2 MB, free: 2.211 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.402e-06/0.3936, allocations: 0 / 407.2 MB, free: 2.211 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006659/0.3942, allocations: 253.5 kB / 407.4 MB, free: 1.957 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.877e-05/0.3943, allocations: 126.9 kB / 407.5 MB, free: 1.809 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000211/0.3946, allocations: 191 kB / 407.7 MB, free: 1.613 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.452e-05/0.3946, allocations: 49.69 kB / 407.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.191e-05/0.3947, allocations: 112.5 kB / 407.9 MB, free: 1.445 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.846e-05/0.3948, allocations: 43.45 kB / 407.9 MB, free: 1.402 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.851e-05/0.3949, allocations: 53.69 kB / 408 MB, free: 1.344 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.395, allocations: 330.8 kB / 408.3 MB, free: 1.012 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000228/0.3952, allocations: 107.9 kB / 408.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.3955, allocations: 143.2 kB / 408.5 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003953/0.3959, allocations: 224.5 kB / 408.8 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.3959, allocations: 3.938 kB / 408.8 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005722/0.3965, allocations: 297.4 kB / 409.1 MB, free: 228 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.3965, allocations: 4 kB / 409.1 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.3965, allocations: 4 kB / 409.1 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.3966, allocations: 7.922 kB / 409.1 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/0.3967, allocations: 35.91 kB / 409.1 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.3967, allocations: 4.094 kB / 409.1 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.3969, allocations: 23.75 kB / 409.1 MB, free: 148 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.693e-05/0.3969, allocations: 19.97 kB / 409.2 MB, free: 128 kB / 318.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,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],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]) * 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.0001712/0.3971, allocations: 137.9 kB / 409.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.247e-05/0.3971, allocations: 23.8 kB / 409.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.191e-05/0.3972, allocations: 17.41 kB / 409.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3972, allocations: 3.938 kB / 409.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.3972, allocations: 4 kB / 409.3 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.3972, allocations: 4 kB / 409.3 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002347/0.3974, allocations: 209.5 kB / 409.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.3974, allocations: 0 / 409.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.454e-05/0.3975, allocations: 11.98 kB / 409.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.3975, allocations: 0 / 409.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.3975, allocations: 8 kB / 409.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.734e-06/0.3976, allocations: 8.391 kB / 409.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3976, allocations: 0 / 409.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004356/0.398, allocations: 238.4 kB / 409.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.994e-05/0.3981, allocations: 92.92 kB / 409.9 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.263e-05/0.3981, allocations: 15.81 kB / 409.9 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.2e-05/0.3982, allocations: 7.938 kB / 409.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.428e-05/0.3983, allocations: 19.97 kB / 409.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.3983, allocations: 4 kB / 409.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001498/0.3985, allocations: 137.3 kB / 410.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3985, allocations: 3.938 kB / 410.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006199/0.3991, allocations: 123.9 kB / 410.2 MB, free: 14.97 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,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,$whenCondition1,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,n) * Number of discrete states: 8 (truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.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.001095/0.4002, allocations: 335.3 kB / 410.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004922/0.4007, allocations: 199.9 kB / 410.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4008, allocations: 0 / 410.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001742/0.4009, allocations: 63.91 kB / 410.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002106/0.4012, allocations: 8 kB / 410.8 MB, free: 14.4 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005954/0.4018, allocations: 289 kB / 411.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.4021, allocations: 0.7202 MB / 411.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.279e-05/0.4022, allocations: 17.42 kB / 411.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.403e-05/0.4022, allocations: 23.42 kB / 411.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4022, allocations: 0 / 411.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of Templates: time 0.007961/0.4102, allocations: 3.471 MB / 415.3 MB, free: 9.832 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.makefile (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins/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