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.001629/0.001629, allocations: 116.8 kB / 19.17 MB, free: 3.871 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.001853/0.001853, allocations: 206.6 kB / 22.12 MB, free: 0.9219 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.476/1.476, allocations: 230.3 MB / 255.2 MB, free: 15.23 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.229/0.229, allocations: 46.92 MB / 358.2 MB, free: 10.4 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.002267/0.002267, allocations: 75.88 kB / 0.4925 GB, free: 7.645 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1272, allocations: 66.01 MB / 0.557 GB, free: 5.504 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001687/0.1289, allocations: 0.4944 MB / 0.5574 GB, free: 5.004 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003162/0.1321, allocations: 2.115 MB / 0.5595 GB, free: 2.867 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.48e-05/0.1321, allocations: 0 / 0.5595 GB, free: 2.867 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.009e-05/0.1321, allocations: 0 / 0.5595 GB, free: 2.867 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.39e-06/0.1321, allocations: 0 / 0.5595 GB, free: 2.867 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.001371/0.1335, allocations: 0.5057 MB / 0.56 GB, free: 2.363 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.879e-05/0.1335, allocations: 8 kB / 0.56 GB, free: 2.355 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.828e-05/0.1336, allocations: 0 / 0.56 GB, free: 2.355 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.415e-05/0.1336, allocations: 0 / 0.56 GB, free: 2.355 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.061e-05/0.1336, allocations: 3.938 kB / 0.56 GB, free: 2.352 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.931e-06/0.1336, allocations: 4 kB / 0.56 GB, free: 2.348 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001106/0.1347, allocations: 0.6667 MB / 0.5607 GB, free: 1.68 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.394e-06/0.1347, allocations: 4 kB / 0.5607 GB, free: 1.676 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.825e-05/0.1347, allocations: 4 kB / 0.5607 GB, free: 1.672 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005839/0.1353, allocations: 383.1 kB / 0.561 GB, free: 1.297 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1353, allocations: 3.938 kB / 0.561 GB, free: 1.293 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1353, allocations: 0 / 0.561 GB, free: 1.293 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.1353, allocations: 0 / 0.561 GB, free: 1.293 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.0004892/0.1358, allocations: 424.4 kB / 0.5615 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.1359, allocations: 12.03 kB / 0.5615 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.532e-05/0.1359, allocations: 0.9375 kB / 0.5615 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.136, allocations: 168.3 kB / 0.5616 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.136, allocations: 384 / 0.5616 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.253e-06/0.136, allocations: 384 / 0.5616 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.898e-05/0.1361, allocations: 38 kB / 0.5617 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.1361, allocations: 0 / 0.5617 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.1361, allocations: 0 / 0.5617 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.1361, allocations: 4 kB / 0.5617 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.001e-05/0.1361, allocations: 7.984 kB / 0.5617 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001563/0.1363, allocations: 141.7 kB / 0.5618 GB, free: 376 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.746e-05/0.1364, allocations: 22.52 kB / 0.5618 GB, free: 344 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.578e-05/0.1364, allocations: 12.89 kB / 0.5618 GB, free: 328 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.063e-06/0.1364, allocations: 3.938 kB / 0.5618 GB, free: 324 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.671e-05/0.1364, allocations: 64.2 kB / 0.5619 GB, free: 244 kB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1364, allocations: 0 / 0.5619 GB, free: 244 kB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001754/0.1366, allocations: 71.33 kB / 0.562 GB, free: 160 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.403e-05/0.1367, allocations: 77.11 kB / 0.5621 GB, free: 64 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.696e-05/0.1367, allocations: 93.86 kB / 0.5621 GB, free: 15.96 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.627e-05/0.1368, allocations: 29.7 kB / 0.5622 GB, free: 15.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.143e-05/0.1368, allocations: 84.08 kB / 0.5622 GB, free: 15.84 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.893e-05/0.1368, allocations: 0 / 0.5622 GB, free: 15.84 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.821e-05/0.1368, allocations: 9.844 kB / 0.5623 GB, free: 15.82 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.137, allocations: 322.8 kB / 0.5626 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.177e-06/0.137, allocations: 0 / 0.5626 GB, free: 15.5 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.815e-06/0.137, allocations: 4 kB / 0.5626 GB, free: 15.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.35e-05/0.1371, allocations: 64.27 kB / 0.5626 GB, free: 15.42 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1371, allocations: 0 / 0.5626 GB, free: 15.42 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.952e-05/0.1371, allocations: 59.41 kB / 0.5627 GB, free: 15.35 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.649e-05/0.1372, allocations: 37.62 kB / 0.5627 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.1372, allocations: 4.094 kB / 0.5627 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.1372, allocations: 0 / 0.5627 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.1372, allocations: 0 / 0.5627 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.977e-06/0.1372, allocations: 3.938 kB / 0.5627 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.473e-05/0.1372, allocations: 4 kB / 0.5627 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.909e-06/0.1372, allocations: 3.984 kB / 0.5627 GB, free: 15.29 MB / 430.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 9.744e-05/0.1373, allocations: 131.5 kB / 0.5629 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.149e-05/0.1373, allocations: 7.938 kB / 0.5629 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.015e-06/0.1373, allocations: 3.125 kB / 0.5629 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.1373, allocations: 4 kB / 0.5629 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1373, allocations: 3.984 kB / 0.5629 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1373, allocations: 0 / 0.5629 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000113/0.1375, allocations: 145.7 kB / 0.563 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1375, allocations: 4 kB / 0.563 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.9e-07/0.1375, allocations: 0 / 0.563 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.1375, allocations: 3.938 kB / 0.563 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-06/0.1375, allocations: 0 / 0.563 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.1375, allocations: 4 kB / 0.563 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1375, allocations: 0 / 0.563 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.1376, allocations: 98.77 kB / 0.5631 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.252e-05/0.1376, allocations: 77.11 kB / 0.5632 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.1376, allocations: 3.938 kB / 0.5632 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.33e-05/0.1376, allocations: 11.92 kB / 0.5632 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.967e-06/0.1377, allocations: 0 / 0.5632 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-06/0.1377, allocations: 3.938 kB / 0.5632 GB, free: 14.69 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.278e-05/0.1377, allocations: 75.28 kB / 0.5633 GB, free: 14.62 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1377, allocations: 0 / 0.5633 GB, free: 14.62 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004074/0.1381, allocations: 135.6 kB / 0.5634 GB, free: 14.48 MB / 430.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.000756/0.1389, allocations: 306.9 kB / 0.5637 GB, free: 14.18 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001003/0.139, allocations: 59.41 kB / 0.5638 GB, free: 14.11 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.139, allocations: 4.062 kB / 0.5638 GB, free: 14.11 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.988e-05/0.139, allocations: 59.39 kB / 0.5638 GB, free: 14.04 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001227/0.1391, allocations: 4 kB / 0.5638 GB, free: 14.03 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002127/0.1393, allocations: 102.8 kB / 0.5639 GB, free: 13.9 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.1396, allocations: 0.6728 MB / 0.5646 GB, free: 13.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.322e-05/0.1397, allocations: 7.438 kB / 0.5646 GB, free: 13.19 MB / 430.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1397, allocations: 7.938 kB / 0.5646 GB, free: 13.18 MB / 430.1 MB Notification: Performance of Templates: time 0.006251/0.1459, allocations: 3.332 MB / 0.5679 GB, free: 9.848 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 8.691249557989067]