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/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 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 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 87.33 kB / 17.63 MB, free: 5.715 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.001193/0.001193, allocations: 183.5 kB / 18.52 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 223.2 MB / 242.5 MB, free: 352 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.245/0.245, allocations: 44.23 MB / 337.9 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003237/0.0003237, allocations: 13.78 kB / 410.3 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1597/0.1601, allocations: 61.93 MB / 472.2 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0007272/0.1609, allocations: 219 kB / 472.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004392/0.1653, allocations: 2.175 MB / 474.6 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.153e-05/0.1653, allocations: 0 / 474.6 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.356e-05/0.1654, allocations: 0 / 474.6 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.955e-06/0.1654, allocations: 4 kB / 474.6 MB, free: 11.31 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:1098:5-1194:31:writable] Warning: Pure function ‘ModelicaTest.Math.Random.truncatedDistributions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.00139/0.1668, allocations: 466.5 kB / 475 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.668e-05/0.1668, allocations: 0 / 475 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.992e-05/0.1669, allocations: 0 / 475 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.878e-05/0.1669, allocations: 4 kB / 475 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.249e-05/0.1669, allocations: 4 kB / 475 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.074e-06/0.1669, allocations: 0 / 475 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001167/0.1681, allocations: 0.6979 MB / 475.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.776e-06/0.1681, allocations: 3.984 kB / 475.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.395e-05/0.1682, allocations: 29.7 kB / 475.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004329/0.1686, allocations: 295.7 kB / 476.1 MB, free: 9.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.1686, allocations: 0 / 476.1 MB, free: 9.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1686, allocations: 0 / 476.1 MB, free: 9.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.1686, allocations: 0 / 476.1 MB, free: 9.82 MB / 350.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.0004586/0.1691, allocations: 433 kB / 476.5 MB, free: 9.344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.1692, allocations: 12.55 kB / 476.5 MB, free: 9.332 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.193e-05/0.1692, allocations: 0 / 476.5 MB, free: 9.332 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.1693, allocations: 163 kB / 476.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.1693, allocations: 0 / 476.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.307e-05/0.1694, allocations: 4 kB / 476.7 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.673e-05/0.1695, allocations: 29.66 kB / 476.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.1695, allocations: 0 / 476.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.1695, allocations: 4 kB / 476.7 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.1695, allocations: 4 kB / 476.7 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.14e-05/0.1695, allocations: 7.984 kB / 476.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001522/0.1697, allocations: 145.7 kB / 476.8 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.405e-05/0.1697, allocations: 22.55 kB / 476.9 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.514e-05/0.1698, allocations: 4.859 kB / 476.9 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.723e-06/0.1698, allocations: 0 / 476.9 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.34e-05/0.1698, allocations: 68.22 kB / 476.9 MB, free: 8.766 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.1698, allocations: 0 / 476.9 MB, free: 8.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001892/0.17, allocations: 63.45 kB / 477 MB, free: 8.691 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/0.1701, allocations: 85.05 kB / 477.1 MB, free: 8.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.056e-05/0.1702, allocations: 89.86 kB / 477.2 MB, free: 8.492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.1702, allocations: 25.7 kB / 477.2 MB, free: 8.461 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.327e-05/0.1702, allocations: 80.14 kB / 477.3 MB, free: 8.379 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.098e-05/0.1703, allocations: 3.938 kB / 477.3 MB, free: 8.375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.415e-06/0.1703, allocations: 0 / 477.3 MB, free: 8.375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002556/0.1705, allocations: 319 kB / 477.6 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.002e-05/0.1705, allocations: 4 kB / 477.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.638e-06/0.1706, allocations: 0 / 477.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.423e-05/0.1706, allocations: 29.69 kB / 477.6 MB, free: 8.016 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1706, allocations: 0 / 477.6 MB, free: 8.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.734e-05/0.1707, allocations: 59.41 kB / 477.7 MB, free: 7.945 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.528e-05/0.1707, allocations: 29.7 kB / 477.7 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.1707, allocations: 11.94 kB / 477.7 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.1708, allocations: 4.047 kB / 477.7 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.1708, allocations: 4 kB / 477.7 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.1708, allocations: 0 / 477.7 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.653e-05/0.1708, allocations: 3.984 kB / 477.7 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.1708, allocations: 0 / 477.7 MB, free: 7.887 MB / 350.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 0.0001277/0.1709, allocations: 139.5 kB / 477.9 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.376e-05/0.171, allocations: 0 / 477.9 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.463e-05/0.171, allocations: 11.02 kB / 477.9 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.171, allocations: 3.953 kB / 477.9 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.171, allocations: 0 / 477.9 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.171, allocations: 8 kB / 477.9 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.1711, allocations: 153.6 kB / 478 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.1711, allocations: 0 / 478 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1711, allocations: 0 / 478 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.1711, allocations: 0 / 478 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.303e-06/0.1712, allocations: 0 / 478 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.1712, allocations: 4 kB / 478 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.1712, allocations: 3.953 kB / 478.1 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001118/0.1713, allocations: 90.83 kB / 478.1 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.971e-05/0.1713, allocations: 81.11 kB / 478.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.1714, allocations: 0 / 478.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.565e-06/0.1714, allocations: 0 / 478.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.561e-05/0.1714, allocations: 0 / 478.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-06/0.1714, allocations: 3.953 kB / 478.2 MB, free: 7.289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.309e-05/0.1714, allocations: 79.28 kB / 478.3 MB, free: 7.211 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.234e-06/0.1714, allocations: 0 / 478.3 MB, free: 7.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004521/0.1719, allocations: 159.8 kB / 478.5 MB, free: 7.055 MB / 350.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.0008152/0.1727, allocations: 346.8 kB / 478.8 MB, free: 6.715 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001028/0.1728, allocations: 59.39 kB / 478.9 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1728, allocations: 0 / 478.9 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.554e-05/0.1729, allocations: 55.41 kB / 478.9 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001346/0.173, allocations: 10.53 kB / 478.9 MB, free: 6.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002136/0.1733, allocations: 100.7 kB / 479 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.1736, allocations: 0.6692 MB / 479.7 MB, free: 5.742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.437e-05/0.1736, allocations: 11.44 kB / 479.7 MB, free: 5.73 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1736, allocations: 0 / 479.7 MB, free: 5.73 MB / 350.1 MB Notification: Performance of Templates: time 0.006508/0.1801, allocations: 3.288 MB / 483 MB, free: 2.438 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributionsCalcHelperMain.o OMCppModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributionsCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributionsCalcHelperMain.o] Error 1