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.001392/0.001392, allocations: 109.2 kB / 16.41 MB, free: 6.465 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.001488/0.001488, allocations: 187 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.424/1.424, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002417/0.002416, allocations: 288.9 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9721/0.9721, allocations: 169.2 MB / 0.499 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 95.84 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4112/0.4131, allocations: 86.98 MB / 0.767 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19): time 0.002227/0.4153, allocations: 1.351 MB / 0.7683 GB, free: 2.535 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0001428/0.4155, allocations: 47.81 kB / 0.7684 GB, free: 2.488 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.653e-05/0.4155, allocations: 0 / 0.7684 GB, free: 2.488 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.4157, allocations: 15.92 kB / 0.7684 GB, free: 2.473 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.4158, allocations: 11.94 kB / 0.7684 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 3.386e-06/0.4158, allocations: 0 / 0.7684 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.827e-05/0.4159, allocations: 23.91 kB / 0.7684 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.212e-05/0.4159, allocations: 0 / 0.7684 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.476e-05/0.416, allocations: 7.938 kB / 0.7685 GB, free: 2.43 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.879e-05/0.416, allocations: 15.92 kB / 0.7685 GB, free: 2.414 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.343e-05/0.416, allocations: 0 / 0.7685 GB, free: 2.414 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 4.704e-05/0.4161, allocations: 16 kB / 0.7685 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.801e-05/0.4161, allocations: 0 / 0.7685 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.11e-05/0.4162, allocations: 11.94 kB / 0.7685 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 9.5e-05/0.4163, allocations: 31.89 kB / 0.7685 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.4163, allocations: 0 / 0.7685 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.733e-06/0.4163, allocations: 0 / 0.7685 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.646e-06/0.4163, allocations: 0 / 0.7685 GB, free: 2.355 MB / 0.5294 GB 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.0003244/0.4166, allocations: 347 kB / 0.7689 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.4167, allocations: 8.031 kB / 0.7689 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.769e-05/0.4167, allocations: 0.9375 kB / 0.7689 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001587/0.4169, allocations: 188.2 kB / 0.769 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.436e-06/0.4169, allocations: 384 / 0.769 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.468e-06/0.4169, allocations: 384 / 0.769 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.58e-05/0.417, allocations: 38.23 kB / 0.7691 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.417, allocations: 192 / 0.7691 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.166e-06/0.417, allocations: 3.938 kB / 0.7691 GB, free: 1.691 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.038e-05/0.417, allocations: 0 / 0.7691 GB, free: 1.691 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.906e-05/0.4171, allocations: 8 kB / 0.7691 GB, free: 1.684 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001301/0.4172, allocations: 157.7 kB / 0.7692 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 3.788e-05/0.4172, allocations: 18.52 kB / 0.7693 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.033e-05/0.4173, allocations: 12.92 kB / 0.7693 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.4173, allocations: 0 / 0.7693 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.985e-05/0.4173, allocations: 30.56 kB / 0.7693 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 2.555e-06/0.4173, allocations: 4 kB / 0.7693 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0001158/0.4174, allocations: 41.62 kB / 0.7693 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.859e-05/0.4175, allocations: 51.41 kB / 0.7694 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.834e-05/0.4176, allocations: 121.7 kB / 0.7695 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.4176, allocations: 25.7 kB / 0.7695 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.177e-05/0.4176, allocations: 88.14 kB / 0.7696 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.676e-05/0.4176, allocations: 0 / 0.7696 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.46e-05/0.4177, allocations: 13.7 kB / 0.7696 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.682e-05/0.4178, allocations: 323 kB / 0.7699 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.818e-06/0.4178, allocations: 0 / 0.7699 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.925e-06/0.4178, allocations: 4 kB / 0.7699 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.484e-05/0.4178, allocations: 12.86 kB / 0.77 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.4178, allocations: 0 / 0.77 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.382e-05/0.4179, allocations: 33.69 kB / 0.77 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.4179, allocations: 8 kB / 0.77 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.4179, allocations: 3.938 kB / 0.77 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.4179, allocations: 8.031 kB / 0.77 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.336e-05/0.418, allocations: 3.938 kB / 0.77 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.418, allocations: 0 / 0.77 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.248e-05/0.418, allocations: 4 kB / 0.77 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-06/0.418, allocations: 0 / 0.77 GB, free: 0.6055 MB / 0.5294 GB 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.925e-05/0.4181, allocations: 108.2 kB / 0.7701 GB, free: 0.4922 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.545e-05/0.4181, allocations: 7.906 kB / 0.7701 GB, free: 496 kB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.445e-05/0.4182, allocations: 55.61 kB / 0.7702 GB, free: 436 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.4182, allocations: 4 kB / 0.7702 GB, free: 432 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.4182, allocations: 4.031 kB / 0.7702 GB, free: 428 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.4182, allocations: 3.938 kB / 0.7702 GB, free: 424 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.852e-05/0.4183, allocations: 157.7 kB / 0.7703 GB, free: 216 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.4183, allocations: 0 / 0.7703 GB, free: 216 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.165e-05/0.4184, allocations: 0 / 0.7703 GB, free: 216 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.4184, allocations: 4 kB / 0.7703 GB, free: 212 kB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.707e-06/0.4184, allocations: 3.938 kB / 0.7703 GB, free: 208 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.4184, allocations: 3.938 kB / 0.7704 GB, free: 204 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.4184, allocations: 0 / 0.7704 GB, free: 204 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.288e-05/0.4185, allocations: 65.12 kB / 0.7704 GB, free: 120 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 3.149e-05/0.4185, allocations: 81.02 kB / 0.7705 GB, free: 20 kB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/0.4185, allocations: 3.938 kB / 0.7705 GB, free: 16 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.129e-05/0.4185, allocations: 4 kB / 0.7705 GB, free: 12 kB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.068e-05/0.4186, allocations: 0 / 0.7705 GB, free: 12 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.456e-06/0.4186, allocations: 4 kB / 0.7705 GB, free: 8 kB / 0.5294 GB Notification: Performance of sorting global known variables: time 6.111e-05/0.4186, allocations: 95.27 kB / 0.7706 GB, free: 15.91 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4186, allocations: 0 / 0.7706 GB, free: 15.91 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001812/0.4188, allocations: 8.031 kB / 0.7706 GB, free: 15.91 MB / 0.545 GB 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.0001867/0.419, allocations: 106.2 kB / 0.7707 GB, free: 15.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 7.812e-05/0.4191, allocations: 15.92 kB / 0.7707 GB, free: 15.78 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4191, allocations: 0 / 0.7707 GB, free: 15.78 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.103e-05/0.4191, allocations: 12.06 kB / 0.7707 GB, free: 15.77 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001407/0.4193, allocations: 2.344 kB / 0.7707 GB, free: 15.77 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002591/0.4195, allocations: 127.3 kB / 0.7709 GB, free: 15.61 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001967/0.4197, allocations: 0.6806 MB / 0.7715 GB, free: 14.91 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.958e-05/0.4198, allocations: 11.44 kB / 0.7715 GB, free: 14.89 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.4198, allocations: 0 / 0.7715 GB, free: 14.89 MB / 0.545 GB Notification: Performance of Templates: time 0.002218/0.422, allocations: 0.7751 MB / 0.7723 GB, free: 14.12 MB / 0.545 GB 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++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/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