Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001897/0.001897, allocations: 172.9 kB / 16.07 MB, free: 5.602 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.6 MB / 222.4 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007952/0.0007953, allocations: 90.73 kB / 270.8 MB, free: 8.137 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3728/0.3728, allocations: 43.67 MB / 362.7 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003341/0.0003341, allocations: 16 kB / 432.3 MB, free: 4.805 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.128, allocations: 58.85 MB / 491.2 MB, free: 9.82 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0006745/0.1288, allocations: 248.2 kB / 491.4 MB, free: 9.578 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003578/0.1324, allocations: 3.439 MB / 494.8 MB, free: 5.785 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.483e-05/0.1324, allocations: 0 / 494.8 MB, free: 5.785 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.741e-05/0.1324, allocations: 0 / 494.8 MB, free: 5.785 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.779e-06/0.1324, allocations: 0 / 494.8 MB, free: 5.785 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.1336, allocations: 427 kB / 495.3 MB, free: 5.367 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.858e-05/0.1337, allocations: 4 kB / 495.3 MB, free: 5.363 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.706e-05/0.1337, allocations: 0 / 495.3 MB, free: 5.363 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.283e-05/0.1338, allocations: 3.984 kB / 495.3 MB, free: 5.359 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.902e-05/0.1338, allocations: 0 / 495.3 MB, free: 5.359 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.992e-06/0.1338, allocations: 0 / 495.3 MB, free: 5.359 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001016/0.1348, allocations: 0.6199 MB / 495.9 MB, free: 4.738 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.011e-05/0.1349, allocations: 3.984 kB / 495.9 MB, free: 4.734 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.507e-05/0.1349, allocations: 25.7 kB / 495.9 MB, free: 4.703 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005822/0.1355, allocations: 387.2 kB / 496.3 MB, free: 4.324 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.185e-06/0.1355, allocations: 3.984 kB / 496.3 MB, free: 4.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1355, allocations: 0 / 496.3 MB, free: 4.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1355, allocations: 0 / 496.3 MB, free: 4.32 MB / 378.7 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.0004503/0.136, allocations: 409.5 kB / 496.7 MB, free: 3.867 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.136, allocations: 8.031 kB / 496.7 MB, free: 3.859 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.027e-05/0.1361, allocations: 0.9375 kB / 496.7 MB, free: 3.859 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.1362, allocations: 172.3 kB / 496.9 MB, free: 3.652 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.1362, allocations: 4.375 kB / 496.9 MB, free: 3.648 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.187e-05/0.1362, allocations: 384 / 496.9 MB, free: 3.648 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.654e-05/0.1363, allocations: 38.02 kB / 496.9 MB, free: 3.605 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.1363, allocations: 0 / 496.9 MB, free: 3.605 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.1364, allocations: 0 / 496.9 MB, free: 3.605 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.1364, allocations: 3.938 kB / 496.9 MB, free: 3.602 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.9e-05/0.1364, allocations: 0 / 496.9 MB, free: 3.602 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000137/0.1365, allocations: 149.7 kB / 497.1 MB, free: 3.406 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.978e-05/0.1366, allocations: 26.55 kB / 497.1 MB, free: 3.371 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.357e-05/0.1366, allocations: 4.859 kB / 497.1 MB, free: 3.363 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.768e-06/0.1366, allocations: 0 / 497.1 MB, free: 3.363 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.292e-05/0.1367, allocations: 68.25 kB / 497.2 MB, free: 3.281 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1367, allocations: 0 / 497.2 MB, free: 3.281 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001845/0.1369, allocations: 71.3 kB / 497.2 MB, free: 3.199 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/0.1369, allocations: 77.11 kB / 497.3 MB, free: 3.105 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.492e-05/0.137, allocations: 93.98 kB / 497.4 MB, free: 3.004 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.137, allocations: 25.7 kB / 497.4 MB, free: 2.973 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.608e-05/0.137, allocations: 80.14 kB / 497.5 MB, free: 2.891 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.133e-05/0.1371, allocations: 0 / 497.5 MB, free: 2.891 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.993e-06/0.1371, allocations: 3.938 kB / 497.5 MB, free: 2.887 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.1372, allocations: 314.8 kB / 497.8 MB, free: 2.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.678e-06/0.1372, allocations: 4 kB / 497.8 MB, free: 2.566 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.017e-06/0.1372, allocations: 0 / 497.8 MB, free: 2.566 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.199e-05/0.1373, allocations: 68.31 kB / 497.9 MB, free: 2.484 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1373, allocations: 0 / 497.9 MB, free: 2.484 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.618e-05/0.1374, allocations: 59.41 kB / 497.9 MB, free: 2.414 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.928e-05/0.1374, allocations: 33.64 kB / 498 MB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.1374, allocations: 0 / 498 MB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.1374, allocations: 0 / 498 MB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.625e-06/0.1374, allocations: 3.984 kB / 498 MB, free: 2.371 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.1374, allocations: 0 / 498 MB, free: 2.371 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.897e-05/0.1375, allocations: 11.92 kB / 498 MB, free: 2.359 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-06/0.1375, allocations: 0 / 498 MB, free: 2.359 MB / 378.7 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.05e-05/0.1376, allocations: 139.6 kB / 498.1 MB, free: 2.207 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.621e-05/0.1376, allocations: 7.938 kB / 498.1 MB, free: 2.199 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.809e-06/0.1376, allocations: 7.062 kB / 498.1 MB, free: 2.191 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.71e-07/0.1376, allocations: 0 / 498.1 MB, free: 2.191 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.1376, allocations: 0 / 498.1 MB, free: 2.191 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.1376, allocations: 0 / 498.1 MB, free: 2.191 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.509e-05/0.1377, allocations: 145.7 kB / 498.3 MB, free: 2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1377, allocations: 4 kB / 498.3 MB, free: 1.996 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.22e-07/0.1377, allocations: 0 / 498.3 MB, free: 1.996 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.1377, allocations: 3.938 kB / 498.3 MB, free: 1.992 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-06/0.1377, allocations: 4 kB / 498.3 MB, free: 1.988 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.1378, allocations: 0 / 498.3 MB, free: 1.988 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1378, allocations: 0 / 498.3 MB, free: 1.988 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.761e-05/0.1378, allocations: 90.83 kB / 498.4 MB, free: 1.875 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.603e-05/0.1379, allocations: 81.05 kB / 498.5 MB, free: 1.777 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.1379, allocations: 3.938 kB / 498.5 MB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.746e-06/0.1379, allocations: 0 / 498.5 MB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.558e-05/0.138, allocations: 11.97 kB / 498.5 MB, free: 1.762 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.138, allocations: 0 / 498.5 MB, free: 1.762 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.92e-05/0.138, allocations: 75.28 kB / 498.5 MB, free: 1.688 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.138, allocations: 0 / 498.5 MB, free: 1.688 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003418/0.1384, allocations: 132 kB / 498.7 MB, free: 1.559 MB / 378.7 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.0007136/0.1391, allocations: 323 kB / 499 MB, free: 1.246 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.306e-05/0.1392, allocations: 63.41 kB / 499.1 MB, free: 1.172 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1392, allocations: 0 / 499.1 MB, free: 1.172 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.94e-05/0.1393, allocations: 55.41 kB / 499.1 MB, free: 1.105 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001099/0.1394, allocations: 0 / 499.1 MB, free: 1.105 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000171/0.1395, allocations: 78.75 kB / 499.2 MB, free: 1.004 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002337/0.1398, allocations: 0.6692 MB / 499.9 MB, free: 316 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.44e-06/0.1398, allocations: 128 / 499.9 MB, free: 316 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.061e-05/0.1398, allocations: 11.44 kB / 499.9 MB, free: 308 kB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.1398, allocations: 3.938 kB / 499.9 MB, free: 304 kB / 378.7 MB Notification: Performance of Templates: time 0.2334/0.3732, allocations: 3.391 MB / 0.4915 GB, free: 42.85 MB / 378.7 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