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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 110.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 201.9 kB / 18.78 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 222.9 MB / 242.4 MB, free: 15.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2015/0.2015, allocations: 44.17 MB / 336.8 MB, free: 2.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 68.42 kB / 408.4 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1169, allocations: 60.82 MB / 469.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.002114/0.119, allocations: 0.5606 MB / 469.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003389/0.1224, allocations: 2.104 MB / 471.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.216e-05/0.1225, allocations: 0 / 471.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.552e-05/0.1225, allocations: 0 / 471.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.52e-06/0.1226, allocations: 0 / 471.8 MB, free: 12.16 MB / 350.1 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.00151/0.1241, allocations: 422.4 kB / 472.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.022e-05/0.1241, allocations: 0 / 472.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.812e-05/0.1242, allocations: 11.98 kB / 472.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.593e-05/0.1242, allocations: 0 / 472.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.739e-05/0.1242, allocations: 0 / 472.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.744e-06/0.1242, allocations: 0 / 472.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001386/0.1256, allocations: 0.6355 MB / 472.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.123e-05/0.1256, allocations: 7.984 kB / 472.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.633e-05/0.1257, allocations: 4 kB / 472.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004837/0.1262, allocations: 243.5 kB / 473.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1262, allocations: 0 / 473.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1262, allocations: 4 kB / 473.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.1262, allocations: 0 / 473.2 MB, free: 10.84 MB / 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.0005556/0.1268, allocations: 416.4 kB / 473.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1268, allocations: 12.03 kB / 473.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.318e-05/0.1268, allocations: 0.9375 kB / 473.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.34e-05/0.1269, allocations: 164.3 kB / 473.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.975e-06/0.1269, allocations: 384 / 473.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.288e-06/0.127, allocations: 384 / 473.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.042e-05/0.127, allocations: 38 kB / 473.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.1271, allocations: 4 kB / 473.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-06/0.1271, allocations: 0 / 473.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.1271, allocations: 0 / 473.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.028e-05/0.1271, allocations: 4 kB / 473.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001425/0.1273, allocations: 149.6 kB / 473.9 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.809e-05/0.1273, allocations: 18.52 kB / 473.9 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.666e-05/0.1273, allocations: 12.94 kB / 474 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.911e-06/0.1273, allocations: 0 / 474 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.916e-05/0.1274, allocations: 64.2 kB / 474 MB, free: 9.809 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.252e-06/0.1274, allocations: 0 / 474 MB, free: 9.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001644/0.1276, allocations: 67.39 kB / 474.1 MB, free: 9.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/0.1276, allocations: 77.11 kB / 474.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.73e-05/0.1277, allocations: 93.84 kB / 474.3 MB, free: 9.535 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.185e-05/0.1277, allocations: 25.7 kB / 474.3 MB, free: 9.504 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.726e-05/0.1278, allocations: 84.14 kB / 474.4 MB, free: 9.418 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.604e-05/0.1278, allocations: 8.062 kB / 474.4 MB, free: 9.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.008e-05/0.1278, allocations: 13.72 kB / 474.4 MB, free: 9.391 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.1279, allocations: 310.8 kB / 474.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.478e-06/0.128, allocations: 4 kB / 474.7 MB, free: 9.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.761e-06/0.128, allocations: 0 / 474.7 MB, free: 9.074 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.968e-05/0.128, allocations: 60.27 kB / 474.7 MB, free: 9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.128, allocations: 0 / 474.7 MB, free: 9 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.394e-05/0.1281, allocations: 67.48 kB / 474.8 MB, free: 8.922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.346e-05/0.1282, allocations: 37.64 kB / 474.9 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.1282, allocations: 4 kB / 474.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.1282, allocations: 0 / 474.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.544e-06/0.1282, allocations: 0 / 474.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.1282, allocations: 11.86 kB / 474.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.75e-05/0.1282, allocations: 4 kB / 474.9 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.1282, allocations: 0 / 474.9 MB, free: 8.859 MB / 350.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.0001603/0.1284, allocations: 135.5 kB / 475 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.149e-05/0.1284, allocations: 7.938 kB / 475 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.117e-05/0.1284, allocations: 11.08 kB / 475 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.1284, allocations: 0 / 475 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1285, allocations: 0 / 475 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.1285, allocations: 0 / 475 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001062/0.1286, allocations: 141.7 kB / 475.2 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.1286, allocations: 3.984 kB / 475.2 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.973e-06/0.1286, allocations: 7.984 kB / 475.2 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.1286, allocations: 3.938 kB / 475.2 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.1286, allocations: 0 / 475.2 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.1286, allocations: 0 / 475.2 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1286, allocations: 0 / 475.2 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.284e-05/0.1287, allocations: 98.73 kB / 475.3 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.704e-05/0.1288, allocations: 77.11 kB / 475.3 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.1288, allocations: 7.938 kB / 475.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.122e-05/0.1288, allocations: 3.938 kB / 475.4 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.284e-05/0.1288, allocations: 7.938 kB / 475.4 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.1288, allocations: 0 / 475.4 MB, free: 8.254 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.703e-05/0.1289, allocations: 79.31 kB / 475.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1289, allocations: 0 / 475.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000462/0.1293, allocations: 128 kB / 475.6 MB, free: 8.051 MB / 350.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.0008358/0.1302, allocations: 296.9 kB / 475.9 MB, free: 7.758 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.389e-05/0.1303, allocations: 67.39 kB / 475.9 MB, free: 7.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1303, allocations: 0 / 475.9 MB, free: 7.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.335e-05/0.1303, allocations: 55.41 kB / 476 MB, free: 7.613 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.1305, allocations: 4 kB / 476 MB, free: 7.609 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002032/0.1307, allocations: 100.5 kB / 476.1 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003413/0.131, allocations: 0.677 MB / 476.8 MB, free: 6.773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.423e-05/0.1311, allocations: 7.438 kB / 476.8 MB, free: 6.766 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1311, allocations: 3.938 kB / 476.8 MB, free: 6.762 MB / 350.1 MB Notification: Performance of Templates: time 0.006253/0.1373, allocations: 3.226 MB / 480 MB, free: 3.531 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches