Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001263/0.001263, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001132/0.001132, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2326/0.2326, allocations: 46.11 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 76.16 kB / 481.3 MB, free: 4.051 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4889/0.4905, allocations: 62.43 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001653/0.4922, allocations: 0.5129 MB / 0.5315 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003495/0.4957, allocations: 2.089 MB / 0.5335 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.753e-05/0.4957, allocations: 5.375 kB / 0.5335 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.719e-05/0.4958, allocations: 0 / 0.5335 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.774e-06/0.4958, allocations: 0 / 0.5335 GB, free: 11.57 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1013:5-1096:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.distributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002121/0.4979, allocations: 0.4975 MB / 0.534 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.373e-05/0.498, allocations: 5.359 kB / 0.534 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.355e-05/0.4981, allocations: 1.375 kB / 0.534 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.869e-05/0.4981, allocations: 1.375 kB / 0.534 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.723e-05/0.4982, allocations: 0 / 0.534 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.708e-06/0.4982, allocations: 0 / 0.534 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001604/0.4998, allocations: 0.6293 MB / 0.5346 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.802e-05/0.4998, allocations: 4.75 kB / 0.5346 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.844e-05/0.4999, allocations: 5.047 kB / 0.5346 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007755/0.5006, allocations: 380.5 kB / 0.535 GB, free: 10.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.5007, allocations: 7.938 kB / 0.535 GB, free: 10.67 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.5007, allocations: 0 / 0.535 GB, free: 10.67 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.5007, allocations: 1.156 kB / 0.535 GB, free: 10.67 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0007231/0.5014, allocations: 422.1 kB / 0.5354 GB, free: 10.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.289e-05/0.5015, allocations: 9.5 kB / 0.5354 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.19e-05/0.5016, allocations: 0.9375 kB / 0.5354 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001747/0.5017, allocations: 161.6 kB / 0.5356 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.5018, allocations: 384 / 0.5356 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.062e-05/0.5018, allocations: 1.5 kB / 0.5356 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001492/0.5019, allocations: 36.45 kB / 0.5356 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.502, allocations: 0 / 0.5356 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.502, allocations: 1.125 kB / 0.5356 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/0.502, allocations: 3.984 kB / 0.5356 GB, free: 9.996 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.063e-05/0.502, allocations: 5.188 kB / 0.5356 GB, free: 9.992 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002095/0.5023, allocations: 146.9 kB / 0.5358 GB, free: 9.801 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.851e-05/0.5023, allocations: 16.7 kB / 0.5358 GB, free: 9.777 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.148e-05/0.5024, allocations: 9.984 kB / 0.5358 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.206e-05/0.5024, allocations: 1.062 kB / 0.5358 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.178e-05/0.5024, allocations: 61.45 kB / 0.5359 GB, free: 9.691 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 3.397e-06/0.5025, allocations: 3.984 kB / 0.5359 GB, free: 9.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002479/0.5027, allocations: 71.33 kB / 0.5359 GB, free: 9.613 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.614e-05/0.5028, allocations: 77.11 kB / 0.536 GB, free: 9.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.225e-05/0.5029, allocations: 91.02 kB / 0.5361 GB, free: 9.422 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.5029, allocations: 29.64 kB / 0.5361 GB, free: 9.387 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.505e-05/0.5029, allocations: 84.27 kB / 0.5362 GB, free: 9.301 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.383e-05/0.503, allocations: 1.156 kB / 0.5362 GB, free: 9.301 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.832e-05/0.503, allocations: 12 kB / 0.5362 GB, free: 9.285 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.5032, allocations: 318.8 kB / 0.5365 GB, free: 8.965 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.191e-05/0.5032, allocations: 1.125 kB / 0.5365 GB, free: 8.965 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.344e-06/0.5032, allocations: 1.125 kB / 0.5365 GB, free: 8.965 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.11e-05/0.5033, allocations: 59.83 kB / 0.5366 GB, free: 8.895 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.5033, allocations: 4.062 kB / 0.5366 GB, free: 8.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.969e-05/0.5034, allocations: 66.8 kB / 0.5366 GB, free: 8.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.733e-05/0.5034, allocations: 37.14 kB / 0.5367 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.5035, allocations: 0 / 0.5367 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.5035, allocations: 0.9375 kB / 0.5367 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.193e-06/0.5035, allocations: 0 / 0.5367 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.5035, allocations: 1.188 kB / 0.5367 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.152e-05/0.5035, allocations: 4 kB / 0.5367 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.727e-06/0.5035, allocations: 0.9688 kB / 0.5367 GB, free: 8.781 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001267/0.5037, allocations: 138.4 kB / 0.5368 GB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.081e-05/0.5037, allocations: 4.875 kB / 0.5368 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.452e-05/0.5037, allocations: 11.05 kB / 0.5368 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.5037, allocations: 5.156 kB / 0.5368 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.5037, allocations: 0 / 0.5368 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.5038, allocations: 0 / 0.5368 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001286/0.5039, allocations: 147.6 kB / 0.537 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.5039, allocations: 0 / 0.537 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.555e-06/0.5039, allocations: 1.188 kB / 0.537 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.5039, allocations: 3.938 kB / 0.537 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.5039, allocations: 5.312 kB / 0.537 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.5039, allocations: 0 / 0.537 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.5039, allocations: 3.984 kB / 0.537 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001199/0.5041, allocations: 90.19 kB / 0.5371 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.019e-05/0.5041, allocations: 77.11 kB / 0.5371 GB, free: 8.219 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.021e-05/0.5042, allocations: 9.172 kB / 0.5372 GB, free: 8.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.325e-06/0.5042, allocations: 1.219 kB / 0.5372 GB, free: 8.211 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.527e-05/0.5042, allocations: 5.344 kB / 0.5372 GB, free: 8.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.153e-06/0.5042, allocations: 4 kB / 0.5372 GB, free: 8.203 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.88e-05/0.5043, allocations: 83.25 kB / 0.5372 GB, free: 8.121 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5043, allocations: 1.531 kB / 0.5372 GB, free: 8.121 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005566/0.5048, allocations: 127.2 kB / 0.5374 GB, free: 8.086 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0009016/0.5057, allocations: 300.2 kB / 0.5377 GB, free: 7.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001193/0.5059, allocations: 60.59 kB / 0.5377 GB, free: 7.844 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.5059, allocations: 0 / 0.5377 GB, free: 7.844 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.919e-05/0.5059, allocations: 58.98 kB / 0.5378 GB, free: 7.777 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001386/0.5061, allocations: 3.562 kB / 0.5378 GB, free: 7.777 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002191/0.5063, allocations: 81.95 kB / 0.5379 GB, free: 7.68 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002969/0.5066, allocations: 0.6704 MB / 0.5385 GB, free: 6.984 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.213e-06/0.5066, allocations: 4.125 kB / 0.5385 GB, free: 6.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.568e-05/0.5067, allocations: 12.8 kB / 0.5385 GB, free: 6.969 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.5067, allocations: 0 / 0.5385 GB, free: 6.969 MB / 398.1 MB Notification: Performance of Templates: time 0.007907/0.5146, allocations: 3.503 MB / 0.5419 GB, free: 5.191 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches