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.001304/0.001304, allocations: 109.3 kB / 17.69 MB, free: 5.496 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.001085/0.001085, allocations: 188.1 kB / 18.62 MB, free: 4.578 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.375/1.375, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 43.94 kB / 351.9 MB, free: 3.289 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2723, allocations: 49.44 MB / 401.3 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.0026/0.2749, allocations: 1.527 MB / 402.9 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002317/0.2772, allocations: 1.44 MB / 404.3 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.461e-05/0.2773, allocations: 0 / 404.3 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.85e-05/0.2775, allocations: 7.875 kB / 404.3 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.505e-05/0.2776, allocations: 23.8 kB / 404.3 MB, free: 6.027 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.001072/0.2787, allocations: 386.8 kB / 404.7 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00016/0.2789, allocations: 139.5 kB / 404.9 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.122e-05/0.2789, allocations: 13.47 kB / 404.9 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.194e-05/0.279, allocations: 51.78 kB / 404.9 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005666/0.2796, allocations: 82.98 kB / 405 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.87e-05/0.2796, allocations: 15.98 kB / 405 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006216/0.2802, allocations: 399.4 kB / 405.4 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.988e-05/0.2803, allocations: 39.78 kB / 405.4 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.646e-05/0.2804, allocations: 67.64 kB / 405.5 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000561/0.2809, allocations: 392.5 kB / 405.9 MB, free: 4.473 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.281, allocations: 0 / 405.9 MB, free: 4.473 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.546e-06/0.281, allocations: 0 / 405.9 MB, free: 4.473 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.281, allocations: 3.938 kB / 405.9 MB, free: 4.469 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.0007359/0.2817, allocations: 0.5063 MB / 406.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.2818, allocations: 8.031 kB / 406.4 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002489/0.282, allocations: 32.73 kB / 406.4 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001778/0.2822, allocations: 213.5 kB / 406.7 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.2822, allocations: 4 kB / 406.7 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.535e-05/0.2823, allocations: 15.98 kB / 406.7 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002528/0.2825, allocations: 128 kB / 406.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.2826, allocations: 0 / 406.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.2826, allocations: 0 / 406.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.2826, allocations: 0 / 406.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.2828, allocations: 71.89 kB / 406.9 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000775/0.2836, allocations: 0.5399 MB / 407.4 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003519/0.2839, allocations: 155.7 kB / 407.6 MB, free: 2.621 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.2841, allocations: 58.62 kB / 407.6 MB, free: 2.555 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.2841, allocations: 15.97 kB / 407.6 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002874/0.2844, allocations: 152.7 kB / 407.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.363e-06/0.2844, allocations: 0 / 407.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005816/0.285, allocations: 257.4 kB / 408 MB, free: 2.113 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.237e-05/0.2851, allocations: 122.7 kB / 408.2 MB, free: 1.969 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.2853, allocations: 195 kB / 408.3 MB, free: 1.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.757e-05/0.2853, allocations: 45.69 kB / 408.4 MB, free: 1.719 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.601e-05/0.2854, allocations: 108.6 kB / 408.5 MB, free: 1.609 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.646e-05/0.2854, allocations: 51.38 kB / 408.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.976e-05/0.2855, allocations: 53.81 kB / 408.6 MB, free: 1.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.2856, allocations: 338.8 kB / 408.9 MB, free: 1.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002025/0.2859, allocations: 95.95 kB / 409 MB, free: 1.066 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002342/0.2861, allocations: 143.2 kB / 409.2 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003654/0.2865, allocations: 228.5 kB / 409.4 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2865, allocations: 0 / 409.4 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005191/0.287, allocations: 305.2 kB / 409.7 MB, free: 384 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.287, allocations: 8 kB / 409.7 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.287, allocations: 4.094 kB / 409.7 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.2871, allocations: 7.922 kB / 409.7 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.2872, allocations: 27.98 kB / 409.7 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.2873, allocations: 480 / 409.7 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.077e-05/0.2873, allocations: 27.69 kB / 409.8 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.2874, allocations: 11.98 kB / 409.8 MB, free: 296 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.000134/0.2875, allocations: 141.8 kB / 409.9 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.905e-05/0.2876, allocations: 19.81 kB / 409.9 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.213e-05/0.2876, allocations: 13.41 kB / 409.9 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.309e-06/0.2876, allocations: 3.938 kB / 409.9 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2876, allocations: 4 kB / 409.9 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2876, allocations: 0 / 409.9 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000218/0.2878, allocations: 217.5 kB / 410.2 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2879, allocations: 7.922 kB / 410.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.959e-05/0.2879, allocations: 8 kB / 410.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.319e-06/0.2879, allocations: 4 kB / 410.2 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.2879, allocations: 3.984 kB / 410.2 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.288, allocations: 7.938 kB / 410.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.288, allocations: 4 kB / 410.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003818/0.2884, allocations: 238.4 kB / 410.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.436e-05/0.2884, allocations: 88.92 kB / 410.5 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.575e-05/0.2885, allocations: 19.98 kB / 410.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.371e-05/0.2885, allocations: 11.92 kB / 410.5 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.106e-05/0.2886, allocations: 19.92 kB / 410.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.2886, allocations: 96 / 410.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000114/0.2887, allocations: 141.2 kB / 410.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2887, allocations: 0 / 410.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000448/0.2892, allocations: 123.9 kB / 410.8 MB, free: 15.12 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.0006543/0.2899, allocations: 325.2 kB / 411.1 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004576/0.2903, allocations: 203.8 kB / 411.3 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2903, allocations: 0 / 411.3 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001616/0.2905, allocations: 67.91 kB / 411.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001874/0.2907, allocations: 15.92 kB / 411.4 MB, free: 14.55 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005371/0.2913, allocations: 303.3 kB / 411.7 MB, free: 14.22 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002471/0.2915, allocations: 0.72 MB / 412.4 MB, free: 13.47 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.617e-05/0.2916, allocations: 19.44 kB / 412.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2916, allocations: 0 / 412.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of Templates: time 0.006145/0.2977, allocations: 3.86 MB / 416.3 MB, free: 9.598 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/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