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.0008857/0.0008854, allocations: 103 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009246/0.0009249, allocations: 184.1 kB / 16.92 MB, free: 6.914 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.821/1.821, allocations: 205.4 MB / 223.1 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4982/0.4982, allocations: 43.56 MB / 315 MB, free: 8.742 MB / 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.0005292/0.0005293, allocations: 16 kB / 384.6 MB, free: 7.656 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1665/0.1671, allocations: 58.87 MB / 443.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0008105/0.168, allocations: 236.4 kB / 443.7 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003626/0.1716, allocations: 2.375 MB / 446.1 MB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.143e-05/0.1716, allocations: 0 / 446.1 MB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.394e-05/0.1717, allocations: 0 / 446.1 MB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.662e-06/0.1717, allocations: 0 / 446.1 MB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001405/0.1731, allocations: 474.9 kB / 446.5 MB, free: 9.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.472e-05/0.1731, allocations: 7.938 kB / 446.5 MB, free: 9.582 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.367e-05/0.1732, allocations: 3.984 kB / 446.5 MB, free: 9.578 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.054e-05/0.1732, allocations: 0 / 446.5 MB, free: 9.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.408e-05/0.1733, allocations: 4 kB / 446.5 MB, free: 9.574 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.303e-06/0.1733, allocations: 0 / 446.5 MB, free: 9.574 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001108/0.1744, allocations: 0.7174 MB / 447.2 MB, free: 8.855 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.839e-06/0.1744, allocations: 0 / 447.2 MB, free: 8.855 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.099e-05/0.1745, allocations: 29.7 kB / 447.3 MB, free: 8.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006371/0.1751, allocations: 467.3 kB / 447.7 MB, free: 8.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1751, allocations: 0 / 447.7 MB, free: 8.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1751, allocations: 0 / 447.7 MB, free: 8.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.1751, allocations: 0 / 447.7 MB, free: 8.363 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.000502/0.1756, allocations: 429.2 kB / 448.2 MB, free: 7.891 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.1757, allocations: 12.02 kB / 448.2 MB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.939e-05/0.1757, allocations: 0.9375 kB / 448.2 MB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.1758, allocations: 164.3 kB / 448.3 MB, free: 7.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.1759, allocations: 4.375 kB / 448.3 MB, free: 7.676 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.247e-05/0.1759, allocations: 8.359 kB / 448.3 MB, free: 7.668 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001082/0.176, allocations: 30.02 kB / 448.4 MB, free: 7.633 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.176, allocations: 0 / 448.4 MB, free: 7.633 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.176, allocations: 4 kB / 448.4 MB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.176, allocations: 0 / 448.4 MB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.989e-05/0.1761, allocations: 0 / 448.4 MB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001401/0.1762, allocations: 153.6 kB / 448.5 MB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.528e-05/0.1763, allocations: 26.55 kB / 448.5 MB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.571e-05/0.1763, allocations: 4.859 kB / 448.6 MB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.616e-06/0.1763, allocations: 0 / 448.6 MB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.845e-05/0.1764, allocations: 60.27 kB / 448.6 MB, free: 7.312 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.1764, allocations: 4 kB / 448.6 MB, free: 7.309 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001864/0.1766, allocations: 71.33 kB / 448.7 MB, free: 7.227 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.1766, allocations: 77.23 kB / 448.8 MB, free: 7.133 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.577e-05/0.1767, allocations: 93.86 kB / 448.9 MB, free: 7.031 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.1767, allocations: 25.7 kB / 448.9 MB, free: 7 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.629e-05/0.1767, allocations: 80.14 kB / 449 MB, free: 6.918 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.1768, allocations: 0 / 449 MB, free: 6.918 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.32e-05/0.1768, allocations: 13.66 kB / 449 MB, free: 6.898 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.1769, allocations: 314.8 kB / 449.3 MB, free: 6.582 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.588e-06/0.1769, allocations: 0 / 449.3 MB, free: 6.582 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.871e-06/0.1769, allocations: 3.984 kB / 449.3 MB, free: 6.578 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.415e-05/0.177, allocations: 68.33 kB / 449.3 MB, free: 6.496 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.177, allocations: 0 / 449.3 MB, free: 6.496 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.11e-05/0.1771, allocations: 59.41 kB / 449.4 MB, free: 6.426 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.722e-05/0.1771, allocations: 33.64 kB / 449.4 MB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1772, allocations: 0 / 449.4 MB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.1772, allocations: 3.984 kB / 449.4 MB, free: 6.383 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.81e-07/0.1772, allocations: 0 / 449.4 MB, free: 6.383 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.1772, allocations: 4 kB / 449.4 MB, free: 6.379 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.908e-05/0.1772, allocations: 3.938 kB / 449.5 MB, free: 6.375 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.1772, allocations: 7.969 kB / 449.5 MB, free: 6.367 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 0.0001116/0.1773, allocations: 143.5 kB / 449.6 MB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.106e-06/0.1774, allocations: 3.938 kB / 449.6 MB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.205e-05/0.1774, allocations: 3.125 kB / 449.6 MB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.1774, allocations: 0 / 449.6 MB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1774, allocations: 0 / 449.6 MB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.1774, allocations: 0 / 449.6 MB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000102/0.1775, allocations: 153.6 kB / 449.8 MB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.1775, allocations: 0 / 449.8 MB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.39e-06/0.1775, allocations: 4 kB / 449.8 MB, free: 6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.1775, allocations: 7.938 kB / 449.8 MB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.1775, allocations: 0 / 449.8 MB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1776, allocations: 0 / 449.8 MB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1776, allocations: 0 / 449.8 MB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.218e-05/0.1777, allocations: 90.83 kB / 449.9 MB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.22e-05/0.1777, allocations: 77.11 kB / 449.9 MB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.1777, allocations: 7.938 kB / 449.9 MB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.206e-06/0.1777, allocations: 4.031 kB / 449.9 MB, free: 5.773 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.456e-05/0.1777, allocations: 3.938 kB / 449.9 MB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-06/0.1778, allocations: 0 / 449.9 MB, free: 5.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.25e-05/0.1778, allocations: 79.27 kB / 450 MB, free: 5.691 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1778, allocations: 0 / 450 MB, free: 5.691 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004141/0.1782, allocations: 156 kB / 450.2 MB, free: 5.539 MB / 382.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.0008188/0.179, allocations: 354.5 kB / 450.5 MB, free: 5.188 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000103/0.1792, allocations: 55.41 kB / 450.6 MB, free: 5.121 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1792, allocations: 0 / 450.6 MB, free: 5.121 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.486e-05/0.1792, allocations: 55.41 kB / 450.6 MB, free: 5.055 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001277/0.1793, allocations: 0 / 450.6 MB, free: 5.055 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002164/0.1796, allocations: 82.75 kB / 450.7 MB, free: 4.949 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.1798, allocations: 0.6694 MB / 451.4 MB, free: 4.254 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.392e-06/0.1799, allocations: 4 kB / 451.4 MB, free: 4.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.3e-05/0.1799, allocations: 11.44 kB / 451.4 MB, free: 4.242 MB / 382.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1799, allocations: 3.938 kB / 451.4 MB, free: 4.238 MB / 382.1 MB Notification: Performance of Templates: time 0.008006/0.1879, allocations: 3.495 MB / 454.9 MB, free: 0.7422 MB / 382.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/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