Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001722/0.001722, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001952/0.001952, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.49/1.49, allocations: 227.7 MB / 247.7 MB, free: 10.39 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 69.86 kB / 307.9 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1057, allocations: 50.54 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.004191/0.1099, allocations: 1.531 MB / 360 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003684/0.1137, allocations: 1.482 MB / 361.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001584/0.1139, allocations: 4 kB / 361.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.1141, allocations: 11.81 kB / 361.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.1143, allocations: 23.78 kB / 361.5 MB, free: 10.88 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.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.001769/0.1161, allocations: 386.8 kB / 361.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002648/0.1163, allocations: 139.5 kB / 362 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.772e-05/0.1165, allocations: 13.47 kB / 362 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.1166, allocations: 55.77 kB / 362.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009166/0.1175, allocations: 84.22 kB / 362.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.109e-05/0.1176, allocations: 16 kB / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001056/0.1186, allocations: 419.2 kB / 362.6 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.276e-05/0.1188, allocations: 35.84 kB / 362.6 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.1189, allocations: 63.59 kB / 362.7 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009366/0.1198, allocations: 395.3 kB / 363 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.458e-06/0.1198, allocations: 7.984 kB / 363.1 MB, free: 9.297 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1199, allocations: 0 / 363.1 MB, free: 9.297 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.1199, allocations: 0 / 363.1 MB, free: 9.297 MB / 302.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.001173/0.1211, allocations: 0.5103 MB / 363.6 MB, free: 8.738 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.1211, allocations: 8.031 kB / 363.6 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003939/0.1215, allocations: 32.67 kB / 363.6 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002984/0.1218, allocations: 209.8 kB / 363.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.009e-05/0.1219, allocations: 4.375 kB / 363.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.925e-05/0.1219, allocations: 12.12 kB / 363.8 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004/0.1223, allocations: 127.1 kB / 364 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.1224, allocations: 8 kB / 364 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.1224, allocations: 0 / 364 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-06/0.1224, allocations: 0 / 364 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002952/0.1227, allocations: 59.95 kB / 364 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.1238, allocations: 0.5515 MB / 364.6 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005528/0.1244, allocations: 151.9 kB / 364.7 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002217/0.1246, allocations: 74.52 kB / 364.8 MB, free: 7.367 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.526e-05/0.1247, allocations: 0 / 364.8 MB, free: 7.367 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004953/0.1252, allocations: 157.8 kB / 364.9 MB, free: 7.191 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.974e-06/0.1252, allocations: 0 / 364.9 MB, free: 7.191 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008979/0.1261, allocations: 249.3 kB / 365.2 MB, free: 6.941 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.1262, allocations: 122.7 kB / 365.3 MB, free: 6.797 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003917/0.1266, allocations: 199 kB / 365.5 MB, free: 6.594 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.584e-05/0.1267, allocations: 49.83 kB / 365.6 MB, free: 6.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.1268, allocations: 116.5 kB / 365.7 MB, free: 6.422 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.601e-05/0.1269, allocations: 35.56 kB / 365.7 MB, free: 6.387 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001383/0.1271, allocations: 57.67 kB / 365.8 MB, free: 6.324 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002194/0.1273, allocations: 334.8 kB / 366.1 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003235/0.1276, allocations: 99.95 kB / 366.2 MB, free: 5.891 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000357/0.128, allocations: 144.1 kB / 366.3 MB, free: 5.738 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006386/0.1287, allocations: 231.6 kB / 366.5 MB, free: 5.496 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.1287, allocations: 0 / 366.5 MB, free: 5.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000867/0.1296, allocations: 305.2 kB / 366.8 MB, free: 5.191 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.1296, allocations: 4 kB / 366.8 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.1296, allocations: 3.938 kB / 366.9 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/0.1296, allocations: 4 kB / 366.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000232/0.1299, allocations: 31.92 kB / 366.9 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.727e-06/0.1299, allocations: 0 / 366.9 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001561/0.1301, allocations: 23.83 kB / 366.9 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.515e-05/0.1301, allocations: 8.094 kB / 366.9 MB, free: 5.117 MB / 302.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.0002349/0.1304, allocations: 153.7 kB / 367.1 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.437e-05/0.1304, allocations: 15.81 kB / 367.1 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.963e-05/0.1305, allocations: 17.41 kB / 367.1 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.1305, allocations: 3.938 kB / 367.1 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.1305, allocations: 3.984 kB / 367.1 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.1306, allocations: 7.938 kB / 367.1 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003571/0.1309, allocations: 213.5 kB / 367.3 MB, free: 4.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.1309, allocations: 4 kB / 367.3 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.753e-05/0.131, allocations: 11.94 kB / 367.3 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.1311, allocations: 0 / 367.3 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/0.1311, allocations: 11.98 kB / 367.4 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.1311, allocations: 0 / 367.4 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1311, allocations: 0 / 367.4 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007082/0.1318, allocations: 234.5 kB / 367.6 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.132, allocations: 100.8 kB / 367.7 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.63e-05/0.132, allocations: 12 kB / 367.7 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.1322, allocations: 7.984 kB / 367.7 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.908e-05/0.1323, allocations: 16.02 kB / 367.7 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-05/0.1323, allocations: 7.984 kB / 367.7 MB, free: 4.211 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002225/0.1325, allocations: 145.2 kB / 367.9 MB, free: 4.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1325, allocations: 0 / 367.9 MB, free: 4.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007846/0.1333, allocations: 123.9 kB / 368 MB, free: 3.949 MB / 302.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.001418/0.1348, allocations: 328.8 kB / 368.3 MB, free: 3.652 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009088/0.1357, allocations: 207.8 kB / 368.5 MB, free: 3.449 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.1357, allocations: 3.938 kB / 368.5 MB, free: 3.445 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003367/0.1361, allocations: 72.16 kB / 368.6 MB, free: 3.375 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.1364, allocations: 14.77 kB / 368.6 MB, free: 3.363 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009168/0.1374, allocations: 303 kB / 368.9 MB, free: 3.027 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004957/0.1379, allocations: 0.7162 MB / 369.6 MB, free: 2.281 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.376e-05/0.138, allocations: 15.44 kB / 369.6 MB, free: 2.266 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.138, allocations: 0 / 369.6 MB, free: 2.266 MB / 302.1 MB Notification: Performance of Templates: time 0.1956/0.3336, allocations: 3.92 MB / 373.5 MB, free: 18.72 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches