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.001156/0.001156, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001037/0.001037, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.315/1.315, allocations: 222.9 MB / 242.2 MB, free: 15.22 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.2042/0.2042, allocations: 44.19 MB / 336.6 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 59.58 kB / 408.4 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1251, allocations: 60.84 MB / 469.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00204/0.1272, allocations: 491.7 kB / 469.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00289/0.1301, allocations: 2.04 MB / 471.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.424e-05/0.1302, allocations: 0 / 471.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.519e-05/0.1302, allocations: 0 / 471.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.538e-06/0.1302, allocations: 3.938 kB / 471.8 MB, free: 11.84 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.001372/0.1316, allocations: 0.4948 MB / 472.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.6e-05/0.1316, allocations: 8 kB / 472.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.586e-05/0.1317, allocations: 4 kB / 472.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.763e-05/0.1317, allocations: 4 kB / 472.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.558e-05/0.1317, allocations: 0 / 472.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.494e-06/0.1318, allocations: 3.984 kB / 472.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009081/0.1327, allocations: 0.6005 MB / 472.9 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.378e-06/0.1327, allocations: 4 kB / 472.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.085e-05/0.1327, allocations: 3.984 kB / 472.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005253/0.1333, allocations: 375.3 kB / 473.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1333, allocations: 3.984 kB / 473.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1333, allocations: 0 / 473.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.1333, allocations: 4 kB / 473.3 MB, free: 10.34 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.0004297/0.1337, allocations: 413.5 kB / 473.7 MB, free: 9.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.1338, allocations: 12.03 kB / 473.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.505e-05/0.1338, allocations: 0.9375 kB / 473.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.902e-05/0.1339, allocations: 160.4 kB / 473.9 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.1339, allocations: 4.375 kB / 473.9 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.833e-06/0.1339, allocations: 4.312 kB / 473.9 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.51e-05/0.134, allocations: 34.02 kB / 473.9 MB, free: 9.625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.1341, allocations: 0 / 473.9 MB, free: 9.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.1341, allocations: 4 kB / 473.9 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.1341, allocations: 7.922 kB / 473.9 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.65e-05/0.1341, allocations: 4 kB / 473.9 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001165/0.1342, allocations: 145.7 kB / 474 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.549e-05/0.1343, allocations: 18.61 kB / 474.1 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.354e-05/0.1343, allocations: 4.859 kB / 474.1 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.755e-06/0.1343, allocations: 0 / 474.1 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.026e-05/0.1344, allocations: 60.27 kB / 474.1 MB, free: 9.309 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.1344, allocations: 4 kB / 474.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001664/0.1345, allocations: 71.33 kB / 474.2 MB, free: 9.223 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.015e-05/0.1346, allocations: 81.11 kB / 474.3 MB, free: 9.125 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.413e-05/0.1347, allocations: 89.86 kB / 474.4 MB, free: 9.027 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.1347, allocations: 25.7 kB / 474.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.13e-05/0.1347, allocations: 80.14 kB / 474.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.1348, allocations: 3.938 kB / 474.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.015e-05/0.1348, allocations: 17.72 kB / 474.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1349, allocations: 315 kB / 474.8 MB, free: 8.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.799e-06/0.1349, allocations: 4 kB / 474.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.639e-06/0.1349, allocations: 0 / 474.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.412e-05/0.135, allocations: 64.2 kB / 474.9 MB, free: 8.488 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.135, allocations: 0 / 474.9 MB, free: 8.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.204e-05/0.1351, allocations: 67.39 kB / 474.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.197e-05/0.1351, allocations: 33.64 kB / 475 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1351, allocations: 3.984 kB / 475 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.1351, allocations: 4 kB / 475 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-07/0.1352, allocations: 4.094 kB / 475 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.1352, allocations: 0 / 475 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.48e-05/0.1352, allocations: 0 / 475 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.1352, allocations: 4 kB / 475 MB, free: 8.355 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 8.62e-05/0.1353, allocations: 135.5 kB / 475.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.187e-06/0.1353, allocations: 3.938 kB / 475.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.126e-05/0.1353, allocations: 11.06 kB / 475.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1353, allocations: 0 / 475.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.1353, allocations: 3.938 kB / 475.1 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.1353, allocations: 4 kB / 475.1 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.408e-05/0.1354, allocations: 145.7 kB / 475.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1354, allocations: 0 / 475.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.1354, allocations: 0 / 475.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1354, allocations: 3.938 kB / 475.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.062e-06/0.1355, allocations: 0 / 475.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.1355, allocations: 0 / 475.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-05/0.1355, allocations: 11.92 kB / 475.3 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.306e-05/0.1356, allocations: 90.75 kB / 475.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.001e-05/0.1356, allocations: 77.11 kB / 475.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.767e-05/0.1356, allocations: 11.92 kB / 475.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.843e-05/0.1357, allocations: 4 kB / 475.5 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.019e-05/0.1357, allocations: 0 / 475.5 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.1357, allocations: 0 / 475.5 MB, free: 7.754 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.377e-05/0.1357, allocations: 75.28 kB / 475.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1357, allocations: 0 / 475.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003665/0.1361, allocations: 120 kB / 475.7 MB, free: 7.562 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.0006923/0.1368, allocations: 315.8 kB / 476 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.245e-05/0.1369, allocations: 71.28 kB / 476 MB, free: 7.172 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1369, allocations: 0 / 476 MB, free: 7.172 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.515e-05/0.1369, allocations: 59.39 kB / 476.1 MB, free: 7.102 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.1371, allocations: 6.469 kB / 476.1 MB, free: 7.098 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001797/0.1373, allocations: 80.94 kB / 476.2 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.1375, allocations: 0.669 MB / 476.9 MB, free: 6.297 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.29e-06/0.1375, allocations: 4 kB / 476.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.049e-05/0.1375, allocations: 7.438 kB / 476.9 MB, free: 6.285 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1375, allocations: 0 / 476.9 MB, free: 6.285 MB / 350.1 MB Notification: Performance of Templates: time 0.006819/0.1444, allocations: 3.413 MB / 480.3 MB, free: 2.871 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/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