Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009967/0.0009971, allocations: 110.1 kB / 17.09 MB, free: 6.008 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.0009851/0.0009851, allocations: 194.2 kB / 18.02 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.32/1.32, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2108/0.2108, allocations: 43.52 MB / 314.8 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001357, allocations: 75.89 kB / 442.5 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1325, allocations: 57.78 MB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001954/0.1345, allocations: 0.5058 MB / 0.489 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003804/0.1384, allocations: 2.334 MB / 0.4913 GB, free: 8.961 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.04e-05/0.1384, allocations: 0 / 0.4913 GB, free: 8.961 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.618e-05/0.1385, allocations: 0 / 0.4913 GB, free: 8.961 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.142e-06/0.1385, allocations: 0 / 0.4913 GB, free: 8.961 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002039/0.1405, allocations: 0.5725 MB / 0.4919 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.949e-05/0.1406, allocations: 4 kB / 0.4919 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.349e-05/0.1406, allocations: 4 kB / 0.4919 GB, free: 8.379 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.051e-05/0.1407, allocations: 3.984 kB / 0.4919 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.877e-05/0.1407, allocations: 0 / 0.4919 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.134e-06/0.1407, allocations: 0 / 0.4919 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001482/0.1422, allocations: 0.6902 MB / 0.4926 GB, free: 7.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.111e-05/0.1422, allocations: 0 / 0.4926 GB, free: 7.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.536e-05/0.1422, allocations: 7.984 kB / 0.4926 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001088/0.1433, allocations: 447.1 kB / 0.493 GB, free: 7.238 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1434, allocations: 0 / 0.493 GB, free: 7.238 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1434, allocations: 0 / 0.493 GB, free: 7.238 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.1434, allocations: 0 / 0.493 GB, free: 7.238 MB / 382.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.000604/0.144, allocations: 436.6 kB / 0.4934 GB, free: 6.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.576e-05/0.1441, allocations: 15.89 kB / 0.4934 GB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.759e-05/0.1441, allocations: 4.844 kB / 0.4934 GB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.1442, allocations: 168.3 kB / 0.4936 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.1442, allocations: 384 / 0.4936 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.285e-05/0.1442, allocations: 384 / 0.4936 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.1444, allocations: 38.02 kB / 0.4936 GB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.1444, allocations: 0 / 0.4936 GB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.1444, allocations: 0 / 0.4936 GB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.1444, allocations: 0 / 0.4936 GB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.461e-05/0.1444, allocations: 7.938 kB / 0.4936 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001615/0.1446, allocations: 153.6 kB / 0.4938 GB, free: 6.289 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.986e-05/0.1447, allocations: 14.58 kB / 0.4938 GB, free: 6.266 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.289e-05/0.1447, allocations: 8.953 kB / 0.4938 GB, free: 6.254 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.543e-06/0.1447, allocations: 0 / 0.4938 GB, free: 6.254 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.016e-05/0.1448, allocations: 64.2 kB / 0.4939 GB, free: 6.176 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.894e-06/0.1448, allocations: 4 kB / 0.4939 GB, free: 6.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002156/0.145, allocations: 67.33 kB / 0.4939 GB, free: 6.094 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.1451, allocations: 77.11 kB / 0.494 GB, free: 6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.372e-05/0.1451, allocations: 89.86 kB / 0.4941 GB, free: 5.902 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.1451, allocations: 25.7 kB / 0.4941 GB, free: 5.871 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.041e-05/0.1452, allocations: 80.14 kB / 0.4942 GB, free: 5.789 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.929e-05/0.1452, allocations: 4 kB / 0.4942 GB, free: 5.785 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.018e-05/0.1452, allocations: 13.72 kB / 0.4942 GB, free: 5.766 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.1454, allocations: 315 kB / 0.4945 GB, free: 5.449 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.191e-05/0.1454, allocations: 4 kB / 0.4945 GB, free: 5.445 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.28e-06/0.1454, allocations: 0 / 0.4945 GB, free: 5.445 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.987e-05/0.1455, allocations: 64.25 kB / 0.4946 GB, free: 5.367 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1455, allocations: 0 / 0.4946 GB, free: 5.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.668e-05/0.1456, allocations: 67.34 kB / 0.4946 GB, free: 5.289 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.297e-05/0.1456, allocations: 29.7 kB / 0.4947 GB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.1456, allocations: 7.922 kB / 0.4947 GB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.1457, allocations: 4.094 kB / 0.4947 GB, free: 5.242 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.2e-06/0.1457, allocations: 3.984 kB / 0.4947 GB, free: 5.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.1457, allocations: 3.984 kB / 0.4947 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.813e-05/0.1457, allocations: 8 kB / 0.4947 GB, free: 5.227 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.1457, allocations: 0 / 0.4947 GB, free: 5.227 MB / 382.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 9.797e-05/0.1458, allocations: 139.5 kB / 0.4948 GB, free: 5.074 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.164e-05/0.1458, allocations: 4 kB / 0.4948 GB, free: 5.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.616e-05/0.1459, allocations: 11 kB / 0.4948 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1459, allocations: 0 / 0.4948 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1459, allocations: 4 kB / 0.4948 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.323e-05/0.1459, allocations: 77.11 kB / 0.4949 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.1459, allocations: 3.984 kB / 0.4949 GB, free: 4.953 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.125e-05/0.1459, allocations: 4 kB / 0.4949 GB, free: 4.949 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.966e-05/0.146, allocations: 0 / 0.4949 GB, free: 4.949 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001365/0.1461, allocations: 194 kB / 0.4951 GB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001405/0.1463, allocations: 244.5 kB / 0.4953 GB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.82e-05/0.1463, allocations: 0 / 0.4953 GB, free: 4.473 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.735e-05/0.1463, allocations: 79.28 kB / 0.4954 GB, free: 4.395 MB / 382.1 MB Notification: Performance of Backend: time 4.91e-07/0.1463, allocations: 0 / 0.4954 GB, free: 4.395 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001109/0.1474, allocations: 370.3 kB / 0.4958 GB, free: 4.016 MB / 382.1 MB Notification: Performance of SimCode: time 0.0004138/0.1479, allocations: 0.5949 MB / 0.4964 GB, free: 3.359 MB / 382.1 MB Notification: Performance of Templates: time 0.007462/0.1553, allocations: 3.526 MB / 0.4998 GB, free: 15.83 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches