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.001213/0.001213, allocations: 112.5 kB / 17.86 MB, free: 5.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001236/0.001236, allocations: 209.7 kB / 18.79 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.9 MB, free: 9.023 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 59.22 kB / 306.9 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09504/0.09622, allocations: 50.52 MB / 357.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002659/0.09892, allocations: 1.642 MB / 359.1 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002228/0.1012, allocations: 1.54 MB / 360.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.085e-05/0.1012, allocations: 0 / 360.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.48e-05/0.1014, allocations: 3.938 kB / 360.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.029e-05/0.1015, allocations: 19.86 kB / 360.6 MB, free: 11.06 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.0008209/0.1023, allocations: 307.2 kB / 360.9 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001236/0.1024, allocations: 135.5 kB / 361.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.155e-05/0.1025, allocations: 13.48 kB / 361.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.807e-05/0.1025, allocations: 47.77 kB / 361.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006576/0.1032, allocations: 78.44 kB / 361.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.516e-05/0.1032, allocations: 8 kB / 361.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006285/0.1039, allocations: 455.1 kB / 361.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.239e-05/0.1039, allocations: 27.86 kB / 361.7 MB, free: 10 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.831e-05/0.104, allocations: 67.58 kB / 361.7 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004059/0.1044, allocations: 271.7 kB / 362 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1044, allocations: 0 / 362 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.563e-06/0.1045, allocations: 3.984 kB / 362 MB, free: 9.668 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.1045, allocations: 4 kB / 362 MB, free: 9.664 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.000814/0.1053, allocations: 0.5087 MB / 362.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.1053, allocations: 12.03 kB / 362.5 MB, free: 9.098 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002492/0.1056, allocations: 28.73 kB / 362.6 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001844/0.1058, allocations: 213.7 kB / 362.8 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.1058, allocations: 4.375 kB / 362.8 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.486e-05/0.1058, allocations: 12.12 kB / 362.8 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002663/0.1061, allocations: 124.2 kB / 362.9 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.1061, allocations: 3.938 kB / 362.9 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.1061, allocations: 0 / 362.9 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.1062, allocations: 4 kB / 362.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002098/0.1064, allocations: 63.94 kB / 363 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007616/0.1071, allocations: 0.5554 MB / 363.5 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003694/0.1075, allocations: 155.7 kB / 363.7 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.1077, allocations: 66.61 kB / 363.8 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.1077, allocations: 4 kB / 363.8 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003613/0.1081, allocations: 149.8 kB / 363.9 MB, free: 7.559 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.874e-06/0.1081, allocations: 0 / 363.9 MB, free: 7.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.000704/0.1088, allocations: 253.5 kB / 364.2 MB, free: 7.305 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.27e-05/0.1089, allocations: 118.9 kB / 364.3 MB, free: 7.164 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002278/0.1092, allocations: 206.9 kB / 364.5 MB, free: 6.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.415e-05/0.1092, allocations: 45.7 kB / 364.5 MB, free: 6.902 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.461e-05/0.1093, allocations: 108.5 kB / 364.6 MB, free: 6.793 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.275e-05/0.1094, allocations: 43.53 kB / 364.7 MB, free: 6.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.1095, allocations: 57.69 kB / 364.7 MB, free: 6.688 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.1097, allocations: 334.8 kB / 365 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/0.1099, allocations: 99.95 kB / 365.1 MB, free: 6.254 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000257/0.1102, allocations: 147.2 kB / 365.3 MB, free: 6.098 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004375/0.1106, allocations: 232.2 kB / 365.5 MB, free: 5.855 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.1107, allocations: 0 / 365.5 MB, free: 5.855 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005951/0.1113, allocations: 297.2 kB / 365.8 MB, free: 5.559 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.1113, allocations: 8 kB / 365.8 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.1113, allocations: 0 / 365.8 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.1113, allocations: 4 kB / 365.8 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001708/0.1115, allocations: 28.02 kB / 365.8 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.1115, allocations: 8 kB / 365.9 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.1116, allocations: 19.83 kB / 365.9 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.018e-05/0.1117, allocations: 12 kB / 365.9 MB, free: 5.48 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.0001839/0.1119, allocations: 154.7 kB / 366 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.1119, allocations: 11.81 kB / 366 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.112, allocations: 17.41 kB / 366.1 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.112, allocations: 11.94 kB / 366.1 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.112, allocations: 0 / 366.1 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.112, allocations: 7.922 kB / 366.1 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000237/0.1123, allocations: 217.6 kB / 366.3 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.1123, allocations: 4 kB / 366.3 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.22e-05/0.1123, allocations: 11.98 kB / 366.3 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.1123, allocations: 0 / 366.3 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.1124, allocations: 7.984 kB / 366.3 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.542e-06/0.1124, allocations: 4 kB / 366.3 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.1124, allocations: 3.938 kB / 366.3 MB, free: 4.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00043/0.1128, allocations: 233.2 kB / 366.6 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.488e-05/0.1129, allocations: 96.94 kB / 366.6 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.731e-05/0.1129, allocations: 15.94 kB / 366.7 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.126e-05/0.113, allocations: 7.984 kB / 366.7 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.629e-05/0.1131, allocations: 23.92 kB / 366.7 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.1131, allocations: 7.938 kB / 366.7 MB, free: 4.562 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001314/0.1133, allocations: 137.2 kB / 366.8 MB, free: 4.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.1133, allocations: 0 / 366.8 MB, free: 4.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005396/0.1138, allocations: 127.9 kB / 367 MB, free: 4.305 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.0009831/0.1148, allocations: 321.3 kB / 367.3 MB, free: 4.008 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004744/0.1153, allocations: 203.8 kB / 367.5 MB, free: 3.809 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.1153, allocations: 0 / 367.5 MB, free: 3.809 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001751/0.1155, allocations: 67.91 kB / 367.5 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.0002205/0.1157, allocations: 8 kB / 367.5 MB, free: 3.734 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006445/0.1164, allocations: 344.5 kB / 367.9 MB, free: 3.359 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.1167, allocations: 0.7162 MB / 368.6 MB, free: 2.613 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.509e-05/0.1168, allocations: 15.44 kB / 368.6 MB, free: 2.598 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1168, allocations: 4 kB / 368.6 MB, free: 2.594 MB / 302.1 MB Notification: Performance of Templates: time 0.1765/0.2933, allocations: 3.915 MB / 372.5 MB, free: 18.41 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/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