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.001578/0.001578, allocations: 107.7 kB / 17.21 MB, free: 6.27 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.001616/0.001616, allocations: 194 kB / 18.12 MB, free: 5.363 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.476/1.476, allocations: 222.9 MB / 241.8 MB, free: 13.86 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.2185/0.2185, allocations: 44.18 MB / 336.1 MB, free: 2.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 68.98 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1281, allocations: 60.82 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00187/0.13, allocations: 0.5527 MB / 469.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003048/0.1331, allocations: 2.103 MB / 471.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.209e-05/0.1331, allocations: 0 / 471.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.484e-05/0.1332, allocations: 0 / 471.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.578e-06/0.1332, allocations: 0 / 471.2 MB, free: 12.17 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.001387/0.1346, allocations: 417.8 kB / 471.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.524e-05/0.1346, allocations: 7.984 kB / 471.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.309e-05/0.1347, allocations: 8 kB / 471.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.656e-05/0.1347, allocations: 0 / 471.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.609e-05/0.1347, allocations: 0 / 471.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.412e-06/0.1347, allocations: 0 / 471.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001077/0.1358, allocations: 0.6395 MB / 472.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.737e-06/0.1358, allocations: 3.938 kB / 472.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.065e-05/0.1359, allocations: 0 / 472.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007603/0.1366, allocations: 391.2 kB / 472.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1367, allocations: 4 kB / 472.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1367, allocations: 0 / 472.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.1367, allocations: 0 / 472.6 MB, free: 10.72 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.0005068/0.1372, allocations: 413.5 kB / 473 MB, free: 10.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.1372, allocations: 12.03 kB / 473 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.754e-05/0.1373, allocations: 0.9375 kB / 473 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001008/0.1374, allocations: 164.4 kB / 473.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.1374, allocations: 384 / 473.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.1374, allocations: 384 / 473.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/0.1375, allocations: 45.94 kB / 473.3 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.1375, allocations: 0 / 473.3 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.1376, allocations: 0 / 473.3 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.1376, allocations: 0 / 473.3 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.093e-05/0.1376, allocations: 4 kB / 473.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001364/0.1377, allocations: 141.7 kB / 473.4 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.016e-05/0.1378, allocations: 14.58 kB / 473.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.976e-05/0.1378, allocations: 12.95 kB / 473.4 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.035e-06/0.1378, allocations: 4 kB / 473.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.699e-05/0.1379, allocations: 72.12 kB / 473.5 MB, free: 9.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.1379, allocations: 0 / 473.5 MB, free: 9.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001869/0.1381, allocations: 59.41 kB / 473.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/0.1381, allocations: 77.11 kB / 473.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.148e-05/0.1382, allocations: 93.8 kB / 473.7 MB, free: 9.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.1382, allocations: 29.7 kB / 473.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.103e-05/0.1383, allocations: 92.25 kB / 473.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.447e-05/0.1383, allocations: 3.938 kB / 473.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.359e-05/0.1383, allocations: 9.719 kB / 473.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1385, allocations: 310.8 kB / 474.2 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.869e-06/0.1385, allocations: 4 kB / 474.2 MB, free: 8.949 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.003e-06/0.1385, allocations: 0 / 474.2 MB, free: 8.949 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.854e-05/0.1386, allocations: 64.2 kB / 474.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1386, allocations: 0 / 474.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.106e-05/0.1387, allocations: 71.45 kB / 474.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.754e-05/0.1387, allocations: 36.14 kB / 474.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1387, allocations: 0 / 474.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.1387, allocations: 0 / 474.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.1387, allocations: 0 / 474.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.1388, allocations: 0 / 474.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.972e-05/0.1388, allocations: 4 kB / 474.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.1388, allocations: 3.984 kB / 474.3 MB, free: 8.742 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.0001014/0.1389, allocations: 135.5 kB / 474.5 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.628e-05/0.1389, allocations: 15.95 kB / 474.5 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.914e-05/0.139, allocations: 7.078 kB / 474.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.139, allocations: 0 / 474.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.139, allocations: 0 / 474.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.139, allocations: 0 / 474.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001001/0.1391, allocations: 145.7 kB / 474.6 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.1391, allocations: 4 kB / 474.6 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.425e-06/0.1391, allocations: 7.922 kB / 474.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.1391, allocations: 3.938 kB / 474.6 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.1391, allocations: 0 / 474.6 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1391, allocations: 0 / 474.6 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1391, allocations: 4 kB / 474.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001046/0.1393, allocations: 90.75 kB / 474.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.779e-05/0.1393, allocations: 81.09 kB / 474.8 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.389e-05/0.1393, allocations: 3.938 kB / 474.8 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.121e-05/0.1393, allocations: 4 kB / 474.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.617e-05/0.1394, allocations: 0 / 474.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.1394, allocations: 0 / 474.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.63e-05/0.1394, allocations: 79.31 kB / 474.9 MB, free: 8.062 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.533e-06/0.1394, allocations: 0 / 474.9 MB, free: 8.062 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004732/0.1399, allocations: 131.9 kB / 475 MB, free: 7.934 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.0008635/0.1408, allocations: 305.3 kB / 475.3 MB, free: 7.633 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.337e-05/0.1409, allocations: 63.34 kB / 475.4 MB, free: 7.559 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1409, allocations: 0 / 475.4 MB, free: 7.559 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.148e-05/0.1409, allocations: 59.39 kB / 475.5 MB, free: 7.488 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.141, allocations: 4 kB / 475.5 MB, free: 7.484 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001716/0.1412, allocations: 78.7 kB / 475.5 MB, free: 7.379 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.1415, allocations: 0.6731 MB / 476.2 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.001e-06/0.1415, allocations: 0 / 476.2 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.137e-05/0.1415, allocations: 7.562 kB / 476.2 MB, free: 6.672 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1415, allocations: 4 kB / 476.2 MB, free: 6.668 MB / 350.1 MB Notification: Performance of Templates: time 0.008673/0.1502, allocations: 3.419 MB / 479.6 MB, free: 3.258 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","/var/lib/jenkins/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