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.001179/0.001179, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001275/0.001275, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 65.08 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1154, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003069/0.1185, allocations: 1.538 MB / 360.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002557/0.1211, allocations: 1.478 MB / 361.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.947e-05/0.1212, allocations: 4 kB / 361.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.1213, allocations: 11.81 kB / 361.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.26e-05/0.1214, allocations: 23.78 kB / 362 MB, free: 10.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.001222/0.1227, allocations: 398.8 kB / 362.3 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000194/0.1229, allocations: 131.6 kB / 362.5 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.93e-05/0.123, allocations: 9.484 kB / 362.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.065e-05/0.123, allocations: 59.7 kB / 362.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006259/0.1237, allocations: 85.42 kB / 362.6 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.095e-05/0.1237, allocations: 12 kB / 362.6 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006606/0.1244, allocations: 411.3 kB / 363 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.323e-05/0.1244, allocations: 31.91 kB / 363.1 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.844e-05/0.1245, allocations: 71.53 kB / 363.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006038/0.1251, allocations: 403 kB / 363.5 MB, free: 8.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.06e-05/0.1252, allocations: 7.984 kB / 363.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.1252, allocations: 0 / 363.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.1252, allocations: 0 / 363.5 MB, free: 8.672 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.0008422/0.126, allocations: 0.5064 MB / 364 MB, free: 8.117 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.1261, allocations: 8.031 kB / 364.1 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003064/0.1264, allocations: 32.73 kB / 364.1 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002495/0.1267, allocations: 201.8 kB / 364.3 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.532e-05/0.1267, allocations: 4.375 kB / 364.3 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.587e-05/0.1267, allocations: 20.12 kB / 364.3 MB, free: 7.816 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002808/0.127, allocations: 128.1 kB / 364.4 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.127, allocations: 0 / 364.4 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.65e-05/0.1271, allocations: 7.938 kB / 364.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.1271, allocations: 0 / 364.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002054/0.1273, allocations: 75.83 kB / 364.5 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007899/0.1281, allocations: 0.5439 MB / 365.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003391/0.1284, allocations: 155.7 kB / 365.2 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001768/0.1286, allocations: 66.55 kB / 365.3 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/0.1287, allocations: 0 / 365.3 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002871/0.1289, allocations: 153.9 kB / 365.4 MB, free: 6.566 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.794e-06/0.129, allocations: 0 / 365.4 MB, free: 6.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005996/0.1296, allocations: 253.4 kB / 365.7 MB, free: 6.312 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.517e-05/0.1297, allocations: 118.8 kB / 365.8 MB, free: 6.172 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002092/0.1299, allocations: 199 kB / 366 MB, free: 5.969 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.267e-05/0.1299, allocations: 41.7 kB / 366 MB, free: 5.922 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.894e-05/0.13, allocations: 116.5 kB / 366.1 MB, free: 5.805 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.214e-05/0.1301, allocations: 35.56 kB / 366.2 MB, free: 5.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.122e-05/0.1302, allocations: 61.67 kB / 366.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002047/0.1304, allocations: 342.8 kB / 366.6 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002109/0.1306, allocations: 91.95 kB / 366.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000227/0.1308, allocations: 140.1 kB / 366.8 MB, free: 5.121 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003745/0.1312, allocations: 231.6 kB / 367 MB, free: 4.879 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1312, allocations: 0 / 367 MB, free: 4.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005261/0.1318, allocations: 305.2 kB / 367.3 MB, free: 4.574 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.1318, allocations: 4 kB / 367.3 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.1318, allocations: 4 kB / 367.3 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.1318, allocations: 4.031 kB / 367.3 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000159/0.132, allocations: 35.92 kB / 367.4 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.132, allocations: 0 / 367.4 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.864e-05/0.1321, allocations: 23.83 kB / 367.4 MB, free: 4.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.1321, allocations: 12 kB / 367.4 MB, free: 4.492 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.0001634/0.1323, allocations: 150.7 kB / 367.5 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.132e-05/0.1324, allocations: 23.89 kB / 367.6 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.842e-05/0.1324, allocations: 17.41 kB / 367.6 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1324, allocations: 0 / 367.6 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.1324, allocations: 7.984 kB / 367.6 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.1324, allocations: 3.938 kB / 367.6 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002484/0.1327, allocations: 217.5 kB / 367.8 MB, free: 4.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1327, allocations: 0 / 367.8 MB, free: 4.023 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.643e-05/0.1328, allocations: 8 kB / 367.8 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1328, allocations: 4 kB / 367.8 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.1328, allocations: 3.984 kB / 367.8 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.1328, allocations: 0 / 367.8 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.1328, allocations: 8 kB / 367.8 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004254/0.1332, allocations: 241.1 kB / 368.1 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.251e-05/0.1333, allocations: 100.8 kB / 368.2 MB, free: 3.625 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.44e-05/0.1334, allocations: 8 kB / 368.2 MB, free: 3.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.793e-05/0.1334, allocations: 15.98 kB / 368.2 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.457e-05/0.1335, allocations: 19.92 kB / 368.2 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.236e-06/0.1335, allocations: 0 / 368.2 MB, free: 3.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001264/0.1337, allocations: 145.2 kB / 368.4 MB, free: 3.441 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1337, allocations: 0 / 368.4 MB, free: 3.441 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005105/0.1342, allocations: 115.9 kB / 368.5 MB, free: 3.328 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.0007786/0.135, allocations: 341.5 kB / 368.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005004/0.1355, allocations: 207.8 kB / 369 MB, free: 2.812 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1355, allocations: 0 / 369 MB, free: 2.812 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001548/0.1357, allocations: 67.91 kB / 369.1 MB, free: 2.746 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001779/0.1358, allocations: 8 kB / 369.1 MB, free: 2.738 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005519/0.1364, allocations: 269.5 kB / 369.3 MB, free: 2.441 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.1367, allocations: 0.7201 MB / 370.1 MB, free: 1.691 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.964e-05/0.1368, allocations: 21.41 kB / 370.1 MB, free: 1.668 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.269e-05/0.1369, allocations: 15.44 kB / 370.1 MB, free: 1.652 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1369, allocations: 0 / 370.1 MB, free: 1.652 MB / 302.1 MB Notification: Performance of Templates: time 0.194/0.3309, allocations: 3.551 MB / 373.6 MB, free: 19.55 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 -s cvode -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/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_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches