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.0007982/0.0007982, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001123/0.001921, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006782/0.0006782, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009688/0.001647, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.9154/0.9154, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1818/1.097, allocations: 52.48 MB / 238.5 MB, free: 7.629 MB / 234.7 MB " [Timeout remaining time 179] 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.139/0.139, allocations: 32.8 MB / 272 MB, free: 6.297 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02174/0.1607, allocations: 12.54 MB / 284.5 MB, free: 9.711 MB / 282.7 MB " [Timeout remaining time 180] 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 1.873e-06/1.873e-06, allocations: 0 / 285.8 MB, free: 8.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.272e-05/2.46e-05, allocations: 5.266 kB / 285.8 MB, free: 8.418 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001473/0.001498, allocations: 0.5663 MB / 286.4 MB, free: 7.855 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002362/0.00386, allocations: 2.011 MB / 288.4 MB, free: 5.82 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.285e-05/0.003873, allocations: 0 / 288.4 MB, free: 5.82 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.958e-06/0.003877, allocations: 3.938 kB / 288.4 MB, free: 5.816 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.192e-06/0.003878, allocations: 0 / 288.4 MB, free: 5.816 MB / 282.7 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.001077/0.004955, allocations: 470.3 kB / 288.9 MB, free: 5.355 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.162e-05/0.005007, allocations: 4 kB / 288.9 MB, free: 5.352 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.274e-05/0.005039, allocations: 7.938 kB / 288.9 MB, free: 5.344 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.046e-05/0.00507, allocations: 0 / 288.9 MB, free: 5.344 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.132e-05/0.005091, allocations: 7.984 kB / 288.9 MB, free: 5.336 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.296e-06/0.0051, allocations: 0 / 288.9 MB, free: 5.336 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009375/0.006037, allocations: 0.6548 MB / 289.6 MB, free: 4.68 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.202e-05/0.006049, allocations: 0 / 289.6 MB, free: 4.68 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.335e-05/0.006062, allocations: 4 kB / 289.6 MB, free: 4.676 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005043/0.006567, allocations: 371 kB / 289.9 MB, free: 4.312 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.946e-06/0.006576, allocations: 0 / 289.9 MB, free: 4.312 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.006577, allocations: 0 / 289.9 MB, free: 4.312 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.006585, allocations: 0 / 289.9 MB, free: 4.312 MB / 282.7 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.0003478/0.006933, allocations: 357.6 kB / 290.3 MB, free: 3.934 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.081e-05/0.006964, allocations: 8.031 kB / 290.3 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.219e-05/0.006996, allocations: 4.938 kB / 290.3 MB, free: 3.922 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.831e-05/0.007054, allocations: 109.7 kB / 290.4 MB, free: 3.789 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-06/0.007064, allocations: 384 / 290.4 MB, free: 3.789 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.368e-06/0.007073, allocations: 4.375 kB / 290.4 MB, free: 3.785 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.825e-05/0.007142, allocations: 59.95 kB / 290.5 MB, free: 3.715 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.711e-06/0.007147, allocations: 192 / 290.5 MB, free: 3.715 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.09e-06/0.007153, allocations: 384 / 290.5 MB, free: 3.715 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.007159, allocations: 3.938 kB / 290.5 MB, free: 3.711 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.87e-05/0.007177, allocations: 37.62 kB / 290.5 MB, free: 3.668 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.387e-05/0.007241, allocations: 61.05 kB / 290.6 MB, free: 3.594 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.834e-05/0.007279, allocations: 40.28 kB / 290.6 MB, free: 3.539 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.759e-05/0.007297, allocations: 38.66 kB / 290.6 MB, free: 3.492 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.707e-06/0.007301, allocations: 0 / 290.6 MB, free: 3.492 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.007333, allocations: 56.27 kB / 290.7 MB, free: 3.422 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 5.71e-07/0.007333, allocations: 0 / 290.7 MB, free: 3.422 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001224/0.007456, allocations: 122.7 kB / 290.8 MB, free: 3.277 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.827e-05/0.007514, allocations: 154.2 kB / 291 MB, free: 3.09 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.429e-05/0.007548, allocations: 93.86 kB / 291 MB, free: 2.988 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.003e-05/0.007558, allocations: 25.7 kB / 291.1 MB, free: 2.957 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.063e-05/0.007579, allocations: 84.12 kB / 291.2 MB, free: 2.871 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.81e-05/0.007597, allocations: 0 / 291.2 MB, free: 2.871 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.741e-05/0.007624, allocations: 17.84 kB / 291.2 MB, free: 2.848 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.962e-05/0.007704, allocations: 322.8 kB / 291.5 MB, free: 2.523 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.751e-05/0.007721, allocations: 25.7 kB / 291.5 MB, free: 2.492 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.568e-05/0.007737, allocations: 29.7 kB / 291.5 MB, free: 2.457 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.653e-05/0.007784, allocations: 68.25 kB / 291.6 MB, free: 2.375 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.007786, allocations: 0 / 291.6 MB, free: 2.375 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.918e-05/0.007855, allocations: 85.05 kB / 291.7 MB, free: 2.273 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.566e-05/0.00789, allocations: 33.7 kB / 291.7 MB, free: 2.234 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.007895, allocations: 0 / 291.7 MB, free: 2.234 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.007905, allocations: 4.094 kB / 291.7 MB, free: 2.23 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.402e-06/0.007907, allocations: 0 / 291.7 MB, free: 2.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.007911, allocations: 3.984 kB / 291.7 MB, free: 2.227 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.633e-05/0.007928, allocations: 4 kB / 291.7 MB, free: 2.223 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.477e-06/0.007937, allocations: 7.938 kB / 291.7 MB, free: 2.215 MB / 282.7 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 6.156e-05/0.007999, allocations: 131.5 kB / 291.9 MB, free: 2.07 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.456e-06/0.008007, allocations: 4 kB / 291.9 MB, free: 2.066 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.218e-05/0.008019, allocations: 10.89 kB / 291.9 MB, free: 2.051 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.00802, allocations: 0 / 291.9 MB, free: 2.051 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.008021, allocations: 0 / 291.9 MB, free: 2.051 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.008023, allocations: 4 kB / 291.9 MB, free: 2.047 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.243e-05/0.008076, allocations: 69.83 kB / 292 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-07/0.008076, allocations: 0 / 292 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.008077, allocations: 0 / 292 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.717e-06/0.008081, allocations: 0 / 292 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.52e-07/0.008081, allocations: 0 / 292 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.877e-06/0.008085, allocations: 0 / 292 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.008086, allocations: 0 / 292 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.008087, allocations: 4 kB / 292 MB, free: 1.957 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.428e-05/0.008161, allocations: 116.4 kB / 292.1 MB, free: 1.812 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.071e-05/0.008172, allocations: 0 / 292.1 MB, free: 1.812 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.264e-06/0.008179, allocations: 4.031 kB / 292.1 MB, free: 1.809 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.725e-06/0.008187, allocations: 4 kB / 292.1 MB, free: 1.805 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.008189, allocations: 0 / 292.1 MB, free: 1.805 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.327e-06/0.008199, allocations: 8.891 kB / 292.1 MB, free: 1.793 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008199, allocations: 0 / 292.1 MB, free: 1.793 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003179/0.008517, allocations: 135.5 kB / 292.2 MB, free: 1.66 MB / 282.7 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.0006334/0.00915, allocations: 332.3 kB / 292.5 MB, free: 1.344 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001143/0.009264, allocations: 123.7 kB / 292.7 MB, free: 1.195 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.009268, allocations: 0 / 292.7 MB, free: 1.195 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.357e-05/0.009302, allocations: 89.91 kB / 292.8 MB, free: 1.086 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.39e-05/0.009356, allocations: 11.92 kB / 292.8 MB, free: 1.074 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001465/0.009502, allocations: 108.8 kB / 292.9 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.53e-05/0.009557, allocations: 55.36 kB / 292.9 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.179e-06/0.009562, allocations: 192 / 292.9 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.035e-05/0.009593, allocations: 55.38 kB / 293 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of SimCode: time 5.91e-07/0.009593, allocations: 0 / 293 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of Templates: time 0.006695/0.01629, allocations: 4.039 MB / 297 MB, free: 12.78 MB / 298.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.892055313102901]