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.0009745/0.0009743, allocations: 94.91 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009517/0.0009516, allocations: 206.6 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 227.7 MB / 247.5 MB, free: 11.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1945/0.1945, allocations: 46.18 MB / 345.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002694/0.0002697, allocations: 8 kB / 420.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.118, allocations: 63.56 MB / 483.7 MB, free: 4.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0006662/0.1187, allocations: 227 kB / 484 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003256/0.1219, allocations: 2.144 MB / 486.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.116e-05/0.122, allocations: 0 / 486.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.628e-05/0.122, allocations: 0 / 486.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.581e-06/0.122, allocations: 0 / 486.1 MB, free: 1.801 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.00143/0.1235, allocations: 430.4 kB / 486.5 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.889e-05/0.1235, allocations: 4 kB / 486.5 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.428e-05/0.1236, allocations: 0 / 486.5 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.78e-05/0.1236, allocations: 0 / 486.5 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.994e-05/0.1236, allocations: 0 / 486.5 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.142e-06/0.1236, allocations: 0 / 486.5 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001306/0.1249, allocations: 0.6551 MB / 487.2 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.035e-05/0.1249, allocations: 0 / 487.2 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.909e-05/0.125, allocations: 33.62 kB / 487.2 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005219/0.1255, allocations: 255.5 kB / 487.5 MB, free: 444 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1255, allocations: 0 / 487.5 MB, free: 444 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1255, allocations: 0 / 487.5 MB, free: 444 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1256, allocations: 0 / 487.5 MB, free: 444 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.0005173/0.1261, allocations: 417.5 kB / 487.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.1261, allocations: 12.88 kB / 487.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.529e-05/0.1262, allocations: 4.922 kB / 487.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/0.1263, allocations: 160.4 kB / 488 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.1263, allocations: 384 / 488 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.076e-05/0.1263, allocations: 4.359 kB / 488 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.227e-05/0.1264, allocations: 38.02 kB / 488.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.1264, allocations: 0 / 488.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.1265, allocations: 0 / 488.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1265, allocations: 0 / 488.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.856e-05/0.1265, allocations: 4 kB / 488.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001385/0.1266, allocations: 153.6 kB / 488.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.988e-05/0.1267, allocations: 14.58 kB / 488.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.561e-05/0.1267, allocations: 12.95 kB / 488.3 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.673e-06/0.1267, allocations: 0 / 488.3 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.732e-05/0.1268, allocations: 60.2 kB / 488.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.1268, allocations: 0 / 488.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001789/0.127, allocations: 75.31 kB / 488.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.127, allocations: 77.11 kB / 488.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.74e-05/0.1271, allocations: 89.86 kB / 488.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.208e-05/0.1271, allocations: 25.83 kB / 488.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.507e-05/0.1271, allocations: 88.14 kB / 488.7 MB, free: 15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.1272, allocations: 0 / 488.7 MB, free: 15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.659e-05/0.1272, allocations: 9.719 kB / 488.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.1273, allocations: 310.8 kB / 489 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.718e-06/0.1273, allocations: 0 / 489 MB, free: 14.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.014e-05/0.1273, allocations: 8 kB / 489 MB, free: 14.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.95e-05/0.1274, allocations: 60.25 kB / 489 MB, free: 14.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.1274, allocations: 4 kB / 489.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.78e-05/0.1275, allocations: 71.28 kB / 489.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.465e-05/0.1276, allocations: 40.14 kB / 489.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.1276, allocations: 0 / 489.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.1276, allocations: 0 / 489.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.727e-06/0.1276, allocations: 3.984 kB / 489.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.1276, allocations: 0 / 489.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.695e-05/0.1276, allocations: 0 / 489.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.1276, allocations: 4 kB / 489.2 MB, free: 14.45 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 9.409e-05/0.1277, allocations: 143.6 kB / 489.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.026e-05/0.1278, allocations: 3.938 kB / 489.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.388e-06/0.1278, allocations: 3.125 kB / 489.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-06/0.1278, allocations: 0 / 489.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1278, allocations: 0 / 489.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.1278, allocations: 4 kB / 489.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001054/0.1279, allocations: 145.7 kB / 489.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1279, allocations: 0 / 489.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.052e-06/0.1279, allocations: 0 / 489.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.1279, allocations: 3.938 kB / 489.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.961e-06/0.1279, allocations: 0 / 489.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.128, allocations: 8 kB / 489.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.128, allocations: 0 / 489.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001113/0.1281, allocations: 90.77 kB / 489.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.35e-05/0.1281, allocations: 85.02 kB / 489.6 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.1281, allocations: 3.938 kB / 489.6 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.227e-06/0.1282, allocations: 0 / 489.6 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.59e-05/0.1282, allocations: 0 / 489.6 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-06/0.1282, allocations: 4.031 kB / 489.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.981e-05/0.1282, allocations: 79.28 kB / 489.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1282, allocations: 0 / 489.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005025/0.1287, allocations: 128 kB / 489.9 MB, free: 13.66 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.0008701/0.1296, allocations: 316.7 kB / 490.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001029/0.1297, allocations: 59.41 kB / 490.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1297, allocations: 0 / 490.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.306e-05/0.1298, allocations: 59.34 kB / 490.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000129/0.1299, allocations: 0 / 490.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000205/0.1301, allocations: 108.5 kB / 490.4 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/0.1304, allocations: 0.6692 MB / 491.1 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.56e-05/0.1304, allocations: 7.438 kB / 491.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1305, allocations: 4.125 kB / 491.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of Templates: time 0.006939/0.1374, allocations: 3.315 MB / 494.4 MB, free: 9.039 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 -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