Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001089/0.001089, allocations: 195.1 kB / 16.78 MB, free: 4.914 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.5 MB / 244.1 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007803/0.0007805, allocations: 92.25 kB / 296.1 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3131/0.3131, allocations: 44.83 MB / 392.9 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002523/0.0002524, allocations: 8 kB / 465.9 MB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.274, allocations: 62.96 MB / 0.5165 GB, free: 37.36 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1109/0.385, allocations: 90.49 MB / 0.6048 GB, free: 14.91 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.3853, allocations: 67.97 kB / 0.6049 GB, free: 14.84 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7975/1.183, allocations: 59.85 MB / 0.6633 GB, free: 2.887 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.845e-06/1.183, allocations: 4 kB / 0.6633 GB, free: 2.883 MB / 474.7 MB Notification: Performance of Transformations before backend: time 5.801e-06/1.183, allocations: 0 / 0.6633 GB, free: 2.883 MB / 474.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.003456/1.186, allocations: 476.8 kB / 0.6638 GB, free: 2.359 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/1.186, allocations: 8.031 kB / 0.6638 GB, free: 2.352 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.131e-05/1.186, allocations: 0.9375 kB / 0.6638 GB, free: 2.352 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.697e-05/1.187, allocations: 160.4 kB / 0.664 GB, free: 2.156 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/1.187, allocations: 384 / 0.664 GB, free: 2.156 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/1.187, allocations: 384 / 0.664 GB, free: 2.156 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.485e-05/1.187, allocations: 34.2 kB / 0.664 GB, free: 2.117 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/1.187, allocations: 192 / 0.664 GB, free: 2.117 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/1.187, allocations: 7.938 kB / 0.664 GB, free: 2.109 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/1.187, allocations: 0 / 0.664 GB, free: 2.109 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.893e-05/1.187, allocations: 7.984 kB / 0.664 GB, free: 2.102 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001334/1.187, allocations: 145.7 kB / 0.6642 GB, free: 1.91 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.488e-05/1.187, allocations: 14.67 kB / 0.6642 GB, free: 1.887 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.477e-05/1.187, allocations: 8.859 kB / 0.6642 GB, free: 1.875 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.012e-05/1.187, allocations: 0 / 0.6642 GB, free: 1.875 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.41e-05/1.187, allocations: 68.14 kB / 0.6642 GB, free: 1.793 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/1.187, allocations: 0 / 0.6642 GB, free: 1.793 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001903/1.187, allocations: 71.33 kB / 0.6643 GB, free: 1.711 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/1.187, allocations: 77.11 kB / 0.6644 GB, free: 1.617 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.478e-05/1.187, allocations: 93.86 kB / 0.6645 GB, free: 1.516 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.03e-05/1.187, allocations: 25.7 kB / 0.6645 GB, free: 1.484 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.317e-05/1.187, allocations: 84.12 kB / 0.6646 GB, free: 1.398 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.957e-05/1.187, allocations: 0 / 0.6646 GB, free: 1.398 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.904e-06/1.187, allocations: 128 / 0.6646 GB, free: 1.398 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001169/1.188, allocations: 314.8 kB / 0.6649 GB, free: 1.082 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.059e-05/1.188, allocations: 7.984 kB / 0.6649 GB, free: 1.074 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.945e-06/1.188, allocations: 7.938 kB / 0.6649 GB, free: 1.066 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.154e-05/1.188, allocations: 60.27 kB / 0.6649 GB, free: 0.9922 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/1.188, allocations: 0 / 0.6649 GB, free: 0.9922 MB / 474.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.647e-05/1.188, allocations: 55.41 kB / 0.665 GB, free: 0.9258 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.687e-05/1.188, allocations: 44.59 kB / 0.665 GB, free: 0.8789 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/1.188, allocations: 96 / 0.665 GB, free: 0.8789 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/1.188, allocations: 7.938 kB / 0.6651 GB, free: 0.8711 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.864e-06/1.188, allocations: 4 kB / 0.6651 GB, free: 0.8672 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/1.188, allocations: 0 / 0.6651 GB, free: 0.8672 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.468e-05/1.188, allocations: 0 / 0.6651 GB, free: 0.8672 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/1.188, allocations: 4 kB / 0.6651 GB, free: 0.8633 MB / 474.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.769e-05/1.188, allocations: 135.5 kB / 0.6652 GB, free: 0.7148 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.693e-06/1.188, allocations: 0 / 0.6652 GB, free: 0.7148 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.545e-05/1.188, allocations: 10.66 kB / 0.6652 GB, free: 0.7109 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/1.188, allocations: 8 kB / 0.6652 GB, free: 0.7031 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/1.188, allocations: 3.938 kB / 0.6652 GB, free: 0.6992 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/1.188, allocations: 3.984 kB / 0.6652 GB, free: 0.6953 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001035/1.188, allocations: 145.7 kB / 0.6654 GB, free: 0.5039 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/1.188, allocations: 0 / 0.6654 GB, free: 0.5039 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/1.188, allocations: 0 / 0.6654 GB, free: 0.5039 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/1.188, allocations: 0 / 0.6654 GB, free: 0.5039 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/1.188, allocations: 7.938 kB / 0.6654 GB, free: 0.4961 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/1.188, allocations: 0 / 0.6654 GB, free: 0.4961 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/1.188, allocations: 0 / 0.6654 GB, free: 0.4961 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001047/1.188, allocations: 94.83 kB / 0.6655 GB, free: 388 kB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.429e-05/1.188, allocations: 77.11 kB / 0.6655 GB, free: 292 kB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/1.188, allocations: 3.938 kB / 0.6655 GB, free: 288 kB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.055e-06/1.188, allocations: 0 / 0.6655 GB, free: 288 kB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.277e-05/1.188, allocations: 3.984 kB / 0.6655 GB, free: 284 kB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/1.188, allocations: 4 kB / 0.6655 GB, free: 280 kB / 474.7 MB Notification: Performance of sorting global known variables: time 3.54e-05/1.188, allocations: 75.28 kB / 0.6656 GB, free: 204 kB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.188, allocations: 3.938 kB / 0.6656 GB, free: 200 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.007081/1.196, allocations: 1.535 MB / 0.6671 GB, free: 14.66 MB / 490.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0119/1.208, allocations: 2.045 MB / 0.6691 GB, free: 12.61 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001733/1.208, allocations: 67.41 kB / 0.6692 GB, free: 12.54 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/1.208, allocations: 0 / 0.6692 GB, free: 12.54 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 3.308e-05/1.208, allocations: 55.41 kB / 0.6692 GB, free: 12.47 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001476/1.208, allocations: 0 / 0.6692 GB, free: 12.47 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002226/1.208, allocations: 108.3 kB / 0.6693 GB, free: 12.33 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/1.208, allocations: 0.6692 MB / 0.67 GB, free: 11.63 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.168e-05/1.208, allocations: 7.438 kB / 0.67 GB, free: 11.62 MB / 490.7 MB Notification: Performance of SimCode: time 7.01e-07/1.208, allocations: 0 / 0.67 GB, free: 11.62 MB / 490.7 MB Notification: Performance of Templates: time 0.3083/1.517, allocations: 74.2 MB / 0.7424 GB, free: 95.22 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches