Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001842/0.001842, allocations: 116.7 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002316/0.002316, allocations: 210.6 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.547/1.547, allocations: 230.2 MB / 255.1 MB, free: 15.41 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2528/0.2528, allocations: 46.89 MB / 358.1 MB, free: 10.53 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00229/0.00229, allocations: 85.81 kB / 0.4924 GB, free: 26.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1298, allocations: 65.98 MB / 0.5568 GB, free: 8.648 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001837/0.1317, allocations: 0.4986 MB / 0.5573 GB, free: 8.145 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003243/0.1349, allocations: 2.115 MB / 0.5593 GB, free: 6.008 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.487e-05/0.1349, allocations: 0 / 0.5593 GB, free: 6.008 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.432e-05/0.1349, allocations: 0 / 0.5593 GB, free: 6.008 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.943e-06/0.1349, allocations: 0 / 0.5593 GB, free: 6.008 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.001525/0.1365, allocations: 0.506 MB / 0.5598 GB, free: 5.504 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.599e-05/0.1365, allocations: 4 kB / 0.5598 GB, free: 5.5 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.131e-05/0.1366, allocations: 4 kB / 0.5598 GB, free: 5.496 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.054e-05/0.1366, allocations: 0 / 0.5598 GB, free: 5.496 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.546e-05/0.1366, allocations: 3.938 kB / 0.5598 GB, free: 5.492 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.963e-06/0.1366, allocations: 0 / 0.5598 GB, free: 5.492 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001135/0.1377, allocations: 0.6668 MB / 0.5605 GB, free: 4.824 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.358e-06/0.1378, allocations: 7.922 kB / 0.5605 GB, free: 4.816 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.847e-05/0.1378, allocations: 4 kB / 0.5605 GB, free: 4.812 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005878/0.1384, allocations: 387 kB / 0.5609 GB, free: 4.434 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1384, allocations: 0 / 0.5609 GB, free: 4.434 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1384, allocations: 0 / 0.5609 GB, free: 4.434 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.1384, allocations: 4 kB / 0.5609 GB, free: 4.43 MB / 414.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.0005283/0.1389, allocations: 420.5 kB / 0.5613 GB, free: 3.965 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.1389, allocations: 8.031 kB / 0.5613 GB, free: 3.957 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.944e-05/0.139, allocations: 0.9375 kB / 0.5613 GB, free: 3.957 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.1391, allocations: 172.4 kB / 0.5615 GB, free: 3.75 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.1391, allocations: 384 / 0.5615 GB, free: 3.75 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.29e-05/0.1391, allocations: 384 / 0.5615 GB, free: 3.75 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001057/0.1392, allocations: 37.95 kB / 0.5615 GB, free: 3.707 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.1392, allocations: 0 / 0.5615 GB, free: 3.707 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.1392, allocations: 0 / 0.5615 GB, free: 3.707 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-06/0.1392, allocations: 4 kB / 0.5615 GB, free: 3.703 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.708e-05/0.1392, allocations: 0 / 0.5615 GB, free: 3.703 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001523/0.1394, allocations: 149.7 kB / 0.5616 GB, free: 3.508 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.529e-05/0.1394, allocations: 22.61 kB / 0.5617 GB, free: 3.477 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.481e-05/0.1395, allocations: 4.859 kB / 0.5617 GB, free: 3.469 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.1395, allocations: 0 / 0.5617 GB, free: 3.469 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.277e-05/0.1395, allocations: 68.2 kB / 0.5617 GB, free: 3.387 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.1395, allocations: 4 kB / 0.5617 GB, free: 3.383 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001852/0.1397, allocations: 67.34 kB / 0.5618 GB, free: 3.305 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.514e-05/0.1398, allocations: 81.11 kB / 0.5619 GB, free: 3.207 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.824e-05/0.1398, allocations: 89.86 kB / 0.562 GB, free: 3.109 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.1398, allocations: 29.64 kB / 0.562 GB, free: 3.074 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.228e-05/0.1399, allocations: 80.14 kB / 0.5621 GB, free: 2.992 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.089e-05/0.1399, allocations: 3.984 kB / 0.5621 GB, free: 2.988 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.777e-05/0.1399, allocations: 13.72 kB / 0.5621 GB, free: 2.969 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1401, allocations: 315 kB / 0.5624 GB, free: 2.652 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.836e-06/0.1401, allocations: 0 / 0.5624 GB, free: 2.652 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.959e-06/0.1401, allocations: 0 / 0.5624 GB, free: 2.652 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.308e-05/0.1401, allocations: 72.19 kB / 0.5625 GB, free: 2.566 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1401, allocations: 0 / 0.5625 GB, free: 2.566 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.564e-05/0.1402, allocations: 59.41 kB / 0.5625 GB, free: 2.496 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/0.1403, allocations: 33.64 kB / 0.5625 GB, free: 2.457 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-06/0.1403, allocations: 4 kB / 0.5625 GB, free: 2.453 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.1403, allocations: 4.094 kB / 0.5626 GB, free: 2.449 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.322e-06/0.1403, allocations: 3.938 kB / 0.5626 GB, free: 2.445 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.1403, allocations: 3.984 kB / 0.5626 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.873e-05/0.1403, allocations: 3.938 kB / 0.5626 GB, free: 2.438 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.1403, allocations: 0 / 0.5626 GB, free: 2.438 MB / 414.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.0001023/0.1404, allocations: 135.5 kB / 0.5627 GB, free: 2.289 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.296e-05/0.1404, allocations: 7.938 kB / 0.5627 GB, free: 2.281 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.078e-06/0.1404, allocations: 7.109 kB / 0.5627 GB, free: 2.277 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.1404, allocations: 0 / 0.5627 GB, free: 2.277 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.1404, allocations: 4 kB / 0.5627 GB, free: 2.273 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.1404, allocations: 4 kB / 0.5627 GB, free: 2.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001154/0.1406, allocations: 145.7 kB / 0.5629 GB, free: 2.078 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.1406, allocations: 0 / 0.5629 GB, free: 2.078 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.1406, allocations: 3.938 kB / 0.5629 GB, free: 2.074 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.1406, allocations: 3.938 kB / 0.5629 GB, free: 2.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-06/0.1406, allocations: 0 / 0.5629 GB, free: 2.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.1406, allocations: 4 kB / 0.5629 GB, free: 2.066 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.1406, allocations: 0 / 0.5629 GB, free: 2.066 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001026/0.1407, allocations: 90.83 kB / 0.563 GB, free: 1.953 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.881e-05/0.1407, allocations: 81.11 kB / 0.563 GB, free: 1.855 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.51e-05/0.1407, allocations: 3.938 kB / 0.563 GB, free: 1.852 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.667e-06/0.1408, allocations: 0 / 0.563 GB, free: 1.852 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.414e-05/0.1408, allocations: 0 / 0.563 GB, free: 1.852 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-06/0.1408, allocations: 0 / 0.563 GB, free: 1.852 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.527e-05/0.1408, allocations: 83.22 kB / 0.5631 GB, free: 1.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1408, allocations: 4 kB / 0.5631 GB, free: 1.766 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003982/0.1412, allocations: 135.6 kB / 0.5632 GB, free: 1.633 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.0007542/0.142, allocations: 307.6 kB / 0.5635 GB, free: 1.324 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000123/0.1421, allocations: 67.28 kB / 0.5636 GB, free: 1.246 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1421, allocations: 0 / 0.5636 GB, free: 1.246 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.409e-05/0.1421, allocations: 59.47 kB / 0.5637 GB, free: 1.176 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001255/0.1423, allocations: 3.594 kB / 0.5637 GB, free: 1.176 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002168/0.1425, allocations: 110.8 kB / 0.5638 GB, free: 1.035 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003053/0.1428, allocations: 0.6729 MB / 0.5644 GB, free: 344 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.202e-05/0.1428, allocations: 7.438 kB / 0.5644 GB, free: 336 kB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1428, allocations: 0 / 0.5644 GB, free: 336 kB / 414.1 MB Notification: Performance of Templates: time 0.006661/0.1494, allocations: 3.323 MB / 0.5677 GB, free: 13 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 9.30527730891481]