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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 169.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.514/1.514, allocations: 221.5 MB / 230.7 MB, free: 7.555 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 89.84 kB / 281.6 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.202/0.202, allocations: 44.16 MB / 376.5 MB, free: 3.035 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.74e-05/1.719e-05, allocations: 4 kB / 444.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.121, allocations: 61.92 MB / 0.4947 GB, free: 1.246 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3888/0.5098, allocations: 88.82 MB / 0.5814 GB, free: 7.703 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001885/0.5101, allocations: 63.97 kB / 0.5815 GB, free: 7.641 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8442/1.354, allocations: 71.65 MB / 0.6514 GB, free: 15.9 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.354, allocations: 4 kB / 0.6514 GB, free: 15.9 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.715e-06/1.354, allocations: 0 / 0.6514 GB, free: 15.9 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.00887/1.363, allocations: 459.8 kB / 0.6519 GB, free: 15.4 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.5e-05/1.363, allocations: 15.98 kB / 0.6519 GB, free: 15.38 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.423e-05/1.363, allocations: 0 / 0.6519 GB, free: 15.38 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/1.364, allocations: 171 kB / 0.6521 GB, free: 15.18 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.452e-05/1.364, allocations: 0 / 0.6521 GB, free: 15.18 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.319e-05/1.364, allocations: 0 / 0.6521 GB, free: 15.18 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.245e-05/1.364, allocations: 0 / 0.6521 GB, free: 15.18 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.569e-05/1.364, allocations: 33.7 kB / 0.6521 GB, free: 15.14 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/1.364, allocations: 0 / 0.6521 GB, free: 15.14 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/1.364, allocations: 0 / 0.6521 GB, free: 15.14 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/1.364, allocations: 3.984 kB / 0.6521 GB, free: 15.13 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000156/1.364, allocations: 126.3 kB / 0.6522 GB, free: 14.97 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.706e-05/1.364, allocations: 22.53 kB / 0.6522 GB, free: 14.94 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.137e-05/1.364, allocations: 8.844 kB / 0.6522 GB, free: 14.93 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/1.364, allocations: 3.938 kB / 0.6522 GB, free: 14.93 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.202e-05/1.364, allocations: 64.33 kB / 0.6523 GB, free: 14.85 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 1.392e-06/1.364, allocations: 0 / 0.6523 GB, free: 14.85 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002293/1.364, allocations: 29.7 kB / 0.6523 GB, free: 14.81 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/1.364, allocations: 81.11 kB / 0.6524 GB, free: 14.71 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.591e-05/1.365, allocations: 85 kB / 0.6525 GB, free: 14.62 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/1.365, allocations: 29.7 kB / 0.6525 GB, free: 14.59 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.274e-05/1.365, allocations: 80.14 kB / 0.6526 GB, free: 14.51 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.214e-05/1.365, allocations: 0 / 0.6526 GB, free: 14.51 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-06/1.365, allocations: 4.031 kB / 0.6526 GB, free: 14.5 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/1.365, allocations: 314.8 kB / 0.6529 GB, free: 14.19 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.646e-06/1.365, allocations: 0 / 0.6529 GB, free: 14.19 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.183e-06/1.365, allocations: 0 / 0.6529 GB, free: 14.19 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.165e-05/1.365, allocations: 4 kB / 0.6529 GB, free: 14.18 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/1.365, allocations: 0 / 0.6529 GB, free: 14.18 MB / 474.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001009/1.365, allocations: 38.39 kB / 0.6529 GB, free: 14.14 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.773e-05/1.365, allocations: 33.66 kB / 0.653 GB, free: 14.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/1.365, allocations: 12.02 kB / 0.653 GB, free: 14.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/1.365, allocations: 0 / 0.653 GB, free: 14.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.523e-06/1.365, allocations: 0 / 0.653 GB, free: 14.09 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/1.365, allocations: 0 / 0.653 GB, free: 14.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.281e-05/1.365, allocations: 4 kB / 0.653 GB, free: 14.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/1.365, allocations: 4 kB / 0.653 GB, free: 14.08 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 () * 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.587e-05/1.365, allocations: 130.6 kB / 0.6531 GB, free: 13.94 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.272e-05/1.365, allocations: 4 kB / 0.6531 GB, free: 13.94 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.787e-05/1.365, allocations: 11.66 kB / 0.6531 GB, free: 13.93 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/1.365, allocations: 4 kB / 0.6531 GB, free: 13.92 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/1.365, allocations: 0 / 0.6531 GB, free: 13.92 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/1.365, allocations: 0 / 0.6531 GB, free: 13.92 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001043/1.365, allocations: 130.2 kB / 0.6533 GB, free: 13.76 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.125e-06/1.366, allocations: 4 kB / 0.6533 GB, free: 13.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-07/1.366, allocations: 0 / 0.6533 GB, free: 13.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/1.366, allocations: 4 kB / 0.6533 GB, free: 13.75 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/1.366, allocations: 0 / 0.6533 GB, free: 13.75 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/1.366, allocations: 0 / 0.6533 GB, free: 13.75 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/1.366, allocations: 3.953 kB / 0.6533 GB, free: 13.75 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001348/1.366, allocations: 69.06 kB / 0.6533 GB, free: 13.66 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.456e-05/1.366, allocations: 85.02 kB / 0.6534 GB, free: 13.56 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/1.366, allocations: 0 / 0.6534 GB, free: 13.56 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.211e-05/1.366, allocations: 0 / 0.6534 GB, free: 13.56 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.271e-05/1.366, allocations: 0 / 0.6534 GB, free: 13.56 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.002e-06/1.366, allocations: 3.953 kB / 0.6534 GB, free: 13.55 MB / 474.7 MB Notification: Performance of sorting global known variables: time 3.51e-05/1.366, allocations: 79.28 kB / 0.6535 GB, free: 13.48 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.366, allocations: 0 / 0.6535 GB, free: 13.48 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01548/1.381, allocations: 1.531 MB / 0.655 GB, free: 11.95 MB / 474.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) * 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.01883/1.4, allocations: 2.022 MB / 0.657 GB, free: 9.914 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.000155/1.4, allocations: 63.34 kB / 0.657 GB, free: 9.84 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/1.401, allocations: 4.062 kB / 0.657 GB, free: 9.836 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 5.239e-05/1.401, allocations: 55.41 kB / 0.6571 GB, free: 9.77 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001307/1.401, allocations: 6.516 kB / 0.6571 GB, free: 9.766 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002031/1.401, allocations: 44.06 kB / 0.6571 GB, free: 9.699 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/1.401, allocations: 0.6729 MB / 0.6578 GB, free: 9 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 6.011e-06/1.401, allocations: 0 / 0.6578 GB, free: 9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.404e-05/1.401, allocations: 7.438 kB / 0.6578 GB, free: 8.992 MB / 474.7 MB Notification: Performance of SimCode: time 3.41e-07/1.401, allocations: 0 / 0.6578 GB, free: 8.992 MB / 474.7 MB Notification: Performance of Templates: time 0.4479/1.849, allocations: 88.29 MB / 0.744 GB, free: 118.3 MB / 0.4948 GB 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches