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.00102/0.00102, allocations: 94.3 kB / 18 MB, free: 5.602 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.0013/0.0013, allocations: 176.7 kB / 18.91 MB, free: 4.738 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.578/1.578, allocations: 223.3 MB / 243 MB, free: 20 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.206/0.206, allocations: 44.25 MB / 338.3 MB, free: 2.605 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000401/0.000401, allocations: 8 kB / 411 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1159, allocations: 61.93 MB / 472.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0009262/0.1169, allocations: 227 kB / 473.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003399/0.1203, allocations: 2.072 MB / 475.2 MB, free: 11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.411e-05/0.1204, allocations: 4 kB / 475.2 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.342e-05/0.1204, allocations: 0 / 475.2 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.44e-06/0.1204, allocations: 4 kB / 475.2 MB, free: 10.99 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.001441/0.1218, allocations: 422.3 kB / 475.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.488e-05/0.1219, allocations: 3.984 kB / 475.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.236e-05/0.1219, allocations: 0 / 475.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.794e-05/0.122, allocations: 4 kB / 475.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.739e-05/0.122, allocations: 0 / 475.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.602e-06/0.122, allocations: 3.938 kB / 475.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001154/0.1231, allocations: 0.6394 MB / 476.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.186e-06/0.1232, allocations: 0 / 476.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.707e-05/0.1232, allocations: 25.7 kB / 476.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004947/0.1237, allocations: 255.5 kB / 476.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1237, allocations: 0 / 476.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1237, allocations: 0 / 476.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.1237, allocations: 0 / 476.6 MB, free: 9.648 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.0004783/0.1242, allocations: 409.5 kB / 477 MB, free: 9.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.1243, allocations: 8.031 kB / 477 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.515e-05/0.1243, allocations: 0.9375 kB / 477 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/0.1244, allocations: 172.3 kB / 477.1 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.1245, allocations: 384 / 477.1 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.205e-06/0.1245, allocations: 4.375 kB / 477.1 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.033e-05/0.1246, allocations: 30.02 kB / 477.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.1246, allocations: 0 / 477.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.1246, allocations: 0 / 477.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.1246, allocations: 7.938 kB / 477.2 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.713e-05/0.1246, allocations: 0 / 477.2 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001454/0.1248, allocations: 149.7 kB / 477.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.107e-05/0.1248, allocations: 26.55 kB / 477.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.462e-05/0.1248, allocations: 4.859 kB / 477.4 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.865e-06/0.1249, allocations: 0 / 477.4 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.758e-05/0.1249, allocations: 64.19 kB / 477.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1249, allocations: 4.062 kB / 477.4 MB, free: 8.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001763/0.1251, allocations: 59.39 kB / 477.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/0.1252, allocations: 89.23 kB / 477.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.729e-05/0.1252, allocations: 89.86 kB / 477.7 MB, free: 8.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.1252, allocations: 25.7 kB / 477.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.534e-05/0.1253, allocations: 80.14 kB / 477.8 MB, free: 8.227 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.171e-05/0.1253, allocations: 0 / 477.8 MB, free: 8.227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.213e-05/0.1253, allocations: 13.66 kB / 477.8 MB, free: 8.207 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1254, allocations: 310.8 kB / 478.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.009e-05/0.1255, allocations: 4 kB / 478.1 MB, free: 7.891 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.919e-06/0.1255, allocations: 0 / 478.1 MB, free: 7.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.886e-05/0.1255, allocations: 72.31 kB / 478.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1255, allocations: 0 / 478.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.274e-05/0.1256, allocations: 59.41 kB / 478.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.853e-05/0.1257, allocations: 33.64 kB / 478.2 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.1257, allocations: 0 / 478.2 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.1257, allocations: 0 / 478.2 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.242e-06/0.1257, allocations: 0 / 478.2 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.605e-06/0.1257, allocations: 3.938 kB / 478.2 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.097e-05/0.1257, allocations: 11.92 kB / 478.3 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.1258, allocations: 4.031 kB / 478.3 MB, free: 7.676 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 9.749e-05/0.1259, allocations: 131.5 kB / 478.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.347e-05/0.1259, allocations: 7.938 kB / 478.4 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.212e-05/0.1259, allocations: 7.078 kB / 478.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1259, allocations: 0 / 478.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.1259, allocations: 0 / 478.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1259, allocations: 0 / 478.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001187/0.1261, allocations: 153.7 kB / 478.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.1261, allocations: 0 / 478.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.92e-07/0.1261, allocations: 11.94 kB / 478.6 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.1261, allocations: 3.938 kB / 478.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.1261, allocations: 0 / 478.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1261, allocations: 0 / 478.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1261, allocations: 0 / 478.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000104/0.1262, allocations: 94.73 kB / 478.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.836e-05/0.1263, allocations: 81.09 kB / 478.7 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.1263, allocations: 3.938 kB / 478.7 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.778e-06/0.1263, allocations: 4.031 kB / 478.7 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.451e-05/0.1263, allocations: 7.938 kB / 478.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-06/0.1263, allocations: 0 / 478.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.048e-05/0.1264, allocations: 75.28 kB / 478.8 MB, free: 6.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1264, allocations: 0 / 478.8 MB, free: 6.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004839/0.1269, allocations: 128 kB / 479 MB, free: 6.871 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.0008048/0.1277, allocations: 306.3 kB / 479.3 MB, free: 6.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.397e-05/0.1278, allocations: 59.39 kB / 479.3 MB, free: 6.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.1278, allocations: 0 / 479.3 MB, free: 6.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.287e-05/0.1278, allocations: 55.41 kB / 479.4 MB, free: 6.434 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001251/0.128, allocations: 6.75 kB / 479.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001917/0.1282, allocations: 112.5 kB / 479.5 MB, free: 6.285 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.1284, allocations: 0.6731 MB / 480.2 MB, free: 5.586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.453e-05/0.1285, allocations: 11.44 kB / 480.2 MB, free: 5.574 MB / 350.1 MB Notification: Performance of SimCode: time 1.953e-06/0.1285, allocations: 0 / 480.2 MB, free: 5.574 MB / 350.1 MB Notification: Performance of Templates: time 0.006126/0.1346, allocations: 3.23 MB / 483.4 MB, free: 2.34 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