Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_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.001256/0.001256, 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.001244/0.001244, 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.379/1.379, allocations: 222.9 MB / 243 MB, free: 15.14 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.2232/0.2232, allocations: 44.18 MB / 337.4 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 70.72 kB / 409.9 MB, free: 26.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1312, allocations: 60.82 MB / 470.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001862/0.1331, allocations: 0.4944 MB / 471.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003342/0.1365, allocations: 2.306 MB / 473.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.441e-05/0.1365, allocations: 3.938 kB / 473.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.792e-05/0.1366, allocations: 0 / 473.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.228e-06/0.1366, allocations: 0 / 473.5 MB, free: 10.81 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:1098:5-1194:31:writable] Warning: Pure function 'ModelicaTest.Math.Random.truncatedDistributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001521/0.1381, allocations: 0.5644 MB / 474.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.952e-05/0.1382, allocations: 4 kB / 474.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.011e-05/0.1382, allocations: 0 / 474.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.515e-05/0.1382, allocations: 7.984 kB / 474.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.311e-05/0.1382, allocations: 0 / 474.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.689e-06/0.1382, allocations: 0 / 474.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001013/0.1393, allocations: 0.6824 MB / 474.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.438e-06/0.1393, allocations: 3.984 kB / 474.8 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.958e-05/0.1393, allocations: 4 kB / 474.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005935/0.1399, allocations: 451.1 kB / 475.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1399, allocations: 0 / 475.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1399, allocations: 0 / 475.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.1399, allocations: 0 / 475.2 MB, free: 9.102 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.0004064/0.1404, allocations: 433.2 kB / 475.6 MB, free: 8.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.1404, allocations: 12.03 kB / 475.6 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.987e-05/0.1404, allocations: 4.938 kB / 475.6 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.1405, allocations: 160.4 kB / 475.8 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.1406, allocations: 4.312 kB / 475.8 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.11e-05/0.1406, allocations: 4.359 kB / 475.8 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.595e-05/0.1407, allocations: 38.02 kB / 475.9 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.1407, allocations: 3.938 kB / 475.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.974e-06/0.1407, allocations: 0 / 475.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.1407, allocations: 0 / 475.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.576e-05/0.1407, allocations: 0 / 475.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001367/0.1409, allocations: 149.7 kB / 476 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.901e-05/0.1409, allocations: 18.56 kB / 476 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.576e-05/0.1409, allocations: 4.953 kB / 476 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.913e-06/0.1409, allocations: 4 kB / 476 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.884e-05/0.141, allocations: 64.2 kB / 476.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 3.516e-06/0.141, allocations: 0 / 476.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001606/0.1412, allocations: 67.34 kB / 476.2 MB, free: 7.969 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.1412, allocations: 81.09 kB / 476.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.084e-05/0.1413, allocations: 89.86 kB / 476.3 MB, free: 7.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.1413, allocations: 25.7 kB / 476.3 MB, free: 7.742 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.206e-05/0.1413, allocations: 84.12 kB / 476.4 MB, free: 7.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.48e-05/0.1414, allocations: 4 kB / 476.4 MB, free: 7.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.029e-05/0.1414, allocations: 13.72 kB / 476.4 MB, free: 7.633 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1415, allocations: 310.8 kB / 476.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.178e-05/0.1416, allocations: 8.125 kB / 476.8 MB, free: 7.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.54e-06/0.1416, allocations: 0 / 476.8 MB, free: 7.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.234e-05/0.1417, allocations: 64.2 kB / 476.8 MB, free: 7.234 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1417, allocations: 4 kB / 476.8 MB, free: 7.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.061e-05/0.1417, allocations: 71.38 kB / 476.9 MB, free: 7.148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/0.1418, allocations: 33.64 kB / 476.9 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.1418, allocations: 3.938 kB / 476.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.1418, allocations: 0 / 476.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.222e-06/0.1418, allocations: 4.094 kB / 476.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.1418, allocations: 0 / 476.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.105e-05/0.1418, allocations: 4 kB / 476.9 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.1419, allocations: 0 / 476.9 MB, free: 7.098 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.0001421/0.142, allocations: 135.5 kB / 477.1 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.16e-05/0.142, allocations: 7.938 kB / 477.1 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.399e-05/0.142, allocations: 7.078 kB / 477.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.1421, allocations: 0 / 477.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.1421, allocations: 0 / 477.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1421, allocations: 4 kB / 477.1 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.688e-05/0.1422, allocations: 149.6 kB / 477.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.1422, allocations: 4 kB / 477.2 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.1422, allocations: 0 / 477.2 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1422, allocations: 7.875 kB / 477.2 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-06/0.1422, allocations: 7.938 kB / 477.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1422, allocations: 0 / 477.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1422, allocations: 0 / 477.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.831e-05/0.1423, allocations: 94.83 kB / 477.3 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.023e-05/0.1424, allocations: 77.11 kB / 477.4 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.292e-05/0.1424, allocations: 3.938 kB / 477.4 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.078e-05/0.1424, allocations: 4 kB / 477.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.551e-05/0.1424, allocations: 0 / 477.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.1424, allocations: 0 / 477.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.06e-05/0.1425, allocations: 75.28 kB / 477.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1425, allocations: 0 / 477.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000444/0.1429, allocations: 155.9 kB / 477.7 MB, free: 6.27 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.0006926/0.1436, allocations: 335.6 kB / 478 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.898e-05/0.1437, allocations: 67.33 kB / 478.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1437, allocations: 0 / 478.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.307e-05/0.1438, allocations: 55.41 kB / 478.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001353/0.1439, allocations: 10.56 kB / 478.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001574/0.1441, allocations: 76.94 kB / 478.2 MB, free: 5.684 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002387/0.1443, allocations: 0.6768 MB / 478.9 MB, free: 4.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.618e-06/0.1443, allocations: 0 / 478.9 MB, free: 4.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.518e-06/0.1443, allocations: 7.438 kB / 478.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1444, allocations: 0 / 478.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of Templates: time 0.006856/0.1512, allocations: 3.526 MB / 482.4 MB, free: 1.449 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches