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.00116/0.00116, allocations: 108.8 kB / 16.41 MB, free: 6.492 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.001184/0.001184, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.222/1.222, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01351/0.01351, allocations: 2.953 MB / 294.2 MB, free: 11.79 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 67.89 kB / 406.9 MB, free: 28.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07472/0.07596, allocations: 50.32 MB / 457.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.00268/0.07867, allocations: 1.508 MB / 458.8 MB, free: 8.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001683/0.08038, allocations: 1.272 MB / 460 MB, free: 7.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.56e-05/0.08045, allocations: 4 kB / 460 MB, free: 7.59 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.000329/0.08079, allocations: 43.78 kB / 460.1 MB, free: 7.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.066e-05/0.08089, allocations: 39.72 kB / 460.1 MB, free: 7.508 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002555/0.08116, allocations: 83.77 kB / 460.2 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001081/0.08128, allocations: 59.84 kB / 460.3 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.775e-05/0.08132, allocations: 7.938 kB / 460.3 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.333e-05/0.08139, allocations: 27.91 kB / 460.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002849/0.08168, allocations: 31.86 kB / 460.3 MB, free: 7.301 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.775e-05/0.08171, allocations: 4 kB / 460.3 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001689/0.08188, allocations: 107.8 kB / 460.4 MB, free: 7.191 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.635e-05/0.08194, allocations: 15.94 kB / 460.5 MB, free: 7.176 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.139e-05/0.08199, allocations: 23.86 kB / 460.5 MB, free: 7.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000216/0.08221, allocations: 127.7 kB / 460.6 MB, free: 7.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.08222, allocations: 0 / 460.6 MB, free: 7.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.08223, allocations: 0 / 460.6 MB, free: 7.027 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.08223, allocations: 0 / 460.6 MB, free: 7.027 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.0004503/0.08269, allocations: 405 kB / 461 MB, free: 6.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.08273, allocations: 15.89 kB / 461 MB, free: 6.562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.803e-05/0.08277, allocations: 8.844 kB / 461 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002321/0.08301, allocations: 180.3 kB / 461.2 MB, free: 6.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.683e-06/0.08302, allocations: 384 / 461.2 MB, free: 6.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.08304, allocations: 384 / 461.2 MB, free: 6.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001246/0.08317, allocations: 65.98 kB / 461.3 MB, free: 6.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.08319, allocations: 4 kB / 461.3 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.08321, allocations: 4 kB / 461.3 MB, free: 6.262 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-06/0.08322, allocations: 3.938 kB / 461.3 MB, free: 6.258 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.126e-05/0.08328, allocations: 31.98 kB / 461.3 MB, free: 6.227 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001694/0.08346, allocations: 185.5 kB / 461.5 MB, free: 5.996 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.251e-05/0.08355, allocations: 54.55 kB / 461.5 MB, free: 5.934 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.129e-05/0.08362, allocations: 44.89 kB / 461.6 MB, free: 5.887 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.006e-05/0.08364, allocations: 0 / 461.6 MB, free: 5.887 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001405/0.08378, allocations: 112.9 kB / 461.7 MB, free: 5.758 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.08379, allocations: 4 kB / 461.7 MB, free: 5.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003268/0.08412, allocations: 187.5 kB / 461.9 MB, free: 5.559 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.08419, allocations: 85.09 kB / 462 MB, free: 5.457 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.08429, allocations: 133.7 kB / 462.1 MB, free: 5.316 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.08432, allocations: 25.7 kB / 462.1 MB, free: 5.285 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.297e-05/0.08437, allocations: 92.12 kB / 462.2 MB, free: 5.191 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.897e-05/0.0844, allocations: 11.81 kB / 462.2 MB, free: 5.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.776e-05/0.08444, allocations: 21.72 kB / 462.2 MB, free: 5.152 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.08455, allocations: 326.8 kB / 462.6 MB, free: 4.824 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.5e-05/0.08461, allocations: 23.98 kB / 462.6 MB, free: 4.801 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.907e-05/0.08466, allocations: 31.92 kB / 462.6 MB, free: 4.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001093/0.08477, allocations: 116.2 kB / 462.7 MB, free: 4.641 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.08478, allocations: 0 / 462.7 MB, free: 4.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001977/0.08499, allocations: 167.2 kB / 462.9 MB, free: 4.465 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/0.08503, allocations: 37.69 kB / 462.9 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.08504, allocations: 0 / 462.9 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.08505, allocations: 0 / 462.9 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.508e-05/0.08512, allocations: 8 kB / 462.9 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.08513, allocations: 0 / 462.9 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.883e-05/0.08519, allocations: 11.94 kB / 463 MB, free: 4.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.317e-06/0.08521, allocations: 7.938 kB / 463 MB, free: 4.395 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.0001063/0.08532, allocations: 156.2 kB / 463.1 MB, free: 4.227 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.487e-05/0.08535, allocations: 15.83 kB / 463.1 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.888e-05/0.08538, allocations: 12.31 kB / 463.1 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.08538, allocations: 0 / 463.1 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.08539, allocations: 0 / 463.1 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.0854, allocations: 4 kB / 463.1 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.08553, allocations: 181.6 kB / 463.3 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.08554, allocations: 0 / 463.3 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.209e-05/0.08556, allocations: 7.938 kB / 463.3 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.08557, allocations: 0 / 463.3 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.08558, allocations: 4 kB / 463.3 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.08559, allocations: 0 / 463.3 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.08559, allocations: 0 / 463.3 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002495/0.08585, allocations: 218.8 kB / 463.6 MB, free: 3.719 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.679e-05/0.0859, allocations: 89.05 kB / 463.6 MB, free: 3.613 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.317e-05/0.08592, allocations: 0 / 463.6 MB, free: 3.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.02e-05/0.08598, allocations: 8 kB / 463.6 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.904e-05/0.08602, allocations: 4 kB / 463.6 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.08604, allocations: 7.984 kB / 463.7 MB, free: 3.594 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.289e-05/0.0861, allocations: 103.3 kB / 463.8 MB, free: 3.492 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.08611, allocations: 0 / 463.8 MB, free: 3.492 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002329/0.08635, allocations: 40 kB / 463.8 MB, free: 3.453 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.0006945/0.08705, allocations: 233.2 kB / 464 MB, free: 3.266 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002204/0.08728, allocations: 163.3 kB / 464.2 MB, free: 3.094 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.08729, allocations: 3.938 kB / 464.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.0874, allocations: 123.4 kB / 464.3 MB, free: 2.957 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000179/0.08758, allocations: 8 kB / 464.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003448/0.08794, allocations: 215 kB / 464.5 MB, free: 2.707 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00023/0.08818, allocations: 0.6923 MB / 465.2 MB, free: 1.988 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.033e-05/0.08821, allocations: 7.438 kB / 465.2 MB, free: 1.98 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.08821, allocations: 4 kB / 465.2 MB, free: 1.977 MB / 334.1 MB Notification: Performance of Templates: time 0.003112/0.09133, allocations: 1.526 MB / 466.8 MB, free: 468 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