Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19") translateModel(BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 107.8 kB / 15.99 MB, free: 6.359 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.001165/0.001165, allocations: 195.2 kB / 16.91 MB, free: 6.191 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.217/1.217, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001972/0.001972, allocations: 291.1 kB / 291 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8695/0.8695, allocations: 169.2 MB / 0.4985 GB, free: 4.652 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 89.92 kB / 0.5953 GB, free: 15.54 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1461, allocations: 86.97 MB / 0.6803 GB, free: 8.57 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19): time 0.002339/0.1484, allocations: 1.425 MB / 0.6817 GB, free: 7.129 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001241/0.1486, allocations: 35.83 kB / 0.6817 GB, free: 7.094 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.439e-05/0.1486, allocations: 4 kB / 0.6817 GB, free: 7.09 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.1488, allocations: 23.86 kB / 0.6817 GB, free: 7.066 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.969e-05/0.1489, allocations: 7.984 kB / 0.6817 GB, free: 7.059 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.296e-06/0.1489, allocations: 0 / 0.6817 GB, free: 7.059 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.855e-05/0.1489, allocations: 15.94 kB / 0.6817 GB, free: 7.043 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.327e-05/0.149, allocations: 7.984 kB / 0.6818 GB, free: 7.035 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.54e-05/0.149, allocations: 4 kB / 0.6818 GB, free: 7.031 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.878e-05/0.149, allocations: 7.875 kB / 0.6818 GB, free: 7.023 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.345e-05/0.1491, allocations: 4 kB / 0.6818 GB, free: 7.02 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.19e-05/0.1491, allocations: 15.94 kB / 0.6818 GB, free: 7.004 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.405e-05/0.1492, allocations: 15.91 kB / 0.6818 GB, free: 6.988 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.037e-05/0.1492, allocations: 11.94 kB / 0.6818 GB, free: 6.977 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.906e-05/0.1492, allocations: 19.97 kB / 0.6818 GB, free: 6.957 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1493, allocations: 4 kB / 0.6818 GB, free: 6.953 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1493, allocations: 0 / 0.6818 GB, free: 6.953 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.1493, allocations: 0 / 0.6818 GB, free: 6.953 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002917/0.1496, allocations: 331.7 kB / 0.6821 GB, free: 6.578 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.079e-05/0.1496, allocations: 8.031 kB / 0.6822 GB, free: 6.57 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.394e-05/0.1496, allocations: 0.9375 kB / 0.6822 GB, free: 6.57 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.1498, allocations: 172.3 kB / 0.6823 GB, free: 6.363 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.346e-06/0.1498, allocations: 12.36 kB / 0.6823 GB, free: 6.352 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.623e-06/0.1498, allocations: 384 / 0.6823 GB, free: 6.352 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.525e-05/0.1499, allocations: 34.27 kB / 0.6824 GB, free: 6.312 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.049e-06/0.1499, allocations: 192 / 0.6824 GB, free: 6.312 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.1499, allocations: 7.922 kB / 0.6824 GB, free: 6.305 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.1499, allocations: 0 / 0.6824 GB, free: 6.305 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.812e-05/0.1499, allocations: 3.938 kB / 0.6824 GB, free: 6.301 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001382/0.1501, allocations: 157.6 kB / 0.6825 GB, free: 6.098 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.361e-05/0.1501, allocations: 26.59 kB / 0.6826 GB, free: 6.062 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.474e-05/0.1502, allocations: 8.922 kB / 0.6826 GB, free: 6.051 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.1502, allocations: 0 / 0.6826 GB, free: 6.051 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.981e-05/0.1502, allocations: 34.56 kB / 0.6826 GB, free: 6.008 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1502, allocations: 0 / 0.6826 GB, free: 6.008 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001082/0.1503, allocations: 41.58 kB / 0.6826 GB, free: 5.961 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.1504, allocations: 51.53 kB / 0.6827 GB, free: 5.898 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.832e-05/0.1505, allocations: 121.8 kB / 0.6828 GB, free: 5.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.044e-05/0.1505, allocations: 25.7 kB / 0.6828 GB, free: 5.738 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.59e-05/0.1505, allocations: 88.14 kB / 0.6829 GB, free: 5.648 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.62e-05/0.1505, allocations: 3.906 kB / 0.6829 GB, free: 5.645 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.366e-05/0.1506, allocations: 9.719 kB / 0.6829 GB, free: 5.629 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.989e-05/0.1507, allocations: 318.8 kB / 0.6832 GB, free: 5.309 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.157e-06/0.1507, allocations: 0 / 0.6832 GB, free: 5.309 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.516e-06/0.1507, allocations: 7.984 kB / 0.6832 GB, free: 5.301 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.215e-05/0.1507, allocations: 12.8 kB / 0.6832 GB, free: 5.285 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.1507, allocations: 4 kB / 0.6832 GB, free: 5.281 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.953e-05/0.1508, allocations: 33.7 kB / 0.6833 GB, free: 5.242 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.1508, allocations: 8 kB / 0.6833 GB, free: 5.234 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.1508, allocations: 3.938 kB / 0.6833 GB, free: 5.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.1508, allocations: 4 kB / 0.6833 GB, free: 5.227 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.714e-05/0.1508, allocations: 0 / 0.6833 GB, free: 5.227 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.1509, allocations: 3.984 kB / 0.6833 GB, free: 5.223 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.3e-05/0.1509, allocations: 12.03 kB / 0.6833 GB, free: 5.211 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-06/0.1509, allocations: 0 / 0.6833 GB, free: 5.211 MB / 494.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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 5.468e-05/0.151, allocations: 105.8 kB / 0.6834 GB, free: 5.098 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.096e-05/0.151, allocations: 7.906 kB / 0.6834 GB, free: 5.09 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.569e-05/0.151, allocations: 49.09 kB / 0.6835 GB, free: 5.035 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.1511, allocations: 0 / 0.6835 GB, free: 5.035 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.1511, allocations: 4 kB / 0.6835 GB, free: 5.031 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.1511, allocations: 0 / 0.6835 GB, free: 5.031 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.851e-05/0.1512, allocations: 153.7 kB / 0.6836 GB, free: 4.832 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1512, allocations: 4.031 kB / 0.6836 GB, free: 4.828 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.132e-05/0.1512, allocations: 0 / 0.6836 GB, free: 4.828 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.1512, allocations: 0 / 0.6836 GB, free: 4.828 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-06/0.1512, allocations: 11.88 kB / 0.6836 GB, free: 4.816 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.1512, allocations: 0 / 0.6836 GB, free: 4.816 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1512, allocations: 0 / 0.6836 GB, free: 4.816 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.949e-05/0.1513, allocations: 61.12 kB / 0.6837 GB, free: 4.738 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.028e-05/0.1513, allocations: 81.05 kB / 0.6838 GB, free: 4.641 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.138e-05/0.1513, allocations: 7.969 kB / 0.6838 GB, free: 4.633 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.957e-06/0.1514, allocations: 0 / 0.6838 GB, free: 4.633 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.048e-05/0.1514, allocations: 7.984 kB / 0.6838 GB, free: 4.625 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-06/0.1514, allocations: 0 / 0.6838 GB, free: 4.625 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.735e-05/0.1514, allocations: 91.28 kB / 0.6839 GB, free: 4.535 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1514, allocations: 0 / 0.6839 GB, free: 4.535 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001759/0.1516, allocations: 4 kB / 0.6839 GB, free: 4.531 MB / 494.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.0001702/0.1518, allocations: 127.2 kB / 0.684 GB, free: 4.402 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 5.958e-05/0.1519, allocations: 4 kB / 0.684 GB, free: 4.398 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1519, allocations: 0 / 0.684 GB, free: 4.398 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.857e-06/0.1519, allocations: 4 kB / 0.684 GB, free: 4.395 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001253/0.152, allocations: 6.031 kB / 0.684 GB, free: 4.391 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002382/0.1522, allocations: 147.3 kB / 0.6841 GB, free: 4.215 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002111/0.1525, allocations: 0.6768 MB / 0.6848 GB, free: 3.512 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.934e-05/0.1525, allocations: 15.42 kB / 0.6848 GB, free: 3.496 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1525, allocations: 0 / 0.6848 GB, free: 3.496 MB / 494.1 MB Notification: Performance of Templates: time 0.001889/0.1544, allocations: 0.7756 MB / 0.6856 GB, free: 2.727 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19.makefile make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19.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/BuildingSystems 2.0.0-master/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19CalcHelperMain.o OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19CalcHelperMain.cpp In file included from OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19CalcHelperMain.cpp:28: ./OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19Functions.cpp:68:25: error: no matching function for call to 'weeklyScheduleInit' weeklySchedule__ext = weeklyScheduleInit(tableOnFile__ext, sourceName_.c_str(), t_offset__ext, data_.c_str()); ^~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Resources/C-Sources/WeeklySchedule.c:32:7: note: candidate function not viable: 4th argument ('const char *') would lose const qualifier void* weeklyScheduleInit(const int tableOnFile, const char* name, const double t_offset, char* stringData) { ^ 1 error generated. make: *** [: OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19CalcHelperMain.o] Error 1