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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Blocks.Examples.Noise.Distributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001328/0.001328, allocations: 106.8 kB / 17.32 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001581/0.001581, allocations: 205.8 kB / 18.26 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.529/1.529, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 64.95 kB / 306.4 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1185, allocations: 50.53 MB / 357 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002845/0.1214, allocations: 1.628 MB / 358.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002551/0.124, allocations: 1.489 MB / 360.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.853e-05/0.1241, allocations: 0 / 360.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.1242, allocations: 3.938 kB / 360.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.617e-05/0.1243, allocations: 19.78 kB / 360.1 MB, free: 11.26 MB / 302.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.0009972/0.1253, allocations: 343.3 kB / 360.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001372/0.1255, allocations: 135.5 kB / 360.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.813e-05/0.1255, allocations: 13.5 kB / 360.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.691e-05/0.1256, allocations: 59.7 kB / 360.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00065/0.1263, allocations: 79.59 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.634e-05/0.1263, allocations: 19.94 kB / 360.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006947/0.127, allocations: 451.1 kB / 361.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.362e-05/0.1271, allocations: 35.84 kB / 361.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.456e-05/0.1272, allocations: 67.59 kB / 361.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005833/0.1278, allocations: 411.2 kB / 361.7 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1278, allocations: 0 / 361.7 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1278, allocations: 0 / 361.7 MB, free: 9.676 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.1278, allocations: 0 / 361.7 MB, free: 9.676 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.0007813/0.1286, allocations: 0.5181 MB / 362.2 MB, free: 9.109 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.1286, allocations: 8.031 kB / 362.2 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002184/0.1288, allocations: 32.73 kB / 362.2 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.129, allocations: 197.8 kB / 362.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.1291, allocations: 4.375 kB / 362.4 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.668e-05/0.1291, allocations: 20.11 kB / 362.5 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00025/0.1294, allocations: 128.1 kB / 362.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.1294, allocations: 4 kB / 362.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.1294, allocations: 4 kB / 362.6 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.1294, allocations: 0 / 362.6 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002076/0.1296, allocations: 67.88 kB / 362.7 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007321/0.1304, allocations: 0.5516 MB / 363.2 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003491/0.1307, allocations: 155.7 kB / 363.4 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.1309, allocations: 66.5 kB / 363.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.1309, allocations: 3.984 kB / 363.4 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002799/0.1312, allocations: 152.9 kB / 363.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.383e-06/0.1312, allocations: 0 / 363.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005817/0.1318, allocations: 249.8 kB / 363.8 MB, free: 7.312 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.018e-05/0.1319, allocations: 122.9 kB / 363.9 MB, free: 7.168 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002003/0.1321, allocations: 195 kB / 364.1 MB, free: 6.969 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.298e-05/0.1321, allocations: 49.81 kB / 364.2 MB, free: 6.914 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.209e-05/0.1322, allocations: 112.5 kB / 364.3 MB, free: 6.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.793e-05/0.1323, allocations: 39.55 kB / 364.3 MB, free: 6.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.075e-05/0.1324, allocations: 61.67 kB / 364.4 MB, free: 6.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.1326, allocations: 338.8 kB / 364.7 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.1328, allocations: 91.95 kB / 364.8 MB, free: 6.266 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.133, allocations: 147.2 kB / 365 MB, free: 6.109 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004231/0.1334, allocations: 228.2 kB / 365.2 MB, free: 5.871 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1334, allocations: 0 / 365.2 MB, free: 5.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005719/0.134, allocations: 305.2 kB / 365.5 MB, free: 5.566 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.1341, allocations: 8 kB / 365.5 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.1341, allocations: 3.984 kB / 365.5 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.1341, allocations: 3.984 kB / 365.5 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.1343, allocations: 31.92 kB / 365.5 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.1343, allocations: 0 / 365.5 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.465e-05/0.1344, allocations: 27.78 kB / 365.6 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.569e-05/0.1344, allocations: 20.08 kB / 365.6 MB, free: 5.473 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.0001854/0.1346, allocations: 146.8 kB / 365.7 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.528e-05/0.1347, allocations: 15.81 kB / 365.7 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.801e-05/0.1347, allocations: 17.41 kB / 365.8 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.1347, allocations: 0 / 365.8 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.1347, allocations: 4 kB / 365.8 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.1347, allocations: 4.031 kB / 365.8 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002848/0.135, allocations: 213.5 kB / 366 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.135, allocations: 11.97 kB / 366 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.069e-05/0.1351, allocations: 12 kB / 366 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.1351, allocations: 4 kB / 366 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.1351, allocations: 3.984 kB / 366 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.1351, allocations: 0 / 366 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.1352, allocations: 4 kB / 366 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004373/0.1356, allocations: 238.4 kB / 366.2 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.61e-05/0.1357, allocations: 96.86 kB / 366.3 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.641e-05/0.1357, allocations: 11.98 kB / 366.3 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.996e-05/0.1358, allocations: 7.984 kB / 366.3 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.897e-05/0.1359, allocations: 19.92 kB / 366.4 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.967e-06/0.1359, allocations: 0 / 366.4 MB, free: 4.578 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001448/0.1361, allocations: 145.2 kB / 366.5 MB, free: 4.438 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.1361, allocations: 4 kB / 366.5 MB, free: 4.434 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004965/0.1366, allocations: 119.9 kB / 366.6 MB, free: 4.316 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.0007567/0.1373, allocations: 321.2 kB / 366.9 MB, free: 4.016 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004079/0.1377, allocations: 203.8 kB / 367.1 MB, free: 3.816 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1378, allocations: 0 / 367.1 MB, free: 3.816 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001574/0.1379, allocations: 76.16 kB / 367.2 MB, free: 3.742 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000192/0.1381, allocations: 11.98 kB / 367.2 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005061/0.1386, allocations: 305.3 kB / 367.5 MB, free: 3.398 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.1389, allocations: 0.7123 MB / 368.2 MB, free: 2.656 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.403e-05/0.139, allocations: 33.33 kB / 368.3 MB, free: 2.621 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.883e-05/0.1391, allocations: 15.44 kB / 368.3 MB, free: 2.605 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1391, allocations: 0 / 368.3 MB, free: 2.605 MB / 302.1 MB Notification: Performance of Templates: time 0.2011/0.3402, allocations: 3.481 MB / 371.8 MB, free: 19.76 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.makefile (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 & ./Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches