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.001509/0.001509, allocations: 108.2 kB / 18.39 MB, free: 4.762 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.001807/0.001807, allocations: 182.9 kB / 19.32 MB, free: 3.832 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.38/1.38, allocations: 222.9 MB / 243 MB, free: 15.16 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.1988/0.1988, allocations: 44.18 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 60.56 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1149, allocations: 60.83 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001682/0.1166, allocations: 0.4905 MB / 471.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002622/0.1192, allocations: 2.034 MB / 473.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.517e-05/0.1193, allocations: 0 / 473.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.001e-05/0.1193, allocations: 0 / 473.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.278e-06/0.1193, allocations: 8 kB / 473.2 MB, free: 11.09 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.001272/0.1206, allocations: 0.4982 MB / 473.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.899e-05/0.1206, allocations: 0 / 473.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.789e-05/0.1207, allocations: 4 kB / 473.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.315e-05/0.1207, allocations: 0 / 473.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.865e-05/0.1207, allocations: 7.984 kB / 473.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.762e-06/0.1207, allocations: 0 / 473.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009102/0.1217, allocations: 0.6083 MB / 474.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.868e-06/0.1217, allocations: 0 / 474.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.227e-05/0.1217, allocations: 3.984 kB / 474.4 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005827/0.1223, allocations: 379.3 kB / 474.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1223, allocations: 0 / 474.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1223, allocations: 0 / 474.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.573e-06/0.1223, allocations: 7.984 kB / 474.7 MB, free: 9.594 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.0003814/0.1227, allocations: 409.2 kB / 475.1 MB, free: 9.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.1228, allocations: 8.031 kB / 475.1 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.2e-05/0.1228, allocations: 4.938 kB / 475.1 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.796e-05/0.1229, allocations: 164.4 kB / 475.3 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.557e-06/0.1229, allocations: 384 / 475.3 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.566e-06/0.1229, allocations: 384 / 475.3 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.937e-05/0.123, allocations: 41.95 kB / 475.3 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.75e-06/0.123, allocations: 7.938 kB / 475.4 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.396e-06/0.123, allocations: 4 kB / 475.4 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.123, allocations: 0 / 475.4 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.603e-05/0.123, allocations: 3.984 kB / 475.4 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001105/0.1232, allocations: 145.7 kB / 475.5 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.084e-05/0.1232, allocations: 14.58 kB / 475.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.501e-05/0.1232, allocations: 12.8 kB / 475.5 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.032e-06/0.1232, allocations: 4.031 kB / 475.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.1233, allocations: 68.2 kB / 475.6 MB, free: 8.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1233, allocations: 0 / 475.6 MB, free: 8.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001548/0.1234, allocations: 63.39 kB / 475.7 MB, free: 8.477 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.779e-05/0.1235, allocations: 77.11 kB / 475.7 MB, free: 8.383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.147e-05/0.1235, allocations: 89.86 kB / 475.8 MB, free: 8.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.052e-05/0.1236, allocations: 25.7 kB / 475.9 MB, free: 8.254 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.587e-05/0.1236, allocations: 84.14 kB / 475.9 MB, free: 8.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.1236, allocations: 128 / 475.9 MB, free: 8.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.598e-05/0.1236, allocations: 17.72 kB / 476 MB, free: 8.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.969e-05/0.1237, allocations: 314.8 kB / 476.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.009e-05/0.1238, allocations: 0 / 476.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.384e-06/0.1238, allocations: 7.938 kB / 476.3 MB, free: 7.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.035e-05/0.1238, allocations: 56.27 kB / 476.3 MB, free: 7.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.1238, allocations: 4 kB / 476.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.593e-05/0.1239, allocations: 59.41 kB / 476.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.1239, allocations: 45.72 kB / 476.4 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.1239, allocations: 0 / 476.4 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.124, allocations: 0 / 476.4 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.124, allocations: 0 / 476.4 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.124, allocations: 0 / 476.4 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.401e-05/0.124, allocations: 0 / 476.4 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.124, allocations: 4 kB / 476.4 MB, free: 7.621 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 6.845e-05/0.1241, allocations: 131.5 kB / 476.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.138e-06/0.1241, allocations: 7.875 kB / 476.6 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.839e-06/0.1241, allocations: 11.08 kB / 476.6 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.1241, allocations: 7.984 kB / 476.6 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.1241, allocations: 0 / 476.6 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.1241, allocations: 0 / 476.6 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.937e-05/0.1242, allocations: 149.6 kB / 476.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1242, allocations: 0 / 476.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1242, allocations: 0 / 476.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.1242, allocations: 3.938 kB / 476.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-06/0.1242, allocations: 4 kB / 476.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1243, allocations: 0 / 476.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1243, allocations: 0 / 476.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.636e-05/0.1243, allocations: 98.73 kB / 476.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.716e-05/0.1244, allocations: 77.11 kB / 476.9 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.1244, allocations: 7.922 kB / 476.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.012e-05/0.1244, allocations: 4 kB / 476.9 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.035e-05/0.1244, allocations: 3.984 kB / 476.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-06/0.1244, allocations: 4 kB / 476.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.092e-05/0.1245, allocations: 83.25 kB / 477 MB, free: 6.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1245, allocations: 7.938 kB / 477 MB, free: 6.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000352/0.1248, allocations: 120 kB / 477.1 MB, free: 6.805 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.0006333/0.1255, allocations: 303.6 kB / 477.4 MB, free: 6.504 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.478e-05/0.1256, allocations: 59.41 kB / 477.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1256, allocations: 0 / 477.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.714e-05/0.1256, allocations: 59.34 kB / 477.6 MB, free: 6.363 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001237/0.1258, allocations: 6.484 kB / 477.6 MB, free: 6.359 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000156/0.1259, allocations: 80.94 kB / 477.6 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003782/0.1263, allocations: 0.6729 MB / 478.3 MB, free: 5.555 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.699e-06/0.1263, allocations: 0 / 478.3 MB, free: 5.555 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.006e-05/0.1263, allocations: 7.438 kB / 478.3 MB, free: 5.547 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1263, allocations: 0 / 478.3 MB, free: 5.547 MB / 350.1 MB Notification: Performance of Templates: time 0.006423/0.1328, allocations: 3.418 MB / 481.7 MB, free: 2.129 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 -s gbode -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