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.002037/0.002037, allocations: 101.8 kB / 16.27 MB, free: 5.891 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.001875/0.001875, allocations: 186.8 kB / 17.19 MB, free: 5.543 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.677/1.677, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2281/0.2281, allocations: 43.53 MB / 313.9 MB, free: 0.5273 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.003072/0.003073, allocations: 62.27 kB / 382.7 MB, free: 56.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.1678, allocations: 57.79 MB / 440.5 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001852/0.1697, allocations: 0.4936 MB / 441 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00281/0.1726, allocations: 2.328 MB / 443.3 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.079e-05/0.1726, allocations: 0 / 443.3 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.945e-05/0.1726, allocations: 4 kB / 443.3 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.09e-06/0.1727, allocations: 0 / 443.3 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001328/0.174, allocations: 0.5686 MB / 443.9 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.979e-05/0.1741, allocations: 0 / 443.9 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.579e-05/0.1741, allocations: 4 kB / 443.9 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.887e-05/0.1741, allocations: 7.875 kB / 443.9 MB, free: 3.484 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.817e-05/0.1742, allocations: 0 / 443.9 MB, free: 3.484 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.522e-06/0.1742, allocations: 0 / 443.9 MB, free: 3.484 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008563/0.175, allocations: 0.6941 MB / 444.6 MB, free: 2.789 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.007e-06/0.175, allocations: 0 / 444.6 MB, free: 2.789 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.267e-05/0.1751, allocations: 4 kB / 444.6 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005066/0.1756, allocations: 451.4 kB / 445.1 MB, free: 2.344 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1756, allocations: 4 kB / 445.1 MB, free: 2.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1756, allocations: 0 / 445.1 MB, free: 2.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.615e-06/0.1756, allocations: 0 / 445.1 MB, free: 2.34 MB / 318.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.0003928/0.176, allocations: 437.2 kB / 445.5 MB, free: 1.859 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.1761, allocations: 11.89 kB / 445.5 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.816e-05/0.1761, allocations: 0.9375 kB / 445.5 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.99e-05/0.1762, allocations: 168.3 kB / 445.7 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.1762, allocations: 384 / 445.7 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.857e-06/0.1762, allocations: 4.375 kB / 445.7 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.792e-05/0.1763, allocations: 34.02 kB / 445.7 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.076e-06/0.1763, allocations: 0 / 445.7 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.1763, allocations: 0 / 445.7 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.1764, allocations: 0 / 445.7 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.898e-05/0.1764, allocations: 7.938 kB / 445.7 MB, free: 1.594 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000106/0.1765, allocations: 145.7 kB / 445.9 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.631e-05/0.1765, allocations: 26.55 kB / 445.9 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.278e-05/0.1766, allocations: 4.859 kB / 445.9 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.846e-06/0.1766, allocations: 4 kB / 445.9 MB, free: 1.355 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/0.1766, allocations: 60.2 kB / 445.9 MB, free: 1.281 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.1766, allocations: 0 / 445.9 MB, free: 1.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001802/0.1768, allocations: 63.45 kB / 446 MB, free: 1.207 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.1768, allocations: 85.11 kB / 446.1 MB, free: 1.105 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.848e-05/0.1769, allocations: 89.86 kB / 446.2 MB, free: 1.008 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.273e-06/0.1769, allocations: 25.7 kB / 446.2 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.303e-05/0.1769, allocations: 80.27 kB / 446.3 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.371e-05/0.1769, allocations: 7.938 kB / 446.3 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.27e-05/0.177, allocations: 17.66 kB / 446.3 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.826e-05/0.177, allocations: 310.8 kB / 446.6 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.042e-05/0.177, allocations: 0 / 446.6 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.58e-06/0.177, allocations: 0 / 446.6 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.755e-05/0.1771, allocations: 68.25 kB / 446.7 MB, free: 480 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1771, allocations: 4 kB / 446.7 MB, free: 476 kB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.931e-05/0.1772, allocations: 63.47 kB / 446.7 MB, free: 400 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.947e-05/0.1772, allocations: 33.64 kB / 446.8 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.1772, allocations: 4 kB / 446.8 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.1772, allocations: 3.938 kB / 446.8 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.11e-07/0.1772, allocations: 0 / 446.8 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.1772, allocations: 3.984 kB / 446.8 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.673e-05/0.1773, allocations: 7.922 kB / 446.8 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.1773, allocations: 0 / 446.8 MB, free: 340 kB / 318.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 6.007e-05/0.1773, allocations: 139.5 kB / 446.9 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.011e-05/0.1774, allocations: 11.97 kB / 446.9 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.02e-05/0.1774, allocations: 3.125 kB / 447 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.72e-07/0.1774, allocations: 0 / 447 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.1774, allocations: 0 / 447 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.1774, allocations: 0 / 447 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.312e-05/0.1775, allocations: 149.7 kB / 447.1 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.1775, allocations: 0 / 447.1 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.849e-06/0.1775, allocations: 0 / 447.1 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.1775, allocations: 7.875 kB / 447.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.094e-06/0.1775, allocations: 0 / 447.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.1775, allocations: 4 kB / 447.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1775, allocations: 4 kB / 447.1 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001024/0.1777, allocations: 94.84 kB / 447.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.449e-05/0.1777, allocations: 81.11 kB / 447.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.1777, allocations: 3.938 kB / 447.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.306e-06/0.1777, allocations: 0 / 447.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.429e-05/0.1778, allocations: 3.938 kB / 447.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-06/0.1778, allocations: 0 / 447.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.147e-05/0.1778, allocations: 83.31 kB / 447.4 MB, free: 15.65 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1778, allocations: 0 / 447.4 MB, free: 15.65 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004216/0.1782, allocations: 156 kB / 447.5 MB, free: 15.5 MB / 334.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.0008541/0.1791, allocations: 326.2 kB / 447.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001255/0.1792, allocations: 63.39 kB / 447.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.1793, allocations: 0 / 447.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.089e-05/0.1793, allocations: 59.34 kB / 448 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000134/0.1794, allocations: 7.938 kB / 448 MB, free: 15.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002287/0.1797, allocations: 81.06 kB / 448.1 MB, free: 14.92 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002864/0.18, allocations: 0.6728 MB / 448.7 MB, free: 14.22 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.188e-05/0.18, allocations: 0 / 448.7 MB, free: 14.22 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.643e-05/0.18, allocations: 15.38 kB / 448.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.18, allocations: 4.125 kB / 448.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of Templates: time 0.007552/0.1876, allocations: 3.502 MB / 452.2 MB, free: 10.7 MB / 334.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches