Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.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.001963/0.001963, allocations: 108.5 kB / 21.23 MB, free: 0.668 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.001573/0.001573, allocations: 185.1 kB / 24.51 MB, free: 4.051 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.49/1.49, 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.243/0.243, allocations: 44.9 MB / 353.5 MB, free: 11.84 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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions")
translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002064/0.002064, allocations: 67.88 kB / 497.7 MB, free: 1.02 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4549/0.457, allocations: 64.28 MB / 0.5488 GB, free: 13.16 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002079/0.4591, allocations: 0.5128 MB / 0.5493 GB, free: 12.77 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.004223/0.4633, allocations: 2.355 MB / 0.5516 GB, free: 10.93 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 1.557e-05/0.4633, allocations: 0 / 0.5516 GB, free: 10.93 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.539e-05/0.4633, allocations: 0 / 0.5516 GB, free: 10.93 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 6.281e-06/0.4634, allocations: 0 / 0.5516 GB, free: 10.93 MB / 398.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:1098:5-1194:31:writable] Warning: Pure function 'ModelicaTest.Math.Random.truncatedDistributions' contains a call to impure function 'Modelica.Utilities.Streams.print'.
Notification: Performance of NFTyping.typeClassSections: time 0.001848/0.4652, allocations: 0.5795 MB / 0.5522 GB, free: 10.58 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 4.937e-05/0.4653, allocations: 1.094 kB / 0.5522 GB, free: 10.58 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 4.418e-05/0.4653, allocations: 5.109 kB / 0.5522 GB, free: 10.58 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 1.595e-05/0.4653, allocations: 0.9688 kB / 0.5522 GB, free: 10.58 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 2.287e-05/0.4653, allocations: 5.078 kB / 0.5522 GB, free: 10.57 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.622e-06/0.4653, allocations: 4 kB / 0.5522 GB, free: 10.57 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.001485/0.4668, allocations: 0.7842 MB / 0.553 GB, free: 10.09 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.747e-06/0.4668, allocations: 1.094 kB / 0.553 GB, free: 10.09 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 2.226e-05/0.4669, allocations: 4.969 kB / 0.553 GB, free: 10.09 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0007761/0.4676, allocations: 450.7 kB / 0.5534 GB, free: 9.828 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.4676, allocations: 1.094 kB / 0.5534 GB, free: 9.828 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.743e-06/0.4676, allocations: 3.938 kB / 0.5534 GB, free: 9.824 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 9.448e-06/0.4676, allocations: 0 / 0.5534 GB, free: 9.824 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.0005261/0.4682, allocations: 365.2 kB / 0.5537 GB, free: 9.461 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.4682, allocations: 9.703 kB / 0.5537 GB, free: 9.461 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.566e-05/0.4683, allocations: 6 kB / 0.5538 GB, free: 9.457 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.4684, allocations: 107.6 kB / 0.5539 GB, free: 9.328 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.4684, allocations: 1.5 kB / 0.5539 GB, free: 9.328 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.191e-05/0.4684, allocations: 4.375 kB / 0.5539 GB, free: 9.324 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 9.758e-05/0.4685, allocations: 37.25 kB / 0.5539 GB, free: 9.285 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.4685, allocations: 0 / 0.5539 GB, free: 9.285 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.4685, allocations: 0 / 0.5539 GB, free: 9.285 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.4685, allocations: 5.047 kB / 0.5539 GB, free: 9.281 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 1.7e-05/0.4685, allocations: 1.062 kB / 0.5539 GB, free: 9.281 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001335/0.4687, allocations: 118.9 kB / 0.554 GB, free: 9.125 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 5.565e-05/0.4687, allocations: 23.59 kB / 0.554 GB, free: 9.094 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 1.395e-05/0.4687, allocations: 9.891 kB / 0.5541 GB, free: 9.082 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 6.672e-06/0.4687, allocations: 1.062 kB / 0.5541 GB, free: 9.082 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.187e-05/0.4688, allocations: 61.27 kB / 0.5541 GB, free: 9.008 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.4688, allocations: 0 / 0.5541 GB, free: 9.008 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1): time 0.0001921/0.469, allocations: 68.03 kB / 0.5542 GB, free: 8.938 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.351e-05/0.4691, allocations: 81.09 kB / 0.5543 GB, free: 8.84 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.907e-05/0.4691, allocations: 90.95 kB / 0.5543 GB, free: 8.742 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.4691, allocations: 29.83 kB / 0.5544 GB, free: 8.707 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 5.172e-05/0.4692, allocations: 84.08 kB / 0.5544 GB, free: 8.621 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.064e-05/0.4692, allocations: 1.062 kB / 0.5544 GB, free: 8.621 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.358e-05/0.4692, allocations: 12.31 kB / 0.5545 GB, free: 8.605 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001456/0.4694, allocations: 310.8 kB / 0.5548 GB, free: 8.293 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.234e-05/0.4694, allocations: 1.406 kB / 0.5548 GB, free: 8.293 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 7.243e-06/0.4694, allocations: 1.188 kB / 0.5548 GB, free: 8.293 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 8.217e-05/0.4695, allocations: 67.7 kB / 0.5548 GB, free: 8.215 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4695, allocations: 0 / 0.5548 GB, free: 8.215 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 9.022e-05/0.4696, allocations: 67.23 kB / 0.5549 GB, free: 8.145 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 4.099e-05/0.4696, allocations: 35.08 kB / 0.5549 GB, free: 8.109 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.4696, allocations: 0 / 0.5549 GB, free: 8.109 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.4696, allocations: 0 / 0.5549 GB, free: 8.109 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.4696, allocations: 1.031 kB / 0.5549 GB, free: 8.109 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.4696, allocations: 0 / 0.5549 GB, free: 8.109 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.481e-05/0.4697, allocations: 1.438 kB / 0.5549 GB, free: 8.109 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-06/0.4697, allocations: 0 / 0.5549 GB, free: 8.109 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.0001035/0.4698, allocations: 150.2 kB / 0.5551 GB, free: 7.949 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.37e-05/0.4698, allocations: 9.578 kB / 0.5551 GB, free: 7.941 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.794e-05/0.4698, allocations: 6.953 kB / 0.5551 GB, free: 7.93 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.4698, allocations: 0 / 0.5551 GB, free: 7.93 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.4698, allocations: 1.812 kB / 0.5551 GB, free: 7.93 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-06/0.4698, allocations: 0 / 0.5551 GB, free: 7.93 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001028/0.4699, allocations: 117.9 kB / 0.5552 GB, free: 7.773 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.4699, allocations: 3.938 kB / 0.5552 GB, free: 7.77 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.024e-06/0.4699, allocations: 1.156 kB / 0.5552 GB, free: 7.77 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.4699, allocations: 7.938 kB / 0.5552 GB, free: 7.762 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.4699, allocations: 5.219 kB / 0.5552 GB, free: 7.758 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.4699, allocations: 0 / 0.5552 GB, free: 7.758 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4699, allocations: 1.188 kB / 0.5552 GB, free: 7.758 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001241/0.4701, allocations: 93.48 kB / 0.5553 GB, free: 7.652 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.639e-06/0.4701, allocations: 1.094 kB / 0.5553 GB, free: 7.652 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.4701, allocations: 5.031 kB / 0.5553 GB, free: 7.648 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.376e-06/0.4701, allocations: 0 / 0.5553 GB, free: 7.648 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.315e-05/0.4701, allocations: 5.219 kB / 0.5553 GB, free: 7.645 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.4701, allocations: 1.188 kB / 0.5553 GB, free: 7.645 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 3.702e-05/0.4701, allocations: 79.31 kB / 0.5554 GB, free: 7.566 MB / 398.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.4701, allocations: 3.938 kB / 0.5554 GB, free: 7.562 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0005278/0.4707, allocations: 161.5 kB / 0.5555 GB, free: 7.508 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.0008281/0.4715, allocations: 337.2 kB / 0.5559 GB, free: 7.312 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.000111/0.4716, allocations: 60.73 kB / 0.5559 GB, free: 7.246 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.4716, allocations: 0 / 0.5559 GB, free: 7.246 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.663e-05/0.4717, allocations: 54.16 kB / 0.556 GB, free: 7.184 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001978/0.4719, allocations: 6.344 kB / 0.556 GB, free: 7.18 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002445/0.4721, allocations: 80.2 kB / 0.5561 GB, free: 7.082 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.4724, allocations: 0.682 MB / 0.5567 GB, free: 6.375 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 6.221e-06/0.4724, allocations: 0 / 0.5567 GB, free: 6.375 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.379e-05/0.4725, allocations: 8.812 kB / 0.5567 GB, free: 6.367 MB / 398.1 MB
Notification: Performance of SimCode: time 3.1e-07/0.4725, allocations: 0 / 0.5567 GB, free: 6.367 MB / 398.1 MB
Notification: Performance of Templates: time 0.007808/0.4803, allocations: 3.522 MB / 0.5602 GB, free: 3.406 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660]
(rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.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.530529880896211]