Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.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.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 173.9 kB / 16.08 MB, free: 5.727 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.39/1.39, allocations: 205.6 MB / 222.4 MB, free: 8.926 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.0009965/0.0009964, allocations: 102.7 kB / 270.8 MB, free: 8.121 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.4459/0.4459, allocations: 43.67 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003529/0.000353, allocations: 8 kB / 432.3 MB, free: 5.023 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1275, allocations: 58.83 MB / 491.2 MB, free: 10.05 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0006839/0.1282, allocations: 244.3 kB / 491.4 MB, free: 9.816 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003862/0.1321, allocations: 3.933 MB / 495.3 MB, free: 5.473 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.457e-05/0.1321, allocations: 0 / 495.3 MB, free: 5.473 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.2e-05/0.1322, allocations: 4 kB / 495.3 MB, free: 5.469 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.899e-06/0.1322, allocations: 0 / 495.3 MB, free: 5.469 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001333/0.1335, allocations: 466.9 kB / 495.8 MB, free: 5.012 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.244e-05/0.1335, allocations: 3.984 kB / 495.8 MB, free: 5.008 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.877e-05/0.1336, allocations: 0 / 495.8 MB, free: 5.008 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.688e-05/0.1336, allocations: 3.938 kB / 495.8 MB, free: 5.004 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.908e-05/0.1336, allocations: 7.984 kB / 495.8 MB, free: 4.996 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.873e-06/0.1337, allocations: 0 / 495.8 MB, free: 4.996 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001068/0.1347, allocations: 0.6862 MB / 496.5 MB, free: 4.309 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.897e-06/0.1348, allocations: 3.938 kB / 496.5 MB, free: 4.305 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.644e-05/0.1348, allocations: 29.7 kB / 496.5 MB, free: 4.27 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007197/0.1355, allocations: 463.3 kB / 497 MB, free: 3.816 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.1356, allocations: 0 / 497 MB, free: 3.816 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1356, allocations: 0 / 497 MB, free: 3.816 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.1356, allocations: 0 / 497 MB, free: 3.816 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.0004027/0.136, allocations: 429.3 kB / 497.4 MB, free: 3.344 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.136, allocations: 8.031 kB / 497.4 MB, free: 3.336 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.683e-05/0.1361, allocations: 4.938 kB / 497.4 MB, free: 3.332 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.1362, allocations: 172.3 kB / 497.6 MB, free: 3.125 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.1362, allocations: 4.312 kB / 497.6 MB, free: 3.121 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.965e-06/0.1362, allocations: 4.375 kB / 497.6 MB, free: 3.117 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001069/0.1363, allocations: 38 kB / 497.6 MB, free: 3.074 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.1363, allocations: 0 / 497.6 MB, free: 3.074 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.1364, allocations: 4 kB / 497.6 MB, free: 3.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1364, allocations: 0 / 497.6 MB, free: 3.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.774e-05/0.1364, allocations: 0 / 497.6 MB, free: 3.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001644/0.1366, allocations: 149.6 kB / 497.8 MB, free: 2.875 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.432e-05/0.1366, allocations: 22.55 kB / 497.8 MB, free: 2.844 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.526e-05/0.1366, allocations: 4.859 kB / 497.8 MB, free: 2.836 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.28e-06/0.1366, allocations: 0 / 497.8 MB, free: 2.836 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.744e-05/0.1367, allocations: 68.19 kB / 497.9 MB, free: 2.754 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.42e-07/0.1367, allocations: 4.062 kB / 497.9 MB, free: 2.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002003/0.1369, allocations: 55.53 kB / 497.9 MB, free: 2.684 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.727e-05/0.137, allocations: 85.11 kB / 498 MB, free: 2.582 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.994e-05/0.1371, allocations: 89.86 kB / 498.1 MB, free: 2.484 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.1371, allocations: 25.7 kB / 498.1 MB, free: 2.453 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.415e-05/0.1371, allocations: 84.12 kB / 498.2 MB, free: 2.367 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.982e-05/0.1372, allocations: 0 / 498.2 MB, free: 2.367 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.352e-06/0.1372, allocations: 0 / 498.2 MB, free: 2.367 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.1373, allocations: 322.8 kB / 498.5 MB, free: 2.043 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.043e-05/0.1374, allocations: 4 kB / 498.5 MB, free: 2.039 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.428e-06/0.1374, allocations: 4 kB / 498.5 MB, free: 2.035 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.394e-05/0.1374, allocations: 60.27 kB / 498.6 MB, free: 1.961 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1374, allocations: 0 / 498.6 MB, free: 1.961 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.491e-05/0.1375, allocations: 59.41 kB / 498.6 MB, free: 1.891 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.073e-05/0.1376, allocations: 37.62 kB / 498.7 MB, free: 1.848 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.1376, allocations: 0 / 498.7 MB, free: 1.848 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.1376, allocations: 0 / 498.7 MB, free: 1.848 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.492e-06/0.1376, allocations: 0 / 498.7 MB, free: 1.848 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.1376, allocations: 3.984 kB / 498.7 MB, free: 1.844 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.286e-05/0.1376, allocations: 12.09 kB / 498.7 MB, free: 1.832 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.1377, allocations: 7.875 kB / 498.7 MB, free: 1.824 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 9.999e-05/0.1378, allocations: 131.5 kB / 498.8 MB, free: 1.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.453e-05/0.1378, allocations: 7.938 kB / 498.8 MB, free: 1.672 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.433e-05/0.1378, allocations: 7.062 kB / 498.8 MB, free: 1.664 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1378, allocations: 3.984 kB / 498.8 MB, free: 1.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.1378, allocations: 0 / 498.8 MB, free: 1.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.1378, allocations: 0 / 498.8 MB, free: 1.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.1379, allocations: 145.6 kB / 499 MB, free: 1.469 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.138, allocations: 8 kB / 499 MB, free: 1.461 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.138, allocations: 0 / 499 MB, free: 1.461 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.138, allocations: 3.938 kB / 499 MB, free: 1.457 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.138, allocations: 0 / 499 MB, free: 1.457 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.138, allocations: 0 / 499 MB, free: 1.457 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.138, allocations: 0 / 499 MB, free: 1.457 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001116/0.1381, allocations: 90.83 kB / 499.1 MB, free: 1.344 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.159e-05/0.1382, allocations: 77.11 kB / 499.2 MB, free: 1.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.1382, allocations: 11.95 kB / 499.2 MB, free: 1.238 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.174e-05/0.1382, allocations: 4 kB / 499.2 MB, free: 1.234 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.541e-05/0.1382, allocations: 3.938 kB / 499.2 MB, free: 1.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-06/0.1382, allocations: 8 kB / 499.2 MB, free: 1.223 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.11e-05/0.1383, allocations: 75.28 kB / 499.3 MB, free: 1.148 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1383, allocations: 0 / 499.3 MB, free: 1.148 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004074/0.1387, allocations: 148 kB / 499.4 MB, free: 1.004 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.0007814/0.1395, allocations: 356.1 kB / 499.8 MB, free: 0.6602 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.45e-05/0.1396, allocations: 55.41 kB / 499.8 MB, free: 0.5938 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1396, allocations: 0 / 499.8 MB, free: 0.5938 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.224e-05/0.1396, allocations: 55.41 kB / 499.9 MB, free: 0.5273 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001166/0.1397, allocations: 15.92 kB / 499.9 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001616/0.1399, allocations: 78.88 kB / 500 MB, free: 420 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.203/0.3429, allocations: 0.6703 MB / 0.4889 GB, free: 42.94 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.585e-05/0.343, allocations: 0 / 0.4889 GB, free: 42.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.918e-05/0.343, allocations: 8.438 kB / 0.4889 GB, free: 42.93 MB / 378.7 MB Notification: Performance of SimCode: time 3.246e-06/0.343, allocations: 0 / 0.4889 GB, free: 42.93 MB / 378.7 MB Notification: Performance of Templates: time 0.008029/0.3511, allocations: 3.494 MB / 0.4923 GB, free: 42.74 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches