Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009885/0.0009944, allocations: 95.2 kB / 17.63 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001837/0.001837, allocations: 198.5 kB / 18.54 MB, free: 5.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.526/1.526, allocations: 227.3 MB / 246.6 MB, free: 12.03 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2402/0.2402, allocations: 45.92 MB / 344.7 MB, free: 12.26 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002771/0.0002771, allocations: 11.94 kB / 418.7 MB, free: 20.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1572, allocations: 63.46 MB / 482.1 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0007507/0.158, allocations: 254.9 kB / 482.4 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008838/0.1589, allocations: 413.6 kB / 482.8 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.596e-05/0.1589, allocations: 0 / 482.8 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.358e-05/0.159, allocations: 3.938 kB / 482.8 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002097/0.1593, allocations: 7.938 kB / 482.8 MB, free: 4.742 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0005883/0.1598, allocations: 147.7 kB / 482.9 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001527/0.16, allocations: 59.84 kB / 483 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.439e-05/0.1601, allocations: 4 kB / 483 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.449e-05/0.1602, allocations: 39.91 kB / 483 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.876e-05/0.1602, allocations: 19.95 kB / 483.1 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.412e-05/0.1603, allocations: 4 kB / 483.1 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000195/0.1605, allocations: 91.84 kB / 483.1 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.15e-05/0.1605, allocations: 19.97 kB / 483.2 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.725e-05/0.1606, allocations: 25.7 kB / 483.2 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002041/0.1608, allocations: 91.86 kB / 483.3 MB, free: 4.242 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.339e-05/0.1608, allocations: 7.938 kB / 483.3 MB, free: 4.234 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.1609, allocations: 0 / 483.3 MB, free: 4.234 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1609, allocations: 0 / 483.3 MB, free: 4.234 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.0006928/0.1616, allocations: 377 kB / 483.7 MB, free: 3.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.1616, allocations: 8.031 kB / 483.7 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.757e-05/0.1617, allocations: 4 kB / 483.7 MB, free: 3.801 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00023/0.1619, allocations: 183 kB / 483.8 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.1619, allocations: 4 kB / 483.8 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.722e-05/0.162, allocations: 11.98 kB / 483.9 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002092/0.1622, allocations: 89.64 kB / 483.9 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.1622, allocations: 0 / 483.9 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.925e-05/0.1622, allocations: 0 / 483.9 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.1622, allocations: 4 kB / 484 MB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.484e-05/0.1623, allocations: 27.91 kB / 484 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002898/0.1626, allocations: 177.8 kB / 484.2 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.381e-05/0.1627, allocations: 42.56 kB / 484.2 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.27e-05/0.1628, allocations: 32.91 kB / 484.2 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.1628, allocations: 0 / 484.2 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002788/0.1631, allocations: 131.2 kB / 484.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.182e-06/0.1631, allocations: 3.938 kB / 484.4 MB, free: 2.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003092/0.1634, allocations: 129.7 kB / 484.5 MB, free: 2.855 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/0.1635, allocations: 51.41 kB / 484.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.646e-05/0.1635, allocations: 101.8 kB / 484.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.496e-05/0.1636, allocations: 29.7 kB / 484.7 MB, free: 2.648 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.17e-05/0.1636, allocations: 80.33 kB / 484.7 MB, free: 2.562 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.516e-05/0.1637, allocations: 23.72 kB / 484.8 MB, free: 2.539 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.104e-06/0.1637, allocations: 4 kB / 484.8 MB, free: 2.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1638, allocations: 322.8 kB / 485.1 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.505e-05/0.1639, allocations: 19.98 kB / 485.1 MB, free: 2.191 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.259e-05/0.164, allocations: 78.84 kB / 485.2 MB, free: 2.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.637e-05/0.1641, allocations: 65.62 kB / 485.2 MB, free: 2.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1641, allocations: 4 kB / 485.2 MB, free: 2.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002321/0.1643, allocations: 155.1 kB / 485.4 MB, free: 1.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.084e-05/0.1644, allocations: 33.7 kB / 485.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.1644, allocations: 0 / 485.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.1644, allocations: 7.938 kB / 485.4 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.1645, allocations: 15.98 kB / 485.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.1646, allocations: 8.297 kB / 485.5 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.061e-05/0.1646, allocations: 11.84 kB / 485.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.1646, allocations: 11.98 kB / 485.5 MB, free: 1.758 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.000172/0.1648, allocations: 133.7 kB / 485.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.89e-05/0.1648, allocations: 4 kB / 485.6 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.567e-05/0.1649, allocations: 7.969 kB / 485.6 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.1649, allocations: 0 / 485.6 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.1649, allocations: 8 kB / 485.6 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.1649, allocations: 0 / 485.6 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001711/0.1651, allocations: 181.5 kB / 485.8 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1651, allocations: 0 / 485.8 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.782e-05/0.1652, allocations: 7.984 kB / 485.8 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1652, allocations: 0 / 485.8 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.1652, allocations: 4.062 kB / 485.8 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.1652, allocations: 4 kB / 485.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1652, allocations: 0 / 485.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002313/0.1654, allocations: 133.4 kB / 486 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.629e-05/0.1655, allocations: 88.97 kB / 486 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.121e-05/0.1655, allocations: 3.984 kB / 486.1 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.1657, allocations: 27.97 kB / 486.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.898e-05/0.1658, allocations: 7.984 kB / 486.1 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.1658, allocations: 4 kB / 486.1 MB, free: 1.059 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001296/0.1659, allocations: 87.22 kB / 486.2 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1659, allocations: 0 / 486.2 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002925/0.1662, allocations: 43.98 kB / 486.2 MB, free: 0.9297 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.0004303/0.1667, allocations: 173.2 kB / 486.4 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000324/0.167, allocations: 131.3 kB / 486.5 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.167, allocations: 0 / 486.5 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.025e-05/0.1671, allocations: 31.92 kB / 486.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001636/0.1673, allocations: 8 kB / 486.6 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000418/0.1677, allocations: 168.5 kB / 486.7 MB, free: 404 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000358/0.1681, allocations: 0.6892 MB / 487.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.698e-05/0.1681, allocations: 11.44 kB / 487.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1681, allocations: 0 / 487.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of Templates: time 0.003864/0.172, allocations: 1.792 MB / 489.2 MB, free: 13.88 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile make -j1 -f ModelicaTest_trunk_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_trunk_ModelicaTest.Math.Random.TestRandomIntegersCalcHelperMain.o OMCppModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegersCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegersCalcHelperMain.o] Error 1