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.001174/0.001174, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.001283/0.001283, allocations: 193.3 kB / 18.9 MB, free: 4.48 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.327/1.327, allocations: 222.9 MB / 242.6 MB, free: 15.39 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.2267/0.2267, allocations: 44.18 MB / 336.9 MB, free: 2.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002476/0.002476, allocations: 56.66 kB / 408.5 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1344, allocations: 60.83 MB / 469.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001836/0.1363, allocations: 0.5606 MB / 469.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002839/0.1391, allocations: 2.03 MB / 472 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.486e-05/0.1392, allocations: 4 kB / 472 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.488e-05/0.1392, allocations: 0 / 472 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.436e-06/0.1392, allocations: 0 / 472 MB, free: 12.12 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.001488/0.1407, allocations: 465.8 kB / 472.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.307e-05/0.1408, allocations: 4 kB / 472.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.852e-05/0.1408, allocations: 0 / 472.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.595e-05/0.1408, allocations: 0 / 472.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.041e-05/0.1409, allocations: 3.984 kB / 472.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.583e-06/0.1409, allocations: 8 kB / 472.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009777/0.1419, allocations: 0.6316 MB / 473.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.038e-05/0.1419, allocations: 4 kB / 473.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.534e-05/0.1419, allocations: 3.984 kB / 473.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004263/0.1424, allocations: 255.5 kB / 473.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.1424, allocations: 0 / 473.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1424, allocations: 0 / 473.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1424, allocations: 0 / 473.3 MB, free: 10.77 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.000479/0.1429, allocations: 413.5 kB / 473.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.1429, allocations: 8.031 kB / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.076e-05/0.143, allocations: 0.9375 kB / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/0.1431, allocations: 168.3 kB / 473.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.1431, allocations: 384 / 473.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.07e-05/0.1431, allocations: 12.31 kB / 473.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.148e-05/0.1432, allocations: 34 kB / 474 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.543e-06/0.1432, allocations: 0 / 474 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.1432, allocations: 0 / 474 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.1432, allocations: 4 kB / 474 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.625e-05/0.1432, allocations: 0 / 474 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001468/0.1434, allocations: 141.7 kB / 474.1 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.203e-05/0.1434, allocations: 30.55 kB / 474.1 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.252e-05/0.1435, allocations: 4.859 kB / 474.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.859e-06/0.1435, allocations: 0 / 474.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.36e-05/0.1435, allocations: 64.19 kB / 474.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.031e-06/0.1435, allocations: 0 / 474.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001633/0.1437, allocations: 59.47 kB / 474.3 MB, free: 9.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.1437, allocations: 85.11 kB / 474.3 MB, free: 9.559 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.385e-05/0.1438, allocations: 89.86 kB / 474.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/0.1438, allocations: 29.83 kB / 474.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.39e-05/0.1438, allocations: 84.12 kB / 474.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.906e-05/0.1439, allocations: 0 / 474.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.832e-05/0.1439, allocations: 17.66 kB / 474.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.703e-05/0.144, allocations: 310.8 kB / 474.9 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.137e-06/0.144, allocations: 0 / 474.9 MB, free: 9.004 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.721e-06/0.144, allocations: 0 / 474.9 MB, free: 9.004 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.037e-05/0.1441, allocations: 72.27 kB / 474.9 MB, free: 8.918 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1441, allocations: 0 / 474.9 MB, free: 8.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.56e-05/0.1442, allocations: 63.39 kB / 475 MB, free: 8.844 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/0.1442, allocations: 33.64 kB / 475 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.1442, allocations: 0 / 475 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.1443, allocations: 4 kB / 475 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.71e-07/0.1443, allocations: 0 / 475 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.1443, allocations: 3.984 kB / 475 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.62e-05/0.1443, allocations: 3.938 kB / 475 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.1443, allocations: 0 / 475 MB, free: 8.793 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 8.79e-05/0.1444, allocations: 143.6 kB / 475.2 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.314e-05/0.1444, allocations: 11.94 kB / 475.2 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.021e-05/0.1444, allocations: 7.078 kB / 475.2 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.1445, allocations: 0 / 475.2 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.1445, allocations: 3.938 kB / 475.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.1445, allocations: 0 / 475.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.975e-05/0.1446, allocations: 149.7 kB / 475.3 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1446, allocations: 0 / 475.3 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.936e-06/0.1446, allocations: 3.984 kB / 475.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.1446, allocations: 7.938 kB / 475.4 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.1446, allocations: 0 / 475.4 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1446, allocations: 0 / 475.4 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1446, allocations: 0 / 475.4 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.549e-05/0.1447, allocations: 90.75 kB / 475.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.37e-05/0.1448, allocations: 81.09 kB / 475.5 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.1448, allocations: 7.938 kB / 475.5 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.496e-06/0.1448, allocations: 0 / 475.5 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.717e-05/0.1448, allocations: 7.969 kB / 475.5 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-06/0.1448, allocations: 0 / 475.5 MB, free: 8.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.785e-05/0.1449, allocations: 75.28 kB / 475.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1449, allocations: 0 / 475.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004472/0.1453, allocations: 132 kB / 475.7 MB, free: 7.977 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.0007674/0.1461, allocations: 302.9 kB / 476 MB, free: 7.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000103/0.1462, allocations: 63.34 kB / 476.1 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1462, allocations: 0 / 476.1 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.151e-05/0.1463, allocations: 63.39 kB / 476.2 MB, free: 7.531 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001269/0.1464, allocations: 2.188 kB / 476.2 MB, free: 7.531 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002027/0.1466, allocations: 98.64 kB / 476.3 MB, free: 7.402 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002656/0.1469, allocations: 0.673 MB / 476.9 MB, free: 6.703 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.374e-05/0.1469, allocations: 11.44 kB / 476.9 MB, free: 6.691 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1469, allocations: 3.938 kB / 476.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of Templates: time 0.005407/0.1523, allocations: 3.238 MB / 480.2 MB, free: 3.445 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