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.001244/0.001244, allocations: 88.19 kB / 15.7 MB, free: 460 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.002179/0.002179, allocations: 175.7 kB / 16.58 MB, free: 6.84 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.76/1.76, allocations: 205.4 MB / 222.8 MB, free: 5.637 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.443/0.443, allocations: 43.57 MB / 314.6 MB, free: 8.762 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.0007763/0.0007765, allocations: 12 kB / 383.9 MB, free: 8.008 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1763/0.1771, allocations: 58.87 MB / 442.8 MB, free: 13.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0006796/0.1778, allocations: 240.4 kB / 443.1 MB, free: 12.79 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003594/0.1814, allocations: 2.204 MB / 445.3 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.916e-05/0.1815, allocations: 0 / 445.3 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.884e-05/0.1815, allocations: 0 / 445.3 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.037e-05/0.1815, allocations: 0 / 445.3 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001649/0.1832, allocations: 474.9 kB / 445.7 MB, free: 10.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.529e-05/0.1832, allocations: 0 / 445.7 MB, free: 10.1 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.887e-05/0.1833, allocations: 0 / 445.7 MB, free: 10.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.758e-05/0.1833, allocations: 0 / 445.7 MB, free: 10.1 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.375e-05/0.1834, allocations: 3.984 kB / 445.7 MB, free: 10.1 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.866e-06/0.1834, allocations: 0 / 445.7 MB, free: 10.1 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001294/0.1847, allocations: 0.7018 MB / 446.4 MB, free: 9.395 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.816e-06/0.1847, allocations: 0 / 446.4 MB, free: 9.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.121e-05/0.1848, allocations: 25.7 kB / 446.5 MB, free: 9.363 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005335/0.1853, allocations: 299.7 kB / 446.7 MB, free: 9.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.12e-05/0.1854, allocations: 3.938 kB / 446.7 MB, free: 9.066 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.681e-06/0.1854, allocations: 4 kB / 446.8 MB, free: 9.062 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.1854, allocations: 0 / 446.8 MB, free: 9.062 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.0006049/0.186, allocations: 421.1 kB / 447.2 MB, free: 8.598 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.493e-05/0.1861, allocations: 16.02 kB / 447.2 MB, free: 8.582 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.337e-05/0.1861, allocations: 11.83 kB / 447.2 MB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001277/0.1863, allocations: 167.1 kB / 447.4 MB, free: 8.367 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.1863, allocations: 4 kB / 447.4 MB, free: 8.363 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.17e-05/0.1863, allocations: 4 kB / 447.4 MB, free: 8.359 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001103/0.1864, allocations: 29.7 kB / 447.4 MB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.1864, allocations: 0 / 447.4 MB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-06/0.1865, allocations: 0 / 447.4 MB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.1865, allocations: 0 / 447.4 MB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.214e-05/0.1865, allocations: 7.953 kB / 447.4 MB, free: 8.316 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000161/0.1867, allocations: 149.6 kB / 447.5 MB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.356e-05/0.1867, allocations: 18.52 kB / 447.6 MB, free: 8.094 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.895e-05/0.1867, allocations: 16.95 kB / 447.6 MB, free: 8.074 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.44e-06/0.1867, allocations: 0 / 447.6 MB, free: 8.074 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.246e-05/0.1868, allocations: 56.27 kB / 447.6 MB, free: 8.004 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1868, allocations: 0 / 447.6 MB, free: 8.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001894/0.187, allocations: 63.39 kB / 447.7 MB, free: 7.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.358e-05/0.1871, allocations: 81.05 kB / 447.8 MB, free: 7.832 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.036e-05/0.1871, allocations: 89.86 kB / 447.9 MB, free: 7.734 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.1871, allocations: 33.83 kB / 447.9 MB, free: 7.695 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.082e-05/0.1872, allocations: 84.14 kB / 448 MB, free: 7.609 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.92e-05/0.1872, allocations: 0 / 448 MB, free: 7.609 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.324e-06/0.1872, allocations: 0 / 448 MB, free: 7.609 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.1873, allocations: 314.8 kB / 448.3 MB, free: 7.293 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.356e-06/0.1874, allocations: 0 / 448.3 MB, free: 7.293 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.793e-06/0.1874, allocations: 4 kB / 448.3 MB, free: 7.289 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.046e-05/0.1874, allocations: 25.7 kB / 448.3 MB, free: 7.258 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1874, allocations: 64 / 448.3 MB, free: 7.258 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.54e-05/0.1875, allocations: 67.39 kB / 448.4 MB, free: 7.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.051e-05/0.1875, allocations: 29.7 kB / 448.4 MB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.1875, allocations: 0 / 448.4 MB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.1876, allocations: 0 / 448.4 MB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.1876, allocations: 4 kB / 448.4 MB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.1876, allocations: 0 / 448.4 MB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.814e-05/0.1876, allocations: 4 kB / 448.4 MB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.1876, allocations: 3.984 kB / 448.4 MB, free: 7.133 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.147e-05/0.1877, allocations: 151.5 kB / 448.6 MB, free: 6.969 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.532e-06/0.1877, allocations: 3.938 kB / 448.6 MB, free: 6.965 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.095e-05/0.1877, allocations: 7.062 kB / 448.6 MB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.1877, allocations: 0 / 448.6 MB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1878, allocations: 0 / 448.6 MB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.1878, allocations: 0 / 448.6 MB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000106/0.1879, allocations: 157.6 kB / 448.7 MB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.1879, allocations: 0 / 448.7 MB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1879, allocations: 0 / 448.7 MB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-06/0.1879, allocations: 0 / 448.7 MB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.1879, allocations: 0 / 448.7 MB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.1879, allocations: 4 kB / 448.7 MB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.1879, allocations: 0 / 448.7 MB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001049/0.188, allocations: 94.78 kB / 448.8 MB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.623e-05/0.1881, allocations: 77.11 kB / 448.9 MB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.1881, allocations: 4 kB / 448.9 MB, free: 6.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.245e-06/0.1881, allocations: 0 / 448.9 MB, free: 6.535 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.984e-05/0.1881, allocations: 4 kB / 448.9 MB, free: 6.531 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.1881, allocations: 7.969 kB / 448.9 MB, free: 6.523 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.12e-05/0.1882, allocations: 75.28 kB / 449 MB, free: 6.449 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1882, allocations: 0 / 449 MB, free: 6.449 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004022/0.1886, allocations: 152 kB / 449.1 MB, free: 6.301 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 (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.0007923/0.1894, allocations: 341.7 kB / 449.5 MB, free: 5.965 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.11e-05/0.1895, allocations: 63.39 kB / 449.5 MB, free: 5.891 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1895, allocations: 0 / 449.5 MB, free: 5.891 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.034e-05/0.1895, allocations: 55.41 kB / 449.6 MB, free: 5.824 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000128/0.1897, allocations: 7.953 kB / 449.6 MB, free: 5.816 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001918/0.1899, allocations: 74.77 kB / 449.7 MB, free: 5.719 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.1902, allocations: 0.6731 MB / 450.3 MB, free: 5.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.101e-06/0.1902, allocations: 0 / 450.3 MB, free: 5.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.145e-05/0.1902, allocations: 11.44 kB / 450.4 MB, free: 5.012 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1902, allocations: 4.125 kB / 450.4 MB, free: 5.008 MB / 382.1 MB Notification: Performance of Templates: time 0.00778/0.198, allocations: 3.495 MB / 453.9 MB, free: 1.508 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