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.5/package.mo", uses=false) Using package ExternData with version 3.0.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.001703/0.001703, allocations: 101.6 kB / 16.27 MB, free: 5.852 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.00202/0.00202, allocations: 188.7 kB / 17.19 MB, free: 5.5 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.4/1.4, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.01725/0.01725, allocations: 2.947 MB / 294 MB, free: 11.88 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.001951, allocations: 64.12 kB / 355.3 MB, free: 14.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.199/0.201, allocations: 50.33 MB / 405.7 MB, free: 32.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.0024/0.2035, allocations: 1.511 MB / 407.2 MB, free: 31.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001234/0.2047, allocations: 1.257 MB / 408.4 MB, free: 29.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.3e-05/0.2048, allocations: 0 / 408.4 MB, free: 29.86 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.0002839/0.2051, allocations: 51.7 kB / 408.5 MB, free: 29.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.824e-05/0.2052, allocations: 35.84 kB / 408.5 MB, free: 29.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002138/0.2054, allocations: 80.53 kB / 408.6 MB, free: 29.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.049e-05/0.2055, allocations: 71.77 kB / 408.7 MB, free: 29.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.434e-05/0.2055, allocations: 8 kB / 408.7 MB, free: 29.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.782e-05/0.2056, allocations: 23.86 kB / 408.7 MB, free: 29.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005062/0.2061, allocations: 31.84 kB / 408.7 MB, free: 29.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.427e-05/0.2061, allocations: 4 kB / 408.7 MB, free: 29.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001317/0.2063, allocations: 95.86 kB / 408.8 MB, free: 29.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.57e-05/0.2063, allocations: 19.92 kB / 408.8 MB, free: 29.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.734e-05/0.2064, allocations: 27.86 kB / 408.9 MB, free: 29.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000172/0.2065, allocations: 121.8 kB / 409 MB, free: 29.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2066, allocations: 3.938 kB / 409 MB, free: 29.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2066, allocations: 0 / 409 MB, free: 29.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.2066, allocations: 0 / 409 MB, free: 29.3 MB / 302.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.0003731/0.2069, allocations: 401 kB / 409.4 MB, free: 28.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/0.207, allocations: 11.89 kB / 409.4 MB, free: 28.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.824e-05/0.207, allocations: 8.844 kB / 409.4 MB, free: 28.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.2072, allocations: 196.1 kB / 409.6 MB, free: 28.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.923e-06/0.2072, allocations: 384 / 409.6 MB, free: 28.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.564e-05/0.2072, allocations: 4.375 kB / 409.6 MB, free: 28.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001176/0.2073, allocations: 65.98 kB / 409.7 MB, free: 28.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.2073, allocations: 0 / 409.7 MB, free: 28.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.2074, allocations: 0 / 409.7 MB, free: 28.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.2074, allocations: 3.984 kB / 409.7 MB, free: 28.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.468e-05/0.2074, allocations: 31.98 kB / 409.7 MB, free: 28.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001182/0.2076, allocations: 165.7 kB / 409.9 MB, free: 28.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.15e-05/0.2076, allocations: 58.5 kB / 409.9 MB, free: 28.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.929e-05/0.2077, allocations: 44.89 kB / 410 MB, free: 28.17 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/0.2077, allocations: 0 / 410 MB, free: 28.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001597/0.2079, allocations: 113 kB / 410.1 MB, free: 28.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.2079, allocations: 0 / 410.1 MB, free: 28.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002685/0.2081, allocations: 195.2 kB / 410.3 MB, free: 27.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.01e-05/0.2082, allocations: 85.11 kB / 410.4 MB, free: 27.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.635e-05/0.2083, allocations: 129.8 kB / 410.5 MB, free: 27.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.057e-05/0.2083, allocations: 29.7 kB / 410.5 MB, free: 27.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.971e-05/0.2083, allocations: 84.14 kB / 410.6 MB, free: 27.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.739e-05/0.2083, allocations: 27.8 kB / 410.6 MB, free: 27.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.402e-05/0.2084, allocations: 25.7 kB / 410.6 MB, free: 27.42 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.9e-05/0.2084, allocations: 314.8 kB / 411 MB, free: 27.11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.825e-05/0.2085, allocations: 24 kB / 411 MB, free: 27.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.231e-05/0.2085, allocations: 39.92 kB / 411 MB, free: 27.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.207e-05/0.2086, allocations: 112.2 kB / 411.1 MB, free: 26.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.2086, allocations: 7.938 kB / 411.1 MB, free: 26.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001548/0.2088, allocations: 167.3 kB / 411.3 MB, free: 26.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.2088, allocations: 29.7 kB / 411.3 MB, free: 26.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.2088, allocations: 4 kB / 411.3 MB, free: 26.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.2088, allocations: 3.984 kB / 411.3 MB, free: 26.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.613e-05/0.2089, allocations: 7.984 kB / 411.3 MB, free: 26.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.2089, allocations: 0 / 411.3 MB, free: 26.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.476e-05/0.209, allocations: 4 kB / 411.3 MB, free: 26.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.645e-06/0.209, allocations: 4 kB / 411.3 MB, free: 26.68 MB / 302.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 7.055e-05/0.209, allocations: 159.5 kB / 411.5 MB, free: 26.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.033e-05/0.2091, allocations: 15.84 kB / 411.5 MB, free: 26.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.824e-05/0.2091, allocations: 4.375 kB / 411.5 MB, free: 26.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.2091, allocations: 0 / 411.5 MB, free: 26.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2091, allocations: 4 kB / 411.5 MB, free: 26.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.2091, allocations: 0 / 411.5 MB, free: 26.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.874e-05/0.2092, allocations: 193.5 kB / 411.7 MB, free: 26.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.2092, allocations: 0 / 411.7 MB, free: 26.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.884e-05/0.2092, allocations: 11.92 kB / 411.7 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.2092, allocations: 0 / 411.7 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.2092, allocations: 4 kB / 411.7 MB, free: 26.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.2093, allocations: 0 / 411.7 MB, free: 26.22 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.2093, allocations: 0 / 411.7 MB, free: 26.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001918/0.2095, allocations: 210.8 kB / 411.9 MB, free: 25.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.775e-05/0.2095, allocations: 84.98 kB / 412 MB, free: 25.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.376e-05/0.2095, allocations: 4 kB / 412 MB, free: 25.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.2e-05/0.2096, allocations: 15.92 kB / 412 MB, free: 25.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.993e-05/0.2096, allocations: 0 / 412 MB, free: 25.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.2096, allocations: 4 kB / 412 MB, free: 25.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.356e-05/0.2097, allocations: 111.6 kB / 412.2 MB, free: 25.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2097, allocations: 0 / 412.2 MB, free: 25.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000233/0.2099, allocations: 39.98 kB / 412.2 MB, free: 25.72 MB / 302.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.0005767/0.2105, allocations: 227 kB / 412.4 MB, free: 25.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001818/0.2107, allocations: 163.4 kB / 412.6 MB, free: 25.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2107, allocations: 0 / 412.6 MB, free: 25.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.462e-05/0.2108, allocations: 123.3 kB / 412.7 MB, free: 25.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001817/0.211, allocations: 14.66 kB / 412.7 MB, free: 25.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003025/0.2113, allocations: 218.9 kB / 412.9 MB, free: 24.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.296e-05/0.2114, allocations: 0.6884 MB / 413.6 MB, free: 24.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.788e-05/0.2114, allocations: 11.44 kB / 413.6 MB, free: 24.24 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2114, allocations: 0 / 413.6 MB, free: 24.24 MB / 302.1 MB Notification: Performance of Templates: time 0.002888/0.2143, allocations: 1.534 MB / 415.2 MB, free: 22.71 MB / 302.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.5/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.5/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.5/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