Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_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.001192/0.001192, allocations: 103.1 kB / 15.98 MB, free: 6.355 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.001383/0.001383, allocations: 190.6 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.677/1.677, allocations: 205.1 MB / 222.8 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4353/0.4353, allocations: 43.49 MB / 313.6 MB, free: 8.465 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 67.91 kB / 382.2 MB, free: 8.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1788/0.1808, allocations: 57.79 MB / 440 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.002951/0.1838, allocations: 0.562 MB / 440.6 MB, free: 14.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004154/0.188, allocations: 2.071 MB / 442.6 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.001e-05/0.1881, allocations: 0 / 442.6 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.264e-05/0.1881, allocations: 0 / 442.6 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.272e-06/0.1882, allocations: 0 / 442.6 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002033/0.1902, allocations: 463.1 kB / 443.1 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.374e-05/0.1903, allocations: 0 / 443.1 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.399e-05/0.1903, allocations: 11.98 kB / 443.1 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.475e-05/0.1904, allocations: 3.938 kB / 443.1 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.35e-05/0.1904, allocations: 3.984 kB / 443.1 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.129e-05/0.1904, allocations: 0 / 443.1 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001338/0.1918, allocations: 0.6394 MB / 443.7 MB, free: 10.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.282e-05/0.1918, allocations: 0 / 443.7 MB, free: 10.95 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.021e-05/0.1918, allocations: 0 / 443.7 MB, free: 10.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001085/0.1929, allocations: 403.1 kB / 444.1 MB, free: 10.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.054e-05/0.1929, allocations: 0 / 444.1 MB, free: 10.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.21e-06/0.193, allocations: 0 / 444.1 MB, free: 10.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.876e-06/0.193, allocations: 0 / 444.1 MB, free: 10.56 MB / 382.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.0008055/0.1938, allocations: 412.9 kB / 444.5 MB, free: 10.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.601e-05/0.1939, allocations: 11.89 kB / 444.6 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.893e-05/0.1939, allocations: 12.92 kB / 444.6 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.1941, allocations: 160.4 kB / 444.7 MB, free: 9.887 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.1941, allocations: 384 / 444.7 MB, free: 9.887 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.006e-05/0.1941, allocations: 384 / 444.7 MB, free: 9.887 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/0.1943, allocations: 42.02 kB / 444.8 MB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.1943, allocations: 0 / 444.8 MB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/0.1943, allocations: 0 / 444.8 MB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.1943, allocations: 7.875 kB / 444.8 MB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.876e-05/0.1943, allocations: 3.938 kB / 444.8 MB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002168/0.1946, allocations: 153.7 kB / 444.9 MB, free: 9.629 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.097e-05/0.1946, allocations: 14.58 kB / 444.9 MB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.2e-05/0.1947, allocations: 4.859 kB / 444.9 MB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.148e-05/0.1947, allocations: 4.094 kB / 444.9 MB, free: 9.594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.484e-05/0.1948, allocations: 64.2 kB / 445 MB, free: 9.516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.503e-06/0.1948, allocations: 0 / 445 MB, free: 9.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002277/0.195, allocations: 71.36 kB / 445.1 MB, free: 9.434 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.629e-05/0.1951, allocations: 81.11 kB / 445.2 MB, free: 9.336 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.185e-05/0.1951, allocations: 89.86 kB / 445.2 MB, free: 9.238 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.1952, allocations: 25.7 kB / 445.3 MB, free: 9.207 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.113e-05/0.1952, allocations: 80.14 kB / 445.4 MB, free: 9.125 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/0.1952, allocations: 8 kB / 445.4 MB, free: 9.117 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.438e-05/0.1953, allocations: 9.719 kB / 445.4 MB, free: 9.102 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.1954, allocations: 310.8 kB / 445.7 MB, free: 8.789 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.315e-05/0.1954, allocations: 0 / 445.7 MB, free: 8.789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.217e-06/0.1955, allocations: 11.98 kB / 445.7 MB, free: 8.777 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.021e-05/0.1955, allocations: 60.27 kB / 445.7 MB, free: 8.703 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1955, allocations: 0 / 445.7 MB, free: 8.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001083/0.1957, allocations: 63.34 kB / 445.8 MB, free: 8.629 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.066e-05/0.1957, allocations: 37.64 kB / 445.8 MB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.1957, allocations: 3.984 kB / 445.8 MB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.1958, allocations: 0 / 445.8 MB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.753e-06/0.1958, allocations: 0 / 445.8 MB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/0.1958, allocations: 96 / 445.8 MB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.359e-05/0.1958, allocations: 4 kB / 445.8 MB, free: 8.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.1958, allocations: 4 kB / 445.9 MB, free: 8.574 MB / 382.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.000109/0.196, allocations: 135.5 kB / 446 MB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.414e-05/0.196, allocations: 3.938 kB / 446 MB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.794e-05/0.196, allocations: 3.125 kB / 446 MB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.196, allocations: 4 kB / 446 MB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.196, allocations: 0 / 446 MB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.196, allocations: 0 / 446 MB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001546/0.1962, allocations: 153.7 kB / 446.1 MB, free: 8.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.1962, allocations: 0 / 446.1 MB, free: 8.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.243e-06/0.1962, allocations: 3.938 kB / 446.2 MB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.1962, allocations: 3.938 kB / 446.2 MB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.1962, allocations: 4 kB / 446.2 MB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1963, allocations: 0 / 446.2 MB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1963, allocations: 0 / 446.2 MB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001395/0.1964, allocations: 94.77 kB / 446.3 MB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.181e-05/0.1965, allocations: 85.08 kB / 446.3 MB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.722e-05/0.1965, allocations: 3.938 kB / 446.3 MB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.244e-05/0.1965, allocations: 4 kB / 446.3 MB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.283e-05/0.1965, allocations: 0 / 446.3 MB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.1965, allocations: 7.984 kB / 446.3 MB, free: 7.969 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.926e-05/0.1966, allocations: 75.28 kB / 446.4 MB, free: 7.895 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1966, allocations: 0 / 446.4 MB, free: 7.895 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005359/0.1971, allocations: 120 kB / 446.5 MB, free: 7.777 MB / 382.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.001002/0.1981, allocations: 322.1 kB / 446.9 MB, free: 7.461 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.1983, allocations: 55.41 kB / 446.9 MB, free: 7.395 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1983, allocations: 0 / 446.9 MB, free: 7.395 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.571e-05/0.1984, allocations: 59.34 kB / 447 MB, free: 7.324 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001577/0.1985, allocations: 3.984 kB / 447 MB, free: 7.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003199/0.1988, allocations: 101 kB / 447.1 MB, free: 7.195 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004113/0.1993, allocations: 0.669 MB / 447.7 MB, free: 6.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.339e-05/0.1993, allocations: 4 kB / 447.7 MB, free: 6.496 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.796e-05/0.1993, allocations: 7.438 kB / 447.7 MB, free: 6.488 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1993, allocations: 0 / 447.7 MB, free: 6.488 MB / 382.1 MB Notification: Performance of Templates: time 0.009196/0.2085, allocations: 3.418 MB / 451.2 MB, free: 3.07 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches