Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.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.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 94.27 kB / 16.67 MB, free: 6.105 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.001122/0.001122, allocations: 177 kB / 17.57 MB, free: 5.824 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.976/1.976, allocations: 205.4 MB / 223.7 MB, free: 13.09 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.2757/0.2757, allocations: 43.58 MB / 315.6 MB, free: 0.4922 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.0006067/0.0006069, allocations: 12.88 kB / 385.2 MB, free: 56.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1445, allocations: 58.87 MB / 444.1 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0007271/0.1453, allocations: 264.5 kB / 444.4 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001157/0.1465, allocations: 0.5908 MB / 444.9 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.959e-05/0.1465, allocations: 0 / 444.9 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001052/0.1466, allocations: 7.922 kB / 445 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.532e-06/0.1467, allocations: 3.938 kB / 445 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007344/0.1474, allocations: 167.7 kB / 445.1 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.555e-05/0.1475, allocations: 27.97 kB / 445.2 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.074e-05/0.1475, allocations: 0 / 445.2 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.858e-05/0.1476, allocations: 15.94 kB / 445.2 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.145e-05/0.1476, allocations: 20.47 kB / 445.2 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.031e-05/0.1476, allocations: 0 / 445.2 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002927/0.1479, allocations: 163.7 kB / 445.3 MB, free: 3.992 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.051e-05/0.148, allocations: 60.44 kB / 445.4 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.504e-05/0.1481, allocations: 89.3 kB / 445.5 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001702/0.1483, allocations: 139.8 kB / 445.6 MB, free: 3.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1483, allocations: 0 / 445.6 MB, free: 3.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1483, allocations: 4 kB / 445.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.1483, allocations: 0 / 445.6 MB, free: 3.699 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0004111/0.1487, allocations: 468.6 kB / 446.1 MB, free: 3.195 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.1488, allocations: 12.03 kB / 446.1 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.939e-05/0.1488, allocations: 16.75 kB / 446.1 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.239e-05/0.1489, allocations: 176.2 kB / 446.3 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/0.1489, allocations: 20.38 kB / 446.3 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.64e-05/0.1489, allocations: 16.38 kB / 446.3 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001517/0.1491, allocations: 144.3 kB / 446.5 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.1491, allocations: 0 / 446.5 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.1491, allocations: 0 / 446.5 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1491, allocations: 0 / 446.5 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.956e-05/0.1492, allocations: 96.41 kB / 446.6 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001614/0.1494, allocations: 218.2 kB / 446.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000107/0.1495, allocations: 163 kB / 446.9 MB, free: 2.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.284e-05/0.1496, allocations: 165.7 kB / 447.1 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.447e-06/0.1496, allocations: 4 kB / 447.1 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001792/0.1498, allocations: 169.9 kB / 447.3 MB, free: 1.906 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 1.283e-06/0.1498, allocations: 0 / 447.3 MB, free: 1.906 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.0008839/0.1507, allocations: 0.7694 MB / 448 MB, free: 1.129 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/0.1508, allocations: 107.8 kB / 448.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.513e-05/0.1508, allocations: 113.7 kB / 448.3 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.624e-05/0.1509, allocations: 77.61 kB / 448.3 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.48e-05/0.1509, allocations: 93.48 kB / 448.4 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.395e-05/0.151, allocations: 138.5 kB / 448.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.965e-05/0.1511, allocations: 97.66 kB / 448.7 MB, free: 488 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.716e-05/0.1511, allocations: 342.8 kB / 449 MB, free: 136 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002447/0.1514, allocations: 189.8 kB / 449.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005675/0.152, allocations: 0.5331 MB / 449.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009176/0.1529, allocations: 0.771 MB / 450.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/0.1529, allocations: 8 kB / 450.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001053/0.154, allocations: 0.7471 MB / 451.2 MB, free: 13.55 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.154, allocations: 14.17 kB / 451.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.154, allocations: 12 kB / 451.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.073e-05/0.1541, allocations: 20 kB / 451.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003624/0.1544, allocations: 115.7 kB / 451.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.611e-05/0.1545, allocations: 23.94 kB / 451.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/0.1547, allocations: 71.3 kB / 451.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.275e-05/0.1547, allocations: 40.41 kB / 451.5 MB, free: 13.26 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 107 (state33[33],$PRE.state33[33],state33[32],$PRE.state33[32],state33[31],$PRE.state33[31],state33[30],$PRE.state33[30],state33[29],$PRE.state33[29],state33[28],$PRE.state33[28],state33[27],$PRE.state33[27],state33[26],$PRE.state33[26],state33[25],$PRE.state33[25],state33[24],$PRE.state33[24],state33[23],$PRE.state33[23],state33[22],$PRE.state33[22],state33[21],$PRE.state33[21],state33[20],$PRE.state33[20],state33[19],$PRE.state33[19],state33[18],$PRE.state33[18],state33[17],$PRE.state33[17],state33[16],$PRE.state33[16],state33[15],$PRE.state33[15],state33[14],$PRE.state33[14],state33[13],$PRE.state33[13],state33[12],$PRE.state33[12],state33[11],$PRE.state33[11],state33[10],$PRE.state33[10],state33[9],$PRE.state33[9],state33[8],$PRE.state33[8],state33[7],$PRE.state33[7],state33[6],$PRE.state33[6],state33[5],$PRE.state33[5],state33[4],$PRE.state33[4],state33[3],$PRE.state33[3],state33[2],$PRE.state33[2],state33[1],$PRE.state33[1],state4c[4],$PRE.state4c[4],state4c[3],$PRE.state4c[3],state4c[2],$PRE.state4c[2],state4c[1],$PRE.state4c[1],state4b[4],$PRE.state4b[4],state4b[3],$PRE.state4b[3],state4b[2],$PRE.state4b[2],state4b[1],$PRE.state4b[1],state4a[4],$PRE.state4a[4],state4a[3],$PRE.state4a[3],state4a[2],$PRE.state4a[2],state4a[1],$PRE.state4a[1],state2[2],$PRE.state2[2],state2[1],$PRE.state2[1],r33,$PRE.r33,r4c,$PRE.r4c,r4b,$PRE.r4b,r4a,$PRE.r4a,r2,$PRE.r2,result,$PRE.result,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * 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 0.000249/0.155, allocations: 253.3 kB / 451.8 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.7e-05/0.155, allocations: 19.75 kB / 451.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.534e-05/0.155, allocations: 5.875 kB / 451.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.155, allocations: 0 / 451.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/0.1551, allocations: 0 / 451.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.1551, allocations: 0 / 451.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001646/0.1552, allocations: 189.8 kB / 452 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1552, allocations: 0 / 452 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.59e-06/0.1552, allocations: 3.938 kB / 452 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1553, allocations: 0 / 452 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.1553, allocations: 3.984 kB / 452 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1553, allocations: 0 / 452 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1553, allocations: 4 kB / 452 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008676/0.1562, allocations: 0.6148 MB / 452.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.274e-05/0.1562, allocations: 108.7 kB / 452.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.1562, allocations: 0 / 452.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.201e-05/0.1563, allocations: 0 / 452.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.46e-05/0.1563, allocations: 0 / 452.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.1563, allocations: 4 kB / 452.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.544e-05/0.1563, allocations: 79.31 kB / 452.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1564, allocations: 0 / 452.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005007/0.1569, allocations: 95.98 kB / 452.9 MB, free: 11.79 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: 54 ($whenCondition1,result,r2,r4a,r4b,r4c,r33,state2[1],state2[2],state4a[1],state4a[2],state4a[3],state4a[4],state4b[1],state4b[2],state4b[3],state4b[4],state4c[1],state4c[2],state4c[3],state4c[4],state33[1],state33[2],state33[3],state33[4],state33[5],state33[6],state33[7],state33[8],state33[9],state33[10],state33[11],state33[12],state33[13],state33[14],state33[15],state33[16],state33[17],state33[18],state33[19],state33[20],state33[21],state33[22],state33[23],state33[24],state33[25],state33[26],state33[27],state33[28],state33[29],state33[30],state33[31],state33[32],state33[33]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006068/0.1575, allocations: 266.5 kB / 453.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006375/0.1581, allocations: 473.5 kB / 453.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1581, allocations: 4.188 kB / 453.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001568/0.1583, allocations: 156.4 kB / 453.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001433/0.1585, allocations: 10.91 kB / 453.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000734/0.1592, allocations: 0.4965 MB / 454.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004605/0.1597, allocations: 0.7298 MB / 455 MB, free: 9.637 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.28e-05/0.1597, allocations: 23.44 kB / 455 MB, free: 9.613 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1597, allocations: 3.938 kB / 455 MB, free: 9.609 MB / 334.1 MB Notification: Performance of Templates: time 0.007012/0.1668, allocations: 3.718 MB / 458.7 MB, free: 5.887 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.makefile make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbersCalcHelperMain.o OMCppModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbersCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbersCalcHelperMain.o] Error 1