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.001323/0.001323, allocations: 106.1 kB / 18.3 MB, free: 4.887 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.001128/0.001129, allocations: 195.3 kB / 19.23 MB, free: 3.961 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.358/1.358, allocations: 222.9 MB / 242.9 MB, free: 15.21 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.2174/0.2174, allocations: 44.17 MB / 337.3 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 65.02 kB / 409.1 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1123, allocations: 60.83 MB / 469.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001732/0.1141, allocations: 0.492 MB / 470.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002753/0.1168, allocations: 2.026 MB / 472.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.543e-05/0.1169, allocations: 3.938 kB / 472.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.583e-05/0.1169, allocations: 0 / 472.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.753e-06/0.1169, allocations: 0 / 472.4 MB, free: 11.82 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.001383/0.1183, allocations: 0.4975 MB / 472.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.81e-05/0.1184, allocations: 8 kB / 473 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.614e-05/0.1184, allocations: 3.984 kB / 473 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.449e-05/0.1185, allocations: 0 / 473 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.667e-05/0.1185, allocations: 0 / 473 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.701e-06/0.1185, allocations: 0 / 473 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000966/0.1195, allocations: 0.6044 MB / 473.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.823e-06/0.1195, allocations: 4 kB / 473.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.812e-05/0.1195, allocations: 4 kB / 473.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005276/0.12, allocations: 379.3 kB / 473.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.12, allocations: 0 / 473.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1201, allocations: 0 / 473.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.1201, allocations: 4 kB / 473.9 MB, free: 10.33 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.00042/0.1205, allocations: 413.5 kB / 474.3 MB, free: 9.871 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.1205, allocations: 15.97 kB / 474.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.261e-05/0.1206, allocations: 0.9375 kB / 474.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.659e-05/0.1207, allocations: 164.4 kB / 474.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.1207, allocations: 4.359 kB / 474.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.1207, allocations: 384 / 474.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.875e-05/0.1208, allocations: 41.95 kB / 474.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-06/0.1208, allocations: 0 / 474.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-06/0.1208, allocations: 4 kB / 474.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.309e-06/0.1208, allocations: 0 / 474.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.604e-05/0.1209, allocations: 0 / 474.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001338/0.121, allocations: 153.7 kB / 474.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.054e-05/0.1211, allocations: 22.5 kB / 474.7 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.518e-05/0.1211, allocations: 8.953 kB / 474.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.508e-06/0.1211, allocations: 0 / 474.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.862e-05/0.1211, allocations: 64.2 kB / 474.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.1211, allocations: 0 / 474.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001645/0.1213, allocations: 63.41 kB / 474.9 MB, free: 9.207 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.1214, allocations: 85.03 kB / 475 MB, free: 9.105 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.572e-05/0.1214, allocations: 89.86 kB / 475.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.201e-05/0.1214, allocations: 25.7 kB / 475.1 MB, free: 8.977 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.415e-05/0.1215, allocations: 80.14 kB / 475.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.1215, allocations: 4 kB / 475.2 MB, free: 8.891 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.664e-05/0.1215, allocations: 13.84 kB / 475.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.1216, allocations: 314.8 kB / 475.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.12e-05/0.1217, allocations: 4 kB / 475.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.28e-06/0.1217, allocations: 0 / 475.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.507e-05/0.1217, allocations: 64.27 kB / 475.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1217, allocations: 0 / 475.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.862e-05/0.1218, allocations: 63.39 kB / 475.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.235e-05/0.1219, allocations: 33.64 kB / 475.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-06/0.1219, allocations: 8.031 kB / 475.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.1219, allocations: 0 / 475.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.1219, allocations: 0 / 475.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.1219, allocations: 0 / 475.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.859e-05/0.1219, allocations: 4 kB / 475.7 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-06/0.122, allocations: 0 / 475.7 MB, free: 8.348 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 7.836e-05/0.122, allocations: 139.5 kB / 475.8 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.228e-05/0.1221, allocations: 7.938 kB / 475.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.105e-05/0.1221, allocations: 7.078 kB / 475.8 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.1221, allocations: 4 kB / 475.8 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.1221, allocations: 4 kB / 475.8 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.1221, allocations: 3.938 kB / 475.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.191e-05/0.1222, allocations: 145.7 kB / 476 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1222, allocations: 0 / 476 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.003e-06/0.1222, allocations: 4 kB / 476 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1222, allocations: 3.938 kB / 476 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.1222, allocations: 0 / 476 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1222, allocations: 0 / 476 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1222, allocations: 0 / 476 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001012/0.1223, allocations: 102.7 kB / 476.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.924e-05/0.1224, allocations: 77.11 kB / 476.1 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.1224, allocations: 3.938 kB / 476.1 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.807e-06/0.1224, allocations: 0 / 476.1 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.372e-05/0.1224, allocations: 4 kB / 476.1 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.1224, allocations: 0 / 476.1 MB, free: 7.742 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.621e-05/0.1225, allocations: 75.28 kB / 476.2 MB, free: 7.668 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1225, allocations: 4.031 kB / 476.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004041/0.1229, allocations: 128 kB / 476.4 MB, free: 7.539 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.0007187/0.1236, allocations: 307.7 kB / 476.7 MB, free: 7.238 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001077/0.1237, allocations: 59.39 kB / 476.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1237, allocations: 12 kB / 476.7 MB, free: 7.156 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.022e-05/0.1238, allocations: 55.41 kB / 476.8 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/0.1239, allocations: 7.984 kB / 476.8 MB, free: 7.082 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001942/0.1241, allocations: 106.6 kB / 476.9 MB, free: 6.945 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000236/0.1244, allocations: 0.6729 MB / 477.6 MB, free: 6.246 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.048e-05/0.1244, allocations: 7.438 kB / 477.6 MB, free: 6.238 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1244, allocations: 0 / 477.6 MB, free: 6.238 MB / 350.1 MB Notification: Performance of Templates: time 0.005624/0.13, allocations: 3.23 MB / 480.8 MB, free: 3.004 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