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.001123/0.001123, 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.001056/0.001056, 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.375/1.375, allocations: 222.9 MB / 243 MB, free: 15.09 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.219/0.219, allocations: 44.18 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001813, allocations: 64.44 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1391, allocations: 60.83 MB / 470.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00182/0.141, allocations: 494.8 kB / 471.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00297/0.144, allocations: 2.041 MB / 473.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.758e-05/0.144, allocations: 0 / 473.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.243e-05/0.1441, allocations: 0 / 473.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.469e-06/0.1441, allocations: 0 / 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.001417/0.1455, allocations: 0.5057 MB / 473.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.159e-05/0.1456, allocations: 0 / 473.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.307e-05/0.1456, allocations: 0 / 473.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.84e-05/0.1456, allocations: 4 kB / 473.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.881e-05/0.1457, allocations: 3.984 kB / 473.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.091e-06/0.1457, allocations: 0 / 473.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009394/0.1466, allocations: 0.6044 MB / 474.3 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.033e-05/0.1466, allocations: 8 kB / 474.4 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.39e-05/0.1467, allocations: 3.984 kB / 474.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005941/0.1473, allocations: 375.3 kB / 474.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1473, allocations: 0 / 474.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.1473, allocations: 4 kB / 474.7 MB, free: 9.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.1473, allocations: 0 / 474.7 MB, free: 9.59 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.0004246/0.1477, allocations: 417.2 kB / 475.1 MB, free: 9.129 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.1478, allocations: 8.031 kB / 475.1 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.443e-05/0.1478, allocations: 0.9375 kB / 475.1 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.813e-05/0.1479, allocations: 160.4 kB / 475.3 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.678e-06/0.1479, allocations: 4.375 kB / 475.3 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-06/0.148, allocations: 384 / 475.3 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.351e-05/0.1481, allocations: 38.02 kB / 475.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.1481, allocations: 3.938 kB / 475.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.1481, allocations: 11.94 kB / 475.4 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.1481, allocations: 0 / 475.4 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.221e-05/0.1481, allocations: 3.984 kB / 475.4 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001415/0.1483, allocations: 141.7 kB / 475.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.775e-05/0.1483, allocations: 18.61 kB / 475.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.6e-05/0.1483, allocations: 4.859 kB / 475.5 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.19e-06/0.1483, allocations: 0 / 475.5 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.213e-05/0.1484, allocations: 72.27 kB / 475.6 MB, free: 8.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.1484, allocations: 0 / 475.6 MB, free: 8.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001788/0.1486, allocations: 67.27 kB / 475.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.1487, allocations: 81.11 kB / 475.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.205e-05/0.1487, allocations: 89.86 kB / 475.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.1487, allocations: 25.7 kB / 475.9 MB, free: 8.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.826e-05/0.1488, allocations: 80.14 kB / 475.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/0.1488, allocations: 0 / 475.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.952e-05/0.1488, allocations: 21.84 kB / 476 MB, free: 8.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.1489, allocations: 314.8 kB / 476.3 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.102e-05/0.149, allocations: 0 / 476.3 MB, free: 7.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.67e-06/0.149, allocations: 0 / 476.3 MB, free: 7.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.765e-05/0.149, allocations: 64.2 kB / 476.3 MB, free: 7.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.149, allocations: 0 / 476.3 MB, free: 7.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.289e-05/0.1491, allocations: 63.41 kB / 476.4 MB, free: 7.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/0.1492, allocations: 37.62 kB / 476.4 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1492, allocations: 8.094 kB / 476.4 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.1492, allocations: 0 / 476.4 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.856e-06/0.1492, allocations: 4 kB / 476.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.1492, allocations: 0 / 476.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.635e-05/0.1492, allocations: 0 / 476.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.1492, allocations: 0 / 476.4 MB, free: 7.613 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 0.0001039/0.1494, allocations: 135.5 kB / 476.6 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.015e-05/0.1494, allocations: 3.938 kB / 476.6 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.281e-05/0.1494, allocations: 7.078 kB / 476.6 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-06/0.1494, allocations: 4 kB / 476.6 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.1494, allocations: 3.984 kB / 476.6 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1494, allocations: 0 / 476.6 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001041/0.1495, allocations: 149.6 kB / 476.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1495, allocations: 0 / 476.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.1495, allocations: 0 / 476.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.1495, allocations: 3.938 kB / 476.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.1496, allocations: 4 kB / 476.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.1496, allocations: 3.938 kB / 476.7 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1496, allocations: 4 kB / 476.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.874e-05/0.1497, allocations: 94.73 kB / 476.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.947e-05/0.1497, allocations: 77.11 kB / 476.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.313e-05/0.1497, allocations: 7.938 kB / 476.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.002e-05/0.1498, allocations: 3.984 kB / 476.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.082e-05/0.1498, allocations: 0 / 476.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-06/0.1498, allocations: 0 / 476.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.991e-05/0.1498, allocations: 79.28 kB / 477 MB, free: 6.934 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1498, allocations: 32 / 477 MB, free: 6.934 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003909/0.1502, allocations: 128 kB / 477.1 MB, free: 6.809 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.0006939/0.1509, allocations: 314.3 kB / 477.4 MB, free: 6.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.395e-05/0.151, allocations: 63.34 kB / 477.5 MB, free: 6.426 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.1511, allocations: 4.062 kB / 477.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.364e-05/0.1511, allocations: 59.34 kB / 477.6 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.1512, allocations: 3.984 kB / 477.6 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001703/0.1514, allocations: 80.94 kB / 477.6 MB, free: 6.242 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/0.1516, allocations: 0.6729 MB / 478.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.671e-06/0.1517, allocations: 0 / 478.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.068e-05/0.1517, allocations: 7.438 kB / 478.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1517, allocations: 0 / 478.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of Templates: time 0.006977/0.1587, allocations: 3.425 MB / 481.7 MB, free: 2.117 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 cvode -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