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.001045/0.001045, allocations: 103.8 kB / 16.41 MB, free: 6.449 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.001037/0.001038, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.232/1.232, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01315/0.01315, allocations: 2.959 MB / 294.2 MB, free: 11.76 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 63.91 kB / 406.9 MB, free: 28.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07788/0.07903, allocations: 50.33 MB / 457.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.00251/0.08158, allocations: 1.508 MB / 458.8 MB, free: 8.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001586/0.08319, allocations: 1.268 MB / 460 MB, free: 7.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.217e-05/0.08325, allocations: 0 / 460 MB, free: 7.586 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:53:3-77:14:writable] Warning: Pure function 'ExternData.CSVFile' contains a call to impure function 'ExternData.Types.ExternCSVFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003187/0.08358, allocations: 51.7 kB / 460.1 MB, free: 7.535 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.069e-05/0.08367, allocations: 31.84 kB / 460.1 MB, free: 7.504 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002432/0.08392, allocations: 83.78 kB / 460.2 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001113/0.08404, allocations: 63.84 kB / 460.3 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.786e-05/0.08409, allocations: 11.92 kB / 460.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.358e-05/0.08414, allocations: 19.88 kB / 460.3 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002854/0.08444, allocations: 35.83 kB / 460.3 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.636e-05/0.08446, allocations: 4 kB / 460.3 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001654/0.08463, allocations: 103.9 kB / 460.4 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.15e-05/0.08469, allocations: 11.92 kB / 460.5 MB, free: 7.176 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.899e-05/0.08475, allocations: 31.86 kB / 460.5 MB, free: 7.145 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001942/0.08495, allocations: 123.7 kB / 460.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.08496, allocations: 0 / 460.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.08497, allocations: 0 / 460.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.08498, allocations: 3.938 kB / 460.6 MB, free: 7.02 MB / 334.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.0004342/0.08542, allocations: 397 kB / 461 MB, free: 6.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.08545, allocations: 15.89 kB / 461 MB, free: 6.562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.717e-05/0.0855, allocations: 8.844 kB / 461 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002135/0.08571, allocations: 192.2 kB / 461.2 MB, free: 6.328 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.08573, allocations: 8.375 kB / 461.2 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.154e-05/0.08575, allocations: 384 / 461.2 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001326/0.08589, allocations: 69.98 kB / 461.3 MB, free: 6.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.0859, allocations: 0 / 461.3 MB, free: 6.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.08592, allocations: 4 kB / 461.3 MB, free: 6.242 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.08593, allocations: 0 / 461.3 MB, free: 6.242 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.394e-05/0.086, allocations: 23.98 kB / 461.3 MB, free: 6.219 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001621/0.08616, allocations: 185.5 kB / 461.5 MB, free: 5.988 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.108e-05/0.08624, allocations: 54.5 kB / 461.5 MB, free: 5.926 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.787e-05/0.08631, allocations: 44.89 kB / 461.6 MB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.767e-06/0.08633, allocations: 0 / 461.6 MB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001424/0.08647, allocations: 116.9 kB / 461.7 MB, free: 5.746 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.08648, allocations: 0 / 461.7 MB, free: 5.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003238/0.08681, allocations: 183.3 kB / 461.9 MB, free: 5.555 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.08686, allocations: 77.11 kB / 462 MB, free: 5.461 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.08698, allocations: 145.7 kB / 462.1 MB, free: 5.309 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.087, allocations: 25.7 kB / 462.1 MB, free: 5.277 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.522e-05/0.08704, allocations: 88.14 kB / 462.2 MB, free: 5.188 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.137e-05/0.08708, allocations: 19.94 kB / 462.2 MB, free: 5.168 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.853e-05/0.08712, allocations: 21.72 kB / 462.3 MB, free: 5.141 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.08724, allocations: 322.8 kB / 462.6 MB, free: 4.816 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.592e-05/0.08729, allocations: 27.98 kB / 462.6 MB, free: 4.789 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.577e-05/0.08733, allocations: 20 kB / 462.6 MB, free: 4.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001214/0.08746, allocations: 132.2 kB / 462.7 MB, free: 4.625 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.08747, allocations: 96 / 462.7 MB, free: 4.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001855/0.08766, allocations: 163.2 kB / 462.9 MB, free: 4.453 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.258e-05/0.0877, allocations: 37.69 kB / 462.9 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.08771, allocations: 0 / 462.9 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.08773, allocations: 0 / 462.9 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.725e-05/0.08779, allocations: 4 kB / 462.9 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.0878, allocations: 240 / 462.9 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.869e-05/0.08787, allocations: 15.84 kB / 463 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-06/0.08789, allocations: 7.938 kB / 463 MB, free: 4.383 MB / 334.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.0001036/0.088, allocations: 156.2 kB / 463.1 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.122e-05/0.08803, allocations: 15.78 kB / 463.1 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.704e-05/0.08805, allocations: 4.375 kB / 463.1 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.08806, allocations: 4 kB / 463.1 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.08806, allocations: 0 / 463.1 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.87e-06/0.08807, allocations: 3.984 kB / 463.1 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000128/0.08821, allocations: 181.6 kB / 463.3 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.08821, allocations: 0 / 463.3 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.094e-05/0.08824, allocations: 7.938 kB / 463.3 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.08825, allocations: 0 / 463.3 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.08826, allocations: 8 kB / 463.3 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.08827, allocations: 0 / 463.3 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.08827, allocations: 3.984 kB / 463.3 MB, free: 3.941 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002486/0.08853, allocations: 206.7 kB / 463.5 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.232e-05/0.08858, allocations: 88.98 kB / 463.6 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.08861, allocations: 7.984 kB / 463.6 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.251e-05/0.08865, allocations: 4 kB / 463.6 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.916e-05/0.08869, allocations: 8 kB / 463.7 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.08871, allocations: 4 kB / 463.7 MB, free: 3.586 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.096e-05/0.08878, allocations: 103.3 kB / 463.8 MB, free: 3.484 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08878, allocations: 0 / 463.8 MB, free: 3.484 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002372/0.08902, allocations: 43.98 kB / 463.8 MB, free: 3.441 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: 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.0006291/0.08966, allocations: 232.3 kB / 464 MB, free: 3.254 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002229/0.08989, allocations: 167.3 kB / 464.2 MB, free: 3.078 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.0899, allocations: 0 / 464.2 MB, free: 3.078 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.09002, allocations: 127.3 kB / 464.3 MB, free: 2.941 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001818/0.09021, allocations: 7.875 kB / 464.3 MB, free: 2.938 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000361/0.09058, allocations: 215 kB / 464.5 MB, free: 2.695 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.09083, allocations: 0.6846 MB / 465.2 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.159e-05/0.09086, allocations: 11.42 kB / 465.2 MB, free: 1.973 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.09086, allocations: 4 kB / 465.2 MB, free: 1.969 MB / 334.1 MB Notification: Performance of Templates: time 0.003097/0.09397, allocations: 1.52 MB / 466.8 MB, free: 464 kB / 334.1 MB make -j1 -f ExternData_ExternData.Examples.CSVTest.makefile make -j1 -f ExternData_ExternData.Examples.CSVTest.makefile clang++ -std=c++17 -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