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.0014/0.0014, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001439/0.00144, allocations: 212.6 kB / 18.58 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.552/1.552, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002051/0.002051, allocations: 63.36 kB / 307 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.116, allocations: 50.54 MB / 357.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003127/0.1192, allocations: 1.53 MB / 359.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002721/0.1219, allocations: 1.486 MB / 360.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.026e-05/0.122, allocations: 3.938 kB / 360.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.1222, allocations: 7.875 kB / 360.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.803e-05/0.1223, allocations: 23.73 kB / 360.6 MB, free: 10.98 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.001308/0.1236, allocations: 398.8 kB / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001812/0.1238, allocations: 127.6 kB / 361.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.61e-05/0.1239, allocations: 5.5 kB / 361.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.781e-05/0.124, allocations: 63.69 kB / 361.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00071/0.1247, allocations: 79.89 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.957e-05/0.1247, allocations: 19.94 kB / 361.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007898/0.1255, allocations: 415.3 kB / 361.7 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.703e-05/0.1256, allocations: 35.89 kB / 361.7 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.939e-05/0.1257, allocations: 63.55 kB / 361.8 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006991/0.1264, allocations: 403.3 kB / 362.2 MB, free: 9.406 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1264, allocations: 0 / 362.2 MB, free: 9.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1264, allocations: 0 / 362.2 MB, free: 9.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.1265, allocations: 0 / 362.2 MB, free: 9.406 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.0009981/0.1275, allocations: 0.5142 MB / 362.7 MB, free: 8.844 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.1275, allocations: 8.031 kB / 362.7 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002643/0.1278, allocations: 28.73 kB / 362.7 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002346/0.128, allocations: 209.7 kB / 362.9 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.727e-05/0.1281, allocations: 4.375 kB / 362.9 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.981e-05/0.1281, allocations: 20.11 kB / 362.9 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002847/0.1284, allocations: 116.2 kB / 363 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.1284, allocations: 4 kB / 363.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.769e-05/0.1284, allocations: 3.984 kB / 363.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.1284, allocations: 0 / 363.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002101/0.1287, allocations: 63.89 kB / 363.1 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008843/0.1296, allocations: 0.5554 MB / 363.7 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003665/0.1299, allocations: 159.7 kB / 363.8 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000135/0.1301, allocations: 62.62 kB / 363.9 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.1301, allocations: 0 / 363.9 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003256/0.1304, allocations: 160.4 kB / 364 MB, free: 7.297 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.262e-06/0.1305, allocations: 0 / 364 MB, free: 7.297 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006281/0.1311, allocations: 253.5 kB / 364.3 MB, free: 7.043 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.346e-05/0.1312, allocations: 118.8 kB / 364.4 MB, free: 6.902 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.1314, allocations: 199 kB / 364.6 MB, free: 6.699 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.058e-05/0.1315, allocations: 49.81 kB / 364.7 MB, free: 6.645 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.1316, allocations: 112.5 kB / 364.8 MB, free: 6.531 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.288e-05/0.1316, allocations: 43.53 kB / 364.8 MB, free: 6.488 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.716e-05/0.1317, allocations: 53.69 kB / 364.9 MB, free: 6.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.1319, allocations: 338.8 kB / 365.2 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002222/0.1322, allocations: 99.95 kB / 365.3 MB, free: 5.992 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002335/0.1324, allocations: 147.2 kB / 365.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003992/0.1328, allocations: 227.6 kB / 365.7 MB, free: 5.598 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.1328, allocations: 0 / 365.7 MB, free: 5.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005773/0.1334, allocations: 301.2 kB / 365.9 MB, free: 5.297 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.1334, allocations: 4 kB / 366 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.1334, allocations: 4 kB / 366 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.1335, allocations: 0 / 366 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.1337, allocations: 35.91 kB / 366 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.1337, allocations: 0 / 366 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001398/0.1338, allocations: 19.84 kB / 366 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.055e-05/0.1339, allocations: 16.08 kB / 366 MB, free: 5.219 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.0002273/0.1341, allocations: 146.8 kB / 366.2 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.774e-05/0.1341, allocations: 19.8 kB / 366.2 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.942e-05/0.1342, allocations: 17.34 kB / 366.2 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.1342, allocations: 0 / 366.2 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.1342, allocations: 0 / 366.2 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/0.1342, allocations: 7.938 kB / 366.2 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002577/0.1345, allocations: 217.5 kB / 366.4 MB, free: 4.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1345, allocations: 4 kB / 366.4 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.908e-05/0.1346, allocations: 11.98 kB / 366.4 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1346, allocations: 0 / 366.4 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.1346, allocations: 8 kB / 366.4 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.798e-06/0.1346, allocations: 3.984 kB / 366.5 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1346, allocations: 0 / 366.5 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004215/0.135, allocations: 238.5 kB / 366.7 MB, free: 4.477 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.789e-05/0.1351, allocations: 92.86 kB / 366.8 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.1352, allocations: 15.98 kB / 366.8 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.56e-05/0.1352, allocations: 4.094 kB / 366.8 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.1353, allocations: 23.89 kB / 366.8 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.1354, allocations: 4 kB / 366.8 MB, free: 4.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001424/0.1355, allocations: 133.3 kB / 367 MB, free: 4.191 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1355, allocations: 7.938 kB / 367 MB, free: 4.184 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005432/0.1361, allocations: 131.9 kB / 367.1 MB, free: 4.055 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.0008701/0.137, allocations: 329.2 kB / 367.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000507/0.1375, allocations: 199.8 kB / 367.6 MB, free: 3.555 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1375, allocations: 0 / 367.6 MB, free: 3.555 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.1377, allocations: 68.25 kB / 367.7 MB, free: 3.488 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001842/0.1379, allocations: 19.98 kB / 367.7 MB, free: 3.469 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005868/0.1385, allocations: 273.3 kB / 368 MB, free: 3.168 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003631/0.1388, allocations: 0.7162 MB / 368.7 MB, free: 2.422 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.475e-05/0.1389, allocations: 25.41 kB / 368.7 MB, free: 2.395 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.647e-05/0.139, allocations: 23.44 kB / 368.7 MB, free: 2.371 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.139, allocations: 0 / 368.7 MB, free: 2.371 MB / 302.1 MB Notification: Performance of Templates: time 0.2009/0.3399, allocations: 3.536 MB / 372.3 MB, free: 19.68 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.1.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