Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.CSVTest.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/ExternData 3.0.4-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/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(ExternData.Examples.CSVTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.CSVTest") translateModel(ExternData.Examples.CSVTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.CSVTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004948/0.004949, allocations: 101.1 kB / 15.88 MB, free: 5.867 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.001248/0.001248, allocations: 192.7 kB / 16.79 MB, free: 5.809 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.281/1.281, allocations: 222.9 MB / 240.5 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1159/0.1159, allocations: 2.939 MB / 293.6 MB, free: 3.207 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 67.89 kB / 354.7 MB, free: 4.152 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08025/0.08155, allocations: 50.34 MB / 405 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.00264/0.08423, allocations: 1.566 MB / 406.6 MB, free: 192 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.08588, allocations: 1.268 MB / 407.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.463e-05/0.08595, allocations: 0 / 407.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002723/0.08623, allocations: 47.84 kB / 407.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.39e-05/0.08631, allocations: 19.92 kB / 407.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002233/0.08654, allocations: 66.69 kB / 408 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.392e-05/0.08665, allocations: 55.78 kB / 408 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.312e-05/0.08669, allocations: 7.984 kB / 408 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.915e-05/0.08675, allocations: 31.84 kB / 408 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.0869, allocations: 27.86 kB / 408.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.303e-05/0.08692, allocations: 0 / 408.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001515/0.08708, allocations: 99.86 kB / 408.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.551e-05/0.08714, allocations: 15.97 kB / 408.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.947e-05/0.0872, allocations: 23.86 kB / 408.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001509/0.08735, allocations: 88.05 kB / 408.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.08736, allocations: 0 / 408.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.62e-07/0.08737, allocations: 0 / 408.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.08738, allocations: 0 / 408.3 MB, free: 14.44 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004277/0.08781, allocations: 412.9 kB / 408.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.08785, allocations: 8.031 kB / 408.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.816e-05/0.0879, allocations: 4.938 kB / 408.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001675/0.08807, allocations: 180.3 kB / 408.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.536e-06/0.08809, allocations: 4.375 kB / 408.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.439e-05/0.08811, allocations: 4.375 kB / 408.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001307/0.08824, allocations: 69.91 kB / 409 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.08826, allocations: 0 / 409 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.08828, allocations: 4 kB / 409 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.08829, allocations: 7.938 kB / 409 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.402e-05/0.08836, allocations: 31.92 kB / 409 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000168/0.08853, allocations: 177.5 kB / 409.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.864e-05/0.08863, allocations: 50.56 kB / 409.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.109e-05/0.0887, allocations: 40.89 kB / 409.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.987e-06/0.08871, allocations: 0 / 409.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001653/0.08888, allocations: 113 kB / 409.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.253e-06/0.0889, allocations: 0 / 409.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003222/0.08922, allocations: 187.3 kB / 409.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/0.08928, allocations: 85.09 kB / 409.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.921e-05/0.08939, allocations: 129.8 kB / 409.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.08941, allocations: 29.7 kB / 409.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.328e-05/0.08946, allocations: 88.12 kB / 409.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.972e-05/0.08949, allocations: 15.97 kB / 409.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.413e-05/0.08954, allocations: 25.72 kB / 409.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.542e-05/0.08964, allocations: 322.8 kB / 410.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.62e-05/0.0897, allocations: 27.98 kB / 410.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.491e-05/0.08975, allocations: 27.98 kB / 410.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000117/0.08987, allocations: 124.2 kB / 410.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.08988, allocations: 0 / 410.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002066/0.09009, allocations: 163.2 kB / 410.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.303e-05/0.09013, allocations: 37.69 kB / 410.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-06/0.09014, allocations: 0 / 410.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.09016, allocations: 4 kB / 410.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.358e-05/0.09022, allocations: 4 kB / 410.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.09023, allocations: 96 / 410.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.855e-05/0.09029, allocations: 11.84 kB / 410.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.09031, allocations: 7.922 kB / 410.6 MB, free: 11.81 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: 7 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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.000102/0.09042, allocations: 153.9 kB / 410.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.756e-05/0.09045, allocations: 23.81 kB / 410.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.702e-05/0.09048, allocations: 4.375 kB / 410.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.09048, allocations: 0 / 410.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.09049, allocations: 4 kB / 410.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.0905, allocations: 0 / 410.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001283/0.09063, allocations: 193.6 kB / 411 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.09064, allocations: 0 / 411 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.19e-05/0.09067, allocations: 3.938 kB / 411 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.09068, allocations: 4 kB / 411 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.09069, allocations: 3.938 kB / 411 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.0907, allocations: 0 / 411 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.0907, allocations: 0 / 411 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002634/0.09097, allocations: 218.7 kB / 411.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.096e-05/0.09102, allocations: 84.95 kB / 411.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/0.09105, allocations: 4 kB / 411.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.637e-05/0.09111, allocations: 4 kB / 411.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.759e-05/0.09114, allocations: 3.984 kB / 411.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.09116, allocations: 8 kB / 411.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.222e-05/0.09123, allocations: 103.3 kB / 411.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09124, allocations: 0 / 411.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002354/0.09148, allocations: 36 kB / 411.5 MB, free: 10.87 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: 6 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0004872/0.09197, allocations: 232.2 kB / 411.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002159/0.0922, allocations: 171.3 kB / 411.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.09221, allocations: 0 / 411.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.09232, allocations: 123.4 kB / 412 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/0.09251, allocations: 14.19 kB / 412 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003485/0.09287, allocations: 208.9 kB / 412.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002179/0.0931, allocations: 0.6848 MB / 412.9 MB, free: 9.406 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.062e-05/0.09313, allocations: 15.44 kB / 412.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.09314, allocations: 0 / 412.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of Templates: time 0.003054/0.0962, allocations: 1.522 MB / 414.4 MB, free: 7.875 MB / 350.1 MB make -j1 -f ExternData_ExternData.Examples.CSVTest.makefile make -j1 -f ExternData_ExternData.Examples.CSVTest.makefile clang++ -std=c++14 -fopenmp=libomp -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/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/Resources/Include" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/Resources/Include" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppExternData_ExternData.Examples.CSVTestCalcHelperMain.o OMCppExternData_ExternData.Examples.CSVTestCalcHelperMain.cpp In file included from OMCppExternData_ExternData.Examples.CSVTestCalcHelperMain.cpp:28: ./OMCppExternData_ExternData.Examples.CSVTestFunctions.cpp:99:3: error: no matching function for call to 'ED_getDoubleArray2DFromCSV' ED_getDoubleArray2DFromCSV(csv__ext, ConstArray(field_).getData(), tmp7.getData(), y_.getDim(1), y_.getDim(2)); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/Resources/Include/ED_CSVFile.h:35:6: note: candidate function not viable: 2nd argument ('const int *') would lose const qualifier void ED_getDoubleArray2DFromCSV(void* _csv, int* field, double* a, size_t m, size_t n); ^ 1 error generated. make: *** [: OMCppExternData_ExternData.Examples.CSVTestCalcHelperMain.o] Error 1