Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001633/0.001633, allocations: 100.6 kB / 21.22 MB, free: 0.6562 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001994/0.001994, allocations: 185.2 kB / 24.51 MB, free: 4.012 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.606/1.606, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2637/0.2637, allocations: 44.92 MB / 353.5 MB, free: 11.82 MB / 286.1 MB
"
[Timeout remaining time 179]
Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo)
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions")
translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 67.89 kB / 497.7 MB, free: 1.004 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.464/0.4659, allocations: 64.29 MB / 0.5488 GB, free: 13.14 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001939/0.4679, allocations: 0.5131 MB / 0.5493 GB, free: 12.75 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.003742/0.4716, allocations: 2.08 MB / 0.5513 GB, free: 11.12 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 1.987e-05/0.4716, allocations: 0 / 0.5513 GB, free: 11.12 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.476e-05/0.4717, allocations: 0 / 0.5513 GB, free: 11.12 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 5.741e-06/0.4717, allocations: 4 kB / 0.5513 GB, free: 11.12 MB / 398.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001789/0.4734, allocations: 0.5115 MB / 0.5518 GB, free: 10.81 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 6.328e-05/0.4735, allocations: 2.469 kB / 0.5518 GB, free: 10.81 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 5.17e-05/0.4736, allocations: 5.469 kB / 0.5519 GB, free: 10.81 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 2.322e-05/0.4736, allocations: 3.984 kB / 0.5519 GB, free: 10.8 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 2.174e-05/0.4736, allocations: 1.344 kB / 0.5519 GB, free: 10.8 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 8.506e-06/0.4736, allocations: 0 / 0.5519 GB, free: 10.8 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.001331/0.4749, allocations: 0.745 MB / 0.5526 GB, free: 10.34 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.366e-06/0.475, allocations: 0 / 0.5526 GB, free: 10.34 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 2.92e-05/0.475, allocations: 1.25 kB / 0.5526 GB, free: 10.34 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0006843/0.4757, allocations: 391.9 kB / 0.553 GB, free: 10.1 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.4757, allocations: 1.719 kB / 0.553 GB, free: 10.1 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.503e-06/0.4757, allocations: 4 kB / 0.553 GB, free: 10.09 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 6.542e-06/0.4757, allocations: 0 / 0.553 GB, free: 10.09 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.000509/0.4762, allocations: 340 kB / 0.5533 GB, free: 9.75 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.4762, allocations: 10.89 kB / 0.5533 GB, free: 9.75 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.686e-05/0.4763, allocations: 0.9375 kB / 0.5533 GB, free: 9.75 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 9.331e-05/0.4764, allocations: 103.6 kB / 0.5534 GB, free: 9.625 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.4764, allocations: 1.281 kB / 0.5534 GB, free: 9.625 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.063e-05/0.4764, allocations: 5.438 kB / 0.5534 GB, free: 9.621 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.4765, allocations: 40.25 kB / 0.5534 GB, free: 9.578 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.4765, allocations: 4 kB / 0.5534 GB, free: 9.574 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.657e-06/0.4765, allocations: 1.094 kB / 0.5535 GB, free: 9.574 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.4765, allocations: 0 / 0.5535 GB, free: 9.574 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 1.864e-05/0.4766, allocations: 1.062 kB / 0.5535 GB, free: 9.574 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001635/0.4767, allocations: 115.3 kB / 0.5536 GB, free: 9.422 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 4.638e-05/0.4768, allocations: 19.92 kB / 0.5536 GB, free: 9.395 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 1.951e-05/0.4768, allocations: 13.8 kB / 0.5536 GB, free: 9.379 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 8.957e-06/0.4768, allocations: 0.9375 kB / 0.5536 GB, free: 9.379 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.786e-05/0.4769, allocations: 73.28 kB / 0.5537 GB, free: 9.293 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=1): time 1.372e-06/0.4769, allocations: 0 / 0.5537 GB, free: 9.293 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1): time 0.0002006/0.4771, allocations: 58.88 kB / 0.5537 GB, free: 9.23 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.4771, allocations: 78.2 kB / 0.5538 GB, free: 9.137 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.253e-05/0.4772, allocations: 89.86 kB / 0.5539 GB, free: 9.039 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.4772, allocations: 26.77 kB / 0.5539 GB, free: 9.008 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 3.711e-05/0.4773, allocations: 80.14 kB / 0.554 GB, free: 8.926 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.354e-05/0.4773, allocations: 9.375 kB / 0.554 GB, free: 8.918 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.309e-05/0.4773, allocations: 15.83 kB / 0.554 GB, free: 8.898 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001632/0.4775, allocations: 310.8 kB / 0.5543 GB, free: 8.586 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.159e-05/0.4775, allocations: 4.906 kB / 0.5543 GB, free: 8.582 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 5.52e-06/0.4775, allocations: 1.094 kB / 0.5543 GB, free: 8.582 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 6.664e-05/0.4776, allocations: 59.52 kB / 0.5544 GB, free: 8.512 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.4776, allocations: 0.9688 kB / 0.5544 GB, free: 8.512 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 7.992e-05/0.4776, allocations: 70.02 kB / 0.5544 GB, free: 8.438 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.82e-05/0.4777, allocations: 34.95 kB / 0.5545 GB, free: 8.402 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.4777, allocations: 0.9375 kB / 0.5545 GB, free: 8.402 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.4777, allocations: 0 / 0.5545 GB, free: 8.402 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.413e-06/0.4777, allocations: 1.031 kB / 0.5545 GB, free: 8.402 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.389e-06/0.4777, allocations: 0 / 0.5545 GB, free: 8.402 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.712e-05/0.4777, allocations: 4.859 kB / 0.5545 GB, free: 8.398 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-06/0.4777, allocations: 5.062 kB / 0.5545 GB, free: 8.395 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.0001101/0.4778, allocations: 141.4 kB / 0.5546 GB, free: 8.242 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.275e-05/0.4778, allocations: 12.98 kB / 0.5546 GB, free: 8.23 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.967e-05/0.4779, allocations: 6.953 kB / 0.5546 GB, free: 8.219 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.4779, allocations: 1.094 kB / 0.5546 GB, free: 8.219 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4779, allocations: 0 / 0.5546 GB, free: 8.219 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-06/0.4779, allocations: 0 / 0.5546 GB, free: 8.219 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001108/0.478, allocations: 122.8 kB / 0.5547 GB, free: 8.059 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.478, allocations: 1.094 kB / 0.5548 GB, free: 8.059 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.478, allocations: 0 / 0.5548 GB, free: 8.059 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.478, allocations: 3.938 kB / 0.5548 GB, free: 8.055 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.478, allocations: 5.016 kB / 0.5548 GB, free: 8.051 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.478, allocations: 1.094 kB / 0.5548 GB, free: 8.051 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.478, allocations: 4 kB / 0.5548 GB, free: 8.047 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001203/0.4781, allocations: 85.97 kB / 0.5548 GB, free: 7.949 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 9.007e-06/0.4781, allocations: 5.047 kB / 0.5549 GB, free: 7.945 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.4782, allocations: 5.094 kB / 0.5549 GB, free: 7.941 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.826e-06/0.4782, allocations: 1.156 kB / 0.5549 GB, free: 7.941 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.164e-05/0.4782, allocations: 0 / 0.5549 GB, free: 7.941 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-06/0.4782, allocations: 5.094 kB / 0.5549 GB, free: 7.938 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 4.661e-05/0.4782, allocations: 83.25 kB / 0.5549 GB, free: 7.855 MB / 398.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.4782, allocations: 0 / 0.5549 GB, free: 7.855 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0004953/0.4787, allocations: 130.6 kB / 0.5551 GB, free: 7.816 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.000783/0.4795, allocations: 305.3 kB / 0.5554 GB, free: 7.633 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001086/0.4796, allocations: 60.59 kB / 0.5554 GB, free: 7.566 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4796, allocations: 1.125 kB / 0.5554 GB, free: 7.566 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.552e-05/0.4797, allocations: 57.55 kB / 0.5555 GB, free: 7.5 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001293/0.4798, allocations: 4.906 kB / 0.5555 GB, free: 7.5 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002224/0.48, allocations: 84.69 kB / 0.5556 GB, free: 7.398 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.4804, allocations: 0.6738 MB / 0.5562 GB, free: 6.699 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 7.464e-06/0.4804, allocations: 0 / 0.5562 GB, free: 6.699 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.879e-05/0.4804, allocations: 9.531 kB / 0.5562 GB, free: 6.691 MB / 398.1 MB
Notification: Performance of SimCode: time 3.21e-07/0.4804, allocations: 4.125 kB / 0.5562 GB, free: 6.688 MB / 398.1 MB
Notification: Performance of Templates: time 0.008171/0.4886, allocations: 3.428 MB / 0.5596 GB, free: 4.012 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660]
(rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.72851815726608]