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.00131/0.00131, allocations: 110.4 kB / 16.41 MB, free: 5.977 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.001437/0.001437, allocations: 188.3 kB / 17.34 MB, free: 5.586 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.342/1.342, 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.00207/0.00207, allocations: 288.2 kB / 291.5 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9307/0.9307, allocations: 169.3 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001768/0.001768, allocations: 103.8 kB / 0.6821 GB, free: 6.996 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4692/0.4709, allocations: 86.97 MB / 0.767 GB, free: 3.957 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.WeeklySchedule7to19): time 0.00247/0.4734, allocations: 1.363 MB / 0.7684 GB, free: 2.582 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.000152/0.4736, allocations: 43.83 kB / 0.7684 GB, free: 2.539 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.983e-05/0.4737, allocations: 0 / 0.7684 GB, free: 2.539 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001722/0.4738, allocations: 19.91 kB / 0.7684 GB, free: 2.52 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001086/0.474, allocations: 7.938 kB / 0.7684 GB, free: 2.512 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 7.033e-06/0.474, allocations: 4 kB / 0.7684 GB, free: 2.508 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.882e-05/0.4741, allocations: 19.86 kB / 0.7684 GB, free: 2.488 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.664e-05/0.4741, allocations: 4 kB / 0.7685 GB, free: 2.484 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.76e-05/0.4741, allocations: 4 kB / 0.7685 GB, free: 2.48 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.489e-05/0.4742, allocations: 15.92 kB / 0.7685 GB, free: 2.465 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.864e-05/0.4742, allocations: 3.984 kB / 0.7685 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.133e-05/0.4743, allocations: 16 kB / 0.7685 GB, free: 2.445 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.284e-05/0.4743, allocations: 0 / 0.7685 GB, free: 2.445 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.781e-05/0.4744, allocations: 11.94 kB / 0.7685 GB, free: 2.434 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001007/0.4745, allocations: 27.89 kB / 0.7685 GB, free: 2.406 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.4745, allocations: 0 / 0.7685 GB, free: 2.406 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.212e-06/0.4745, allocations: 0 / 0.7685 GB, free: 2.406 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.4745, allocations: 0 / 0.7685 GB, free: 2.406 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.0003452/0.4749, allocations: 343.1 kB / 0.7689 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.4749, allocations: 15.97 kB / 0.7689 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.708e-05/0.4749, allocations: 0.9375 kB / 0.7689 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000167/0.4751, allocations: 176.3 kB / 0.769 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.671e-06/0.4751, allocations: 384 / 0.769 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.4751, allocations: 4.375 kB / 0.769 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.76e-05/0.4752, allocations: 30.25 kB / 0.7691 GB, free: 1.758 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.4752, allocations: 192 / 0.7691 GB, free: 1.758 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.4752, allocations: 7.938 kB / 0.7691 GB, free: 1.75 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.843e-05/0.4753, allocations: 0 / 0.7691 GB, free: 1.75 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.891e-05/0.4753, allocations: 7.938 kB / 0.7691 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.4755, allocations: 153.7 kB / 0.7692 GB, free: 1.543 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 5.057e-05/0.4755, allocations: 26.53 kB / 0.7693 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.771e-05/0.4755, allocations: 8.859 kB / 0.7693 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.4756, allocations: 0 / 0.7693 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.4756, allocations: 38.61 kB / 0.7693 GB, free: 1.449 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.4756, allocations: 4 kB / 0.7693 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0001221/0.4757, allocations: 37.64 kB / 0.7693 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.4758, allocations: 55.34 kB / 0.7694 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.4759, allocations: 117.8 kB / 0.7695 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.11e-05/0.4759, allocations: 25.7 kB / 0.7695 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.808e-05/0.4759, allocations: 88.14 kB / 0.7696 GB, free: 1.09 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.801e-05/0.476, allocations: 0 / 0.7696 GB, free: 1.09 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.639e-05/0.476, allocations: 13.7 kB / 0.7696 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.4761, allocations: 319 kB / 0.7699 GB, free: 0.75 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.052e-05/0.4761, allocations: 4 kB / 0.7699 GB, free: 0.7461 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.362e-06/0.4761, allocations: 0 / 0.7699 GB, free: 0.7461 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.396e-05/0.4762, allocations: 8.859 kB / 0.7699 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4762, allocations: 3.938 kB / 0.7699 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.72e-05/0.4762, allocations: 45.62 kB / 0.77 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.4762, allocations: 4 kB / 0.77 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.4763, allocations: 7.938 kB / 0.77 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.4763, allocations: 4.094 kB / 0.77 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.437e-05/0.4763, allocations: 0 / 0.77 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.4763, allocations: 0 / 0.77 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.155e-05/0.4763, allocations: 0 / 0.77 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-06/0.4764, allocations: 4 kB / 0.77 GB, free: 0.6602 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 7.932e-05/0.4764, allocations: 112.2 kB / 0.7701 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.32e-05/0.4765, allocations: 7.906 kB / 0.7701 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.772e-05/0.4765, allocations: 47.64 kB / 0.7702 GB, free: 496 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.4766, allocations: 32 / 0.7702 GB, free: 496 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.4766, allocations: 4 kB / 0.7702 GB, free: 492 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.4766, allocations: 4 kB / 0.7702 GB, free: 488 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001065/0.4767, allocations: 157.7 kB / 0.7703 GB, free: 280 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.4767, allocations: 0 / 0.7703 GB, free: 280 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.338e-05/0.4767, allocations: 7.938 kB / 0.7703 GB, free: 272 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.4767, allocations: 0 / 0.7703 GB, free: 272 kB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.4767, allocations: 3.938 kB / 0.7703 GB, free: 268 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.4767, allocations: 4 kB / 0.7703 GB, free: 264 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.4767, allocations: 0 / 0.7703 GB, free: 264 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.95e-05/0.4768, allocations: 65.12 kB / 0.7704 GB, free: 180 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 4.233e-05/0.4769, allocations: 81.02 kB / 0.7705 GB, free: 80 kB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.213e-05/0.4769, allocations: 7.875 kB / 0.7705 GB, free: 72 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.147e-06/0.4769, allocations: 0 / 0.7705 GB, free: 72 kB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.265e-05/0.4769, allocations: 0 / 0.7705 GB, free: 72 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.097e-06/0.4769, allocations: 4 kB / 0.7705 GB, free: 68 kB / 0.5294 GB Notification: Performance of sorting global known variables: time 6.601e-05/0.477, allocations: 95.27 kB / 0.7706 GB, free: 15.97 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.477, allocations: 0 / 0.7706 GB, free: 15.97 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001758/0.4772, allocations: 8.031 kB / 0.7706 GB, free: 15.96 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.0001958/0.4774, allocations: 109.2 kB / 0.7707 GB, free: 15.85 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 6.953e-05/0.4775, allocations: 11.94 kB / 0.7707 GB, free: 15.84 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.4775, allocations: 3.938 kB / 0.7707 GB, free: 15.84 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.738e-06/0.4775, allocations: 12.06 kB / 0.7707 GB, free: 15.82 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001257/0.4776, allocations: 2.344 kB / 0.7707 GB, free: 15.82 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002526/0.4779, allocations: 127.3 kB / 0.7708 GB, free: 15.67 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.4781, allocations: 0.6807 MB / 0.7715 GB, free: 14.96 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.809e-05/0.4781, allocations: 7.438 kB / 0.7715 GB, free: 14.95 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.4782, allocations: 0 / 0.7715 GB, free: 14.95 MB / 0.545 GB Notification: Performance of Templates: time 0.002012/0.4802, allocations: 0.7774 MB / 0.7723 GB, free: 14.18 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