Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001767/0.001767, allocations: 109.8 kB / 19.69 MB, free: 2.188 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.002045/0.002045, allocations: 189 kB / 22.98 MB, free: 5.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.552/1.552, allocations: 207.6 MB / 233.7 MB, free: 10.01 MB / 190.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2299/0.2299, allocations: 44.24 MB / 330.2 MB, free: 9.559 MB / 270.1 MB
"
[Timeout remaining time 179]
Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo)
Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions")
translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660]
"Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.002173/0.002173, allocations: 71.83 kB / 467.9 MB, free: 4.047 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1742/0.1764, allocations: 61.02 MB / 0.5166 GB, free: 6.883 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002174/0.1786, allocations: 0.5179 MB / 0.5171 GB, free: 6.367 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.004368/0.1829, allocations: 2.38 MB / 0.5194 GB, free: 3.961 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 1.833e-05/0.1829, allocations: 4 kB / 0.5194 GB, free: 3.957 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.432e-05/0.183, allocations: 4 kB / 0.5194 GB, free: 3.953 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 7.393e-06/0.183, allocations: 0 / 0.5194 GB, free: 3.953 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.002098/0.1851, allocations: 0.5726 MB / 0.52 GB, free: 3.379 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 9.059e-05/0.1852, allocations: 4 kB / 0.52 GB, free: 3.375 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 6.742e-05/0.1852, allocations: 0 / 0.52 GB, free: 3.375 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 3.071e-05/0.1853, allocations: 0 / 0.52 GB, free: 3.375 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 2.542e-05/0.1853, allocations: 3.938 kB / 0.52 GB, free: 3.371 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.317e-05/0.1853, allocations: 8 kB / 0.52 GB, free: 3.363 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.00158/0.1869, allocations: 0.7876 MB / 0.5208 GB, free: 2.574 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 1.48e-05/0.1869, allocations: 0 / 0.5208 GB, free: 2.574 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 3.753e-05/0.1869, allocations: 0 / 0.5208 GB, free: 2.574 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001064/0.188, allocations: 462.8 kB / 0.5212 GB, free: 2.121 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.188, allocations: 4 kB / 0.5212 GB, free: 2.117 MB / 398.1 MB
Notification: Performance of FrontEnd: time 3.005e-06/0.188, allocations: 0 / 0.5212 GB, free: 2.117 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 1.15e-05/0.188, allocations: 0 / 0.5212 GB, free: 2.117 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.0007071/0.1887, allocations: 363.1 kB / 0.5215 GB, free: 1.727 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.1888, allocations: 8.031 kB / 0.5216 GB, free: 1.719 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.298e-05/0.1888, allocations: 4.938 kB / 0.5216 GB, free: 1.715 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001275/0.1889, allocations: 102.5 kB / 0.5217 GB, free: 1.59 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.189, allocations: 384 / 0.5217 GB, free: 1.59 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.06e-05/0.189, allocations: 384 / 0.5217 GB, free: 1.59 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001092/0.1891, allocations: 41.95 kB / 0.5217 GB, free: 1.543 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.1891, allocations: 0 / 0.5217 GB, free: 1.543 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.1891, allocations: 0 / 0.5217 GB, free: 1.543 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.1891, allocations: 0 / 0.5217 GB, free: 1.543 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 2.772e-05/0.1891, allocations: 11.98 kB / 0.5217 GB, free: 1.531 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002747/0.1894, allocations: 116.7 kB / 0.5218 GB, free: 1.375 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 6.312e-05/0.1895, allocations: 14.67 kB / 0.5218 GB, free: 1.352 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 2.276e-05/0.1895, allocations: 16.86 kB / 0.5218 GB, free: 1.332 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.174e-05/0.1895, allocations: 7.922 kB / 0.5219 GB, free: 1.324 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.343e-05/0.1896, allocations: 68.14 kB / 0.5219 GB, free: 1.242 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.1896, allocations: 0 / 0.5219 GB, free: 1.242 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1): time 0.0002498/0.1898, allocations: 63.39 kB / 0.522 GB, free: 1.168 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 9.291e-05/0.1899, allocations: 77.11 kB / 0.5221 GB, free: 1.074 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.039e-05/0.19, allocations: 89.86 kB / 0.5221 GB, free: 0.9766 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.19, allocations: 29.7 kB / 0.5222 GB, free: 0.9414 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 5.822e-05/0.1901, allocations: 84.27 kB / 0.5222 GB, free: 0.8555 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.515e-05/0.1901, allocations: 0 / 0.5222 GB, free: 0.8555 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-05/0.1901, allocations: 13.72 kB / 0.5223 GB, free: 0.8359 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001715/0.1903, allocations: 318.8 kB / 0.5226 GB, free: 0.5156 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.1e-05/0.1903, allocations: 0 / 0.5226 GB, free: 0.5156 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 5.521e-06/0.1903, allocations: 0 / 0.5226 GB, free: 0.5156 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 6.37e-05/0.1904, allocations: 64.2 kB / 0.5226 GB, free: 448 kB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1904, allocations: 4.062 kB / 0.5226 GB, free: 444 kB / 398.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001095/0.1905, allocations: 63.41 kB / 0.5227 GB, free: 368 kB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 4.937e-05/0.1905, allocations: 37.62 kB / 0.5227 GB, free: 324 kB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1906, allocations: 0 / 0.5227 GB, free: 324 kB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.1906, allocations: 0 / 0.5227 GB, free: 324 kB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.202e-06/0.1906, allocations: 4 kB / 0.5227 GB, free: 320 kB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.341e-06/0.1906, allocations: 0 / 0.5227 GB, free: 320 kB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.845e-05/0.1906, allocations: 0 / 0.5227 GB, free: 320 kB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.1906, allocations: 0 / 0.5227 GB, free: 320 kB / 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.0001956/0.1908, allocations: 139.6 kB / 0.5229 GB, free: 164 kB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.287e-05/0.1908, allocations: 7.938 kB / 0.5229 GB, free: 156 kB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.023e-05/0.1908, allocations: 3 kB / 0.5229 GB, free: 156 kB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.61e-07/0.1908, allocations: 0 / 0.5229 GB, free: 156 kB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.1908, allocations: 3.984 kB / 0.5229 GB, free: 152 kB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.1908, allocations: 3.938 kB / 0.5229 GB, free: 148 kB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001435/0.191, allocations: 120.8 kB / 0.523 GB, free: 15.98 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.191, allocations: 0 / 0.523 GB, free: 15.98 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.191, allocations: 0 / 0.523 GB, free: 15.98 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.191, allocations: 3.938 kB / 0.523 GB, free: 15.98 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.191, allocations: 7.938 kB / 0.523 GB, free: 15.97 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.191, allocations: 4 kB / 0.523 GB, free: 15.97 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.788e-06/0.191, allocations: 4 kB / 0.523 GB, free: 15.96 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000138/0.1911, allocations: 86.83 kB / 0.5231 GB, free: 15.86 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 6.852e-06/0.1911, allocations: 4 kB / 0.5231 GB, free: 15.85 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.1912, allocations: 3.938 kB / 0.5231 GB, free: 15.85 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.786e-06/0.1912, allocations: 0 / 0.5231 GB, free: 15.85 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.916e-05/0.1912, allocations: 3.984 kB / 0.5231 GB, free: 15.84 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.1912, allocations: 4.031 kB / 0.5231 GB, free: 15.84 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 4.718e-05/0.1912, allocations: 83.22 kB / 0.5232 GB, free: 15.76 MB / 414.1 MB
Notification: Performance of sort global known variables: time 7.1e-08/0.1912, allocations: 0 / 0.5232 GB, free: 15.76 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0005163/0.1918, allocations: 159.3 kB / 0.5233 GB, free: 15.6 MB / 414.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.0008576/0.1926, allocations: 339.3 kB / 0.5237 GB, free: 15.26 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.000119/0.1927, allocations: 59.41 kB / 0.5237 GB, free: 15.19 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1927, allocations: 0 / 0.5237 GB, free: 15.19 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.462e-05/0.1928, allocations: 55.41 kB / 0.5238 GB, free: 15.12 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.1929, allocations: 3.938 kB / 0.5238 GB, free: 15.12 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003094/0.1932, allocations: 84.84 kB / 0.5239 GB, free: 15.01 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.1936, allocations: 0.669 MB / 0.5245 GB, free: 14.32 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 5.851e-06/0.1936, allocations: 0 / 0.5245 GB, free: 14.32 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.378e-05/0.1936, allocations: 15.56 kB / 0.5245 GB, free: 14.3 MB / 414.1 MB
Notification: Performance of SimCode: time 3e-07/0.1936, allocations: 0 / 0.5245 GB, free: 14.3 MB / 414.1 MB
Notification: Performance of Templates: time 0.008905/0.2025, allocations: 3.528 MB / 0.528 GB, free: 10.77 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660]
(rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.646917147561908]