Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001243/0.001243, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001038, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 247.5 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2015/0.2015, allocations: 46.1 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002441/0.002441, allocations: 77 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1208, allocations: 62.45 MB / 481.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001529/0.1224, allocations: 0.4988 MB / 482 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002673/0.1251, allocations: 2.096 MB / 484.1 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.618e-05/0.1251, allocations: 3.938 kB / 484.1 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.094e-05/0.1251, allocations: 4 kB / 484.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.629e-06/0.1252, allocations: 0 / 484.1 MB, free: 1.91 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001269/0.1264, allocations: 0.4982 MB / 484.6 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.217e-05/0.1265, allocations: 4 kB / 484.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.357e-05/0.1265, allocations: 0 / 484.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.248e-05/0.1265, allocations: 0 / 484.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.8e-05/0.1266, allocations: 7.938 kB / 484.6 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.761e-06/0.1266, allocations: 0 / 484.6 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009447/0.1275, allocations: 0.6317 MB / 485.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.416e-06/0.1275, allocations: 0 / 485.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.08e-05/0.1276, allocations: 3.984 kB / 485.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005048/0.1281, allocations: 383.3 kB / 485.6 MB, free: 400 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1281, allocations: 4 kB / 485.6 MB, free: 396 kB / 350.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.1281, allocations: 0 / 485.6 MB, free: 396 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.608e-06/0.1281, allocations: 3.938 kB / 485.6 MB, free: 392 kB / 350.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.0004039/0.1285, allocations: 413.2 kB / 486 MB, free: 15.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/0.1286, allocations: 8.031 kB / 486 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.585e-05/0.1286, allocations: 4.938 kB / 486 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.318e-05/0.1287, allocations: 168.3 kB / 486.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.415e-06/0.1287, allocations: 384 / 486.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.338e-06/0.1287, allocations: 384 / 486.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.294e-05/0.1288, allocations: 49.94 kB / 486.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.1288, allocations: 0 / 486.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.374e-06/0.1288, allocations: 0 / 486.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.1288, allocations: 0 / 486.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.588e-05/0.1289, allocations: 0 / 486.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001222/0.129, allocations: 149.7 kB / 486.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.446e-05/0.129, allocations: 18.52 kB / 486.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.523e-05/0.1291, allocations: 8.859 kB / 486.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.316e-06/0.1291, allocations: 8.094 kB / 486.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.577e-05/0.1291, allocations: 64.19 kB / 486.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1291, allocations: 3.938 kB / 486.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001524/0.1293, allocations: 59.41 kB / 486.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.9e-05/0.1293, allocations: 77.11 kB / 486.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.248e-05/0.1294, allocations: 89.86 kB / 486.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.099e-05/0.1294, allocations: 25.7 kB / 486.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.873e-05/0.1294, allocations: 84.27 kB / 486.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.717e-05/0.1295, allocations: 11.94 kB / 486.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.536e-05/0.1295, allocations: 13.7 kB / 486.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.1296, allocations: 310.8 kB / 487.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.318e-06/0.1296, allocations: 0 / 487.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.863e-06/0.1296, allocations: 8 kB / 487.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.055e-05/0.1297, allocations: 60.27 kB / 487.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1297, allocations: 0 / 487.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.299e-05/0.1298, allocations: 67.45 kB / 487.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/0.1298, allocations: 37.64 kB / 487.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.1298, allocations: 0 / 487.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.1298, allocations: 0 / 487.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.1298, allocations: 0 / 487.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.1298, allocations: 3.938 kB / 487.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.304e-05/0.1299, allocations: 0 / 487.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.1299, allocations: 4 kB / 487.3 MB, free: 14.4 MB / 366.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 6.796e-05/0.1299, allocations: 131.5 kB / 487.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.115e-05/0.13, allocations: 11.95 kB / 487.4 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.538e-06/0.13, allocations: 3.125 kB / 487.4 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.13, allocations: 4 kB / 487.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.13, allocations: 0 / 487.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.13, allocations: 0 / 487.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.436e-05/0.1301, allocations: 149.7 kB / 487.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.1301, allocations: 0 / 487.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1301, allocations: 0 / 487.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.1301, allocations: 7.938 kB / 487.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.1301, allocations: 3.984 kB / 487.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1301, allocations: 3.938 kB / 487.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1301, allocations: 4 kB / 487.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.964e-05/0.1302, allocations: 86.84 kB / 487.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.268e-05/0.1303, allocations: 85 kB / 487.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/0.1303, allocations: 7.875 kB / 487.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.718e-06/0.1303, allocations: 0 / 487.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.178e-05/0.1303, allocations: 3.938 kB / 487.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.1303, allocations: 4 kB / 487.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.223e-05/0.1304, allocations: 79.31 kB / 487.9 MB, free: 13.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1304, allocations: 0 / 487.9 MB, free: 13.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000356/0.1307, allocations: 128 kB / 488 MB, free: 13.59 MB / 366.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.0006192/0.1313, allocations: 297.4 kB / 488.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.051e-05/0.1314, allocations: 67.39 kB / 488.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1315, allocations: 0 / 488.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.913e-05/0.1315, allocations: 55.41 kB / 488.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001198/0.1316, allocations: 2.391 kB / 488.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001443/0.1318, allocations: 80.94 kB / 488.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002061/0.132, allocations: 0.6768 MB / 489.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.448e-06/0.132, allocations: 3.938 kB / 489.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.544e-06/0.132, allocations: 7.438 kB / 489.2 MB, free: 12.33 MB / 366.1 MB Notification: Performance of SimCode: time 1.483e-06/0.132, allocations: 4.125 kB / 489.2 MB, free: 12.33 MB / 366.1 MB Notification: Performance of Templates: time 0.006482/0.1385, allocations: 3.512 MB / 492.7 MB, free: 8.82 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches