Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.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.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000872/0.0008722, allocations: 93.62 kB / 17.63 MB, free: 6.141 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.0009886/0.0009887, allocations: 182.6 kB / 18.52 MB, free: 5.301 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.464/1.464, allocations: 223.2 MB / 242.5 MB, free: 336 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.2369/0.2369, allocations: 44.23 MB / 337.9 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003674/0.0003674, allocations: 8 kB / 410.3 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.1616, allocations: 61.91 MB / 472.2 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0007918/0.1625, allocations: 262.8 kB / 472.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009376/0.1634, allocations: 416.8 kB / 472.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.955e-05/0.1635, allocations: 0 / 472.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.229e-05/0.1636, allocations: 3.938 kB / 472.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001317/0.1637, allocations: 4 kB / 472.8 MB, free: 13.07 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeClassSections: time 0.0005459/0.1643, allocations: 143.7 kB / 473 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001329/0.1644, allocations: 67.84 kB / 473.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.714e-05/0.1644, allocations: 0 / 473.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.682e-05/0.1645, allocations: 35.97 kB / 473.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.627e-05/0.1646, allocations: 23.89 kB / 473.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.25e-05/0.1646, allocations: 4 kB / 473.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001779/0.1648, allocations: 87.84 kB / 473.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.187e-05/0.1649, allocations: 19.97 kB / 473.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.794e-05/0.1649, allocations: 29.7 kB / 473.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001618/0.1651, allocations: 95.8 kB / 473.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1651, allocations: 0 / 473.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1651, allocations: 0 / 473.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.1651, allocations: 0 / 473.3 MB, free: 12.57 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005347/0.1657, allocations: 381 kB / 473.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.1657, allocations: 8.031 kB / 473.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.684e-05/0.1658, allocations: 4 kB / 473.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002143/0.166, allocations: 187 kB / 473.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.166, allocations: 0 / 473.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.413e-05/0.166, allocations: 4 kB / 473.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002088/0.1662, allocations: 101.6 kB / 474 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.1663, allocations: 3.938 kB / 474 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/0.1663, allocations: 0 / 474 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.1663, allocations: 0 / 474 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.367e-05/0.1664, allocations: 31.91 kB / 474 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002983/0.1667, allocations: 165.9 kB / 474.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001014/0.1668, allocations: 46.56 kB / 474.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.847e-05/0.1668, allocations: 28.91 kB / 474.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.1669, allocations: 0 / 474.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003116/0.1672, allocations: 139.1 kB / 474.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.1672, allocations: 0 / 474.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003081/0.1675, allocations: 121.7 kB / 474.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.1676, allocations: 59.41 kB / 474.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.1677, allocations: 97.86 kB / 474.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.22e-05/0.1678, allocations: 37.69 kB / 474.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.181e-05/0.1678, allocations: 80.33 kB / 474.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.66e-05/0.1679, allocations: 23.66 kB / 474.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.193e-06/0.1679, allocations: 4 kB / 474.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000212/0.1681, allocations: 318.8 kB / 475.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.008e-05/0.1682, allocations: 23.98 kB / 475.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.802e-05/0.1683, allocations: 77.38 kB / 475.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.8e-05/0.1684, allocations: 65.62 kB / 475.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.1684, allocations: 0 / 475.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000255/0.1686, allocations: 159.1 kB / 475.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.886e-05/0.1687, allocations: 36.16 kB / 475.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1687, allocations: 4 kB / 475.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.1687, allocations: 0 / 475.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.1688, allocations: 23.92 kB / 475.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.1689, allocations: 224 / 475.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.057e-05/0.1689, allocations: 15.91 kB / 475.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.1689, allocations: 8 kB / 475.5 MB, free: 10.09 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,samples) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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.0001742/0.1691, allocations: 136.6 kB / 475.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.593e-05/0.1691, allocations: 288 / 475.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.937e-05/0.1692, allocations: 11.92 kB / 475.7 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1692, allocations: 0 / 475.7 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1692, allocations: 3.938 kB / 475.7 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1692, allocations: 4 kB / 475.7 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001683/0.1694, allocations: 185.5 kB / 475.9 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1694, allocations: 0 / 475.9 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.271e-05/0.1694, allocations: 4 kB / 475.9 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1695, allocations: 0 / 475.9 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.1695, allocations: 3.984 kB / 475.9 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.1695, allocations: 12 kB / 475.9 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.1695, allocations: 4 kB / 475.9 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002187/0.1697, allocations: 133 kB / 476 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.929e-05/0.1698, allocations: 81.2 kB / 476.1 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.232e-05/0.1698, allocations: 4 kB / 476.1 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002005/0.17, allocations: 27.95 kB / 476.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.482e-05/0.17, allocations: 7.938 kB / 476.2 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.1701, allocations: 8 kB / 476.2 MB, free: 9.383 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.603e-05/0.1701, allocations: 79.28 kB / 476.2 MB, free: 9.305 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1701, allocations: 4 kB / 476.2 MB, free: 9.301 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002783/0.1704, allocations: 43.98 kB / 476.3 MB, free: 9.258 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: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004595/0.1709, allocations: 167.2 kB / 476.4 MB, free: 9.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002455/0.1711, allocations: 131.3 kB / 476.6 MB, free: 8.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.1712, allocations: 4 kB / 476.6 MB, free: 8.957 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001564/0.1713, allocations: 27.92 kB / 476.6 MB, free: 8.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001696/0.1715, allocations: 10.03 kB / 476.6 MB, free: 8.922 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004563/0.172, allocations: 180.3 kB / 476.8 MB, free: 8.711 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.1723, allocations: 0.6892 MB / 477.5 MB, free: 7.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.134e-05/0.1724, allocations: 15.44 kB / 477.5 MB, free: 7.98 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1724, allocations: 0 / 477.5 MB, free: 7.98 MB / 350.1 MB Notification: Performance of Templates: time 0.004302/0.1767, allocations: 1.785 MB / 479.3 MB, free: 6.195 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.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"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegersCalcHelperMain.o OMCppModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegersCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegersCalcHelperMain.o] Error 1