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.0009232/0.0009232, allocations: 92.23 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 184 kB / 16.92 MB, free: 6.922 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.322/1.322, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1267/0.1267, allocations: 2.953 MB / 295 MB, free: 3.934 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002855/0.0002855, allocations: 8 kB / 357.1 MB, free: 3.355 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08128/0.08158, allocations: 51.35 MB / 408.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.001642/0.08325, allocations: 1.223 MB / 409.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001698/0.08497, allocations: 1.261 MB / 411 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.393e-05/0.08503, allocations: 4 kB / 411 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002551/0.0853, allocations: 39.84 kB / 411 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.777e-05/0.08539, allocations: 23.86 kB / 411 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000238/0.08566, allocations: 55.94 kB / 411.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.772e-05/0.08576, allocations: 59.83 kB / 411.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.17e-05/0.08581, allocations: 7.984 kB / 411.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.694e-05/0.08587, allocations: 27.8 kB / 411.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.08599, allocations: 23.92 kB / 411.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.08602, allocations: 4 kB / 411.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001552/0.08618, allocations: 99.84 kB / 411.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.584e-05/0.08623, allocations: 19.92 kB / 411.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.763e-05/0.0863, allocations: 49.56 kB / 411.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001965/0.0865, allocations: 88.08 kB / 411.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.08651, allocations: 0 / 411.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.08652, allocations: 0 / 411.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.097e-06/0.08653, allocations: 0 / 411.5 MB, free: 12.96 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.0003832/0.08691, allocations: 401 kB / 411.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.08695, allocations: 8.031 kB / 411.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.523e-05/0.08699, allocations: 8.844 kB / 411.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002102/0.08721, allocations: 188.2 kB / 412.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-06/0.08723, allocations: 384 / 412.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.437e-05/0.08725, allocations: 8.359 kB / 412.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001222/0.08738, allocations: 65.98 kB / 412.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.08739, allocations: 0 / 412.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.08741, allocations: 0 / 412.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.08741, allocations: 0 / 412.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.061e-05/0.08749, allocations: 39.97 kB / 412.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001596/0.08766, allocations: 165.7 kB / 412.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.572e-05/0.08774, allocations: 54.5 kB / 412.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.92e-05/0.08782, allocations: 44.89 kB / 412.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.346e-06/0.08783, allocations: 0 / 412.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001925/0.08803, allocations: 109 kB / 412.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.243e-06/0.08805, allocations: 4 kB / 412.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003179/0.08838, allocations: 195.3 kB / 412.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.08844, allocations: 81.11 kB / 412.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.08855, allocations: 137.7 kB / 412.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.08858, allocations: 29.7 kB / 413 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.272e-05/0.08863, allocations: 84.14 kB / 413.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.236e-05/0.08866, allocations: 19.72 kB / 413.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.739e-05/0.0887, allocations: 17.7 kB / 413.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.47e-05/0.0888, allocations: 322.8 kB / 413.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.692e-05/0.08885, allocations: 27.98 kB / 413.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.996e-05/0.08891, allocations: 27.98 kB / 413.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001309/0.08906, allocations: 116.2 kB / 413.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.08907, allocations: 0 / 413.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002028/0.08928, allocations: 167.2 kB / 413.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.354e-05/0.08932, allocations: 40.03 kB / 413.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.08933, allocations: 4 kB / 413.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.317e-06/0.08935, allocations: 0 / 413.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.312e-05/0.08941, allocations: 4 kB / 413.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.817e-06/0.08942, allocations: 4 kB / 413.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.113e-05/0.08948, allocations: 11.98 kB / 413.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.0895, allocations: 0 / 413.8 MB, free: 10.35 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.0001087/0.08961, allocations: 155.5 kB / 413.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.25e-05/0.08964, allocations: 15.84 kB / 414 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.3e-05/0.08967, allocations: 8.375 kB / 414 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.08968, allocations: 0 / 414 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.08968, allocations: 0 / 414 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.08969, allocations: 4 kB / 414 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001637/0.08986, allocations: 185.6 kB / 414.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-06/0.08987, allocations: 0 / 414.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.227e-05/0.0899, allocations: 3.938 kB / 414.2 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.08991, allocations: 4 kB / 414.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.08992, allocations: 7.984 kB / 414.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.08993, allocations: 4.031 kB / 414.2 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.08994, allocations: 3.938 kB / 414.2 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002569/0.0902, allocations: 210.7 kB / 414.4 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.072e-05/0.09025, allocations: 92.95 kB / 414.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.09028, allocations: 4 kB / 414.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.913e-05/0.09034, allocations: 7.984 kB / 414.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.521e-05/0.09037, allocations: 0 / 414.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.435e-05/0.09039, allocations: 7.938 kB / 414.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.946e-05/0.09046, allocations: 103.3 kB / 414.6 MB, free: 9.438 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09047, allocations: 0 / 414.6 MB, free: 9.438 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002428/0.09072, allocations: 43.98 kB / 414.6 MB, free: 9.395 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.0004704/0.09119, allocations: 231.3 kB / 414.9 MB, free: 9.207 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002125/0.09142, allocations: 159.4 kB / 415 MB, free: 9.039 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.09143, allocations: 0 / 415 MB, free: 9.039 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001371/0.09157, allocations: 123.4 kB / 415.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001848/0.09176, allocations: 15.94 kB / 415.2 MB, free: 8.891 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000339/0.09211, allocations: 222.2 kB / 415.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002259/0.09235, allocations: 0.6848 MB / 416.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.678e-05/0.09241, allocations: 11.44 kB / 416.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.09242, allocations: 0 / 416.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of Templates: time 0.003159/0.09558, allocations: 1.515 MB / 417.6 MB, free: 6.41 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