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.001286/0.001286, allocations: 95.08 kB / 16.99 MB, free: 5.941 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.001569/0.001569, allocations: 181.5 kB / 17.87 MB, free: 5.609 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.429/1.429, allocations: 223.2 MB / 241.8 MB, free: 14.64 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.2328/0.2328, allocations: 44.23 MB / 337.1 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003308/0.0003309, allocations: 12 kB / 409.5 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1392, allocations: 61.93 MB / 471.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0007956/0.1401, allocations: 218.9 kB / 471.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003046/0.1431, allocations: 1.929 MB / 473.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.589e-05/0.1432, allocations: 7.938 kB / 473.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.464e-05/0.1432, allocations: 0 / 473.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.791e-06/0.1432, allocations: 0 / 473.6 MB, free: 11.57 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.001304/0.1445, allocations: 409.6 kB / 474 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.797e-05/0.1446, allocations: 4 kB / 474 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.3e-05/0.1446, allocations: 3.984 kB / 474 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.902e-05/0.1447, allocations: 0 / 474 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.152e-05/0.1447, allocations: 0 / 474 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.543e-06/0.1447, allocations: 0 / 474 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009305/0.1456, allocations: 0.5967 MB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.366e-06/0.1457, allocations: 7.984 kB / 474.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.405e-05/0.1457, allocations: 29.69 kB / 474.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003807/0.1461, allocations: 247.5 kB / 474.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1461, allocations: 0 / 474.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1461, allocations: 0 / 474.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.1461, allocations: 0 / 474.9 MB, free: 10.28 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.0004567/0.1466, allocations: 413.3 kB / 475.3 MB, free: 9.824 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.1466, allocations: 8.031 kB / 475.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.026e-05/0.1467, allocations: 4 kB / 475.3 MB, free: 9.812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.1468, allocations: 159.1 kB / 475.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.1468, allocations: 4 kB / 475.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.1468, allocations: 3.953 kB / 475.5 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.985e-05/0.1469, allocations: 33.64 kB / 475.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.345e-06/0.147, allocations: 0 / 475.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.147, allocations: 4 kB / 475.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.147, allocations: 3.938 kB / 475.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.025e-05/0.147, allocations: 3.984 kB / 475.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001374/0.1472, allocations: 145.7 kB / 475.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.901e-05/0.1472, allocations: 18.61 kB / 475.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.734e-06/0.1472, allocations: 0 / 475.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.69e-05/0.1473, allocations: 64.22 kB / 475.7 MB, free: 9.262 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.1473, allocations: 0 / 475.7 MB, free: 9.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001868/0.1475, allocations: 67.39 kB / 475.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.1475, allocations: 81.23 kB / 475.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.855e-05/0.1476, allocations: 89.86 kB / 476 MB, free: 8.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.195e-05/0.1476, allocations: 29.7 kB / 476 MB, free: 8.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.872e-05/0.1476, allocations: 80.14 kB / 476.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.389e-05/0.1477, allocations: 0 / 476.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-06/0.1477, allocations: 0 / 476.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.1478, allocations: 314.8 kB / 476.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.825e-06/0.1478, allocations: 0 / 476.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.494e-06/0.1478, allocations: 7.984 kB / 476.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.847e-05/0.1479, allocations: 29.77 kB / 476.4 MB, free: 8.512 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1479, allocations: 0 / 476.4 MB, free: 8.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.929e-05/0.148, allocations: 63.34 kB / 476.5 MB, free: 8.438 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.515e-05/0.148, allocations: 29.7 kB / 476.5 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.148, allocations: 0 / 476.5 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.148, allocations: 3.953 kB / 476.5 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.615e-06/0.148, allocations: 4 kB / 476.5 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.1481, allocations: 3.984 kB / 476.5 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.532e-05/0.1481, allocations: 0 / 476.5 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.1481, allocations: 32 / 476.5 MB, free: 8.391 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001017/0.1482, allocations: 144.1 kB / 476.7 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.785e-06/0.1482, allocations: 3.984 kB / 476.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.253e-05/0.1482, allocations: 11.02 kB / 476.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.1482, allocations: 3.953 kB / 476.7 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.1482, allocations: 0 / 476.7 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-06/0.1483, allocations: 0 / 476.7 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.1484, allocations: 153.7 kB / 476.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.1484, allocations: 0 / 476.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.766e-06/0.1484, allocations: 0 / 476.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.1484, allocations: 7.938 kB / 476.8 MB, free: 8.008 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.754e-06/0.1484, allocations: 0 / 476.8 MB, free: 8.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.1484, allocations: 4 kB / 476.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1484, allocations: 7.938 kB / 476.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.262e-05/0.1485, allocations: 98.67 kB / 476.9 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.167e-05/0.1486, allocations: 77.11 kB / 477 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.1486, allocations: 4 kB / 477 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.007e-06/0.1486, allocations: 4.031 kB / 477 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.646e-05/0.1486, allocations: 0 / 477 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.1486, allocations: 3.953 kB / 477 MB, free: 7.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.707e-05/0.1487, allocations: 75.28 kB / 477.1 MB, free: 7.695 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1487, allocations: 0 / 477.1 MB, free: 7.695 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004003/0.1491, allocations: 128 kB / 477.2 MB, free: 7.57 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007835/0.1499, allocations: 306.4 kB / 477.5 MB, free: 7.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.756e-05/0.15, allocations: 55.41 kB / 477.6 MB, free: 7.203 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.15, allocations: 8 kB / 477.6 MB, free: 7.195 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.842e-05/0.15, allocations: 55.34 kB / 477.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.536e-05/0.1501, allocations: 4 kB / 477.7 MB, free: 7.125 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001912/0.1503, allocations: 75.06 kB / 477.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.1506, allocations: 0.677 MB / 478.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.27e-06/0.1506, allocations: 0 / 478.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.144e-05/0.1506, allocations: 7.438 kB / 478.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1506, allocations: 3.938 kB / 478.4 MB, free: 6.309 MB / 350.1 MB Notification: Performance of Templates: time 0.006641/0.1573, allocations: 3.447 MB / 481.9 MB, free: 2.859 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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches