Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 108.6 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.001609/0.001609, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.355/1.355, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7841/0.7841, allocations: 132.2 MB / 423.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 62.06 kB / 0.582 GB, free: 23.83 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1744/0.1756, allocations: 80.22 MB / 0.6603 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient): time 0.006146/0.1818, allocations: 4.406 MB / 0.6646 GB, free: 5.84 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6081/0.7899, allocations: 150.7 MB / 0.8118 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009223/0.7909, allocations: 17.91 kB / 0.8118 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006491/0.7915, allocations: 183.4 kB / 0.812 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001499/0.7931, allocations: 490 kB / 0.8124 GB, free: 11.54 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.00197/0.7951, allocations: 0.897 MB / 0.8133 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001291/0.7964, allocations: 1.381 MB / 0.8147 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001027/0.7974, allocations: 0.7785 MB / 0.8154 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006894/0.7981, allocations: 0.5337 MB / 0.8159 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006084/0.7987, allocations: 0.5715 MB / 0.8165 GB, free: 10.74 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001612/0.7989, allocations: 134.4 kB / 0.8166 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008783/0.7998, allocations: 0.5099 MB / 0.8171 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002817/0.8001, allocations: 335 kB / 0.8174 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004939/0.8006, allocations: 0.5926 MB / 0.818 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001972/0.8026, allocations: 1.75 MB / 0.8197 GB, free: 9.371 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.8026, allocations: 0 / 0.8197 GB, free: 9.371 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.192e-06/0.8026, allocations: 0 / 0.8197 GB, free: 9.371 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.48e-05/0.8026, allocations: 0 / 0.8197 GB, free: 9.371 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.003083/0.8057, allocations: 1.555 MB / 0.8212 GB, free: 8.184 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.8057, allocations: 14.38 kB / 0.8213 GB, free: 8.184 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004909/0.8107, allocations: 0.7525 MB / 0.822 GB, free: 7.84 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001345/0.812, allocations: 0.794 MB / 0.8228 GB, free: 7.195 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.844e-05/0.8121, allocations: 76.19 kB / 0.8228 GB, free: 7.16 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001513/0.8122, allocations: 108.4 kB / 0.8229 GB, free: 7.121 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003066/0.8153, allocations: 1.36 MB / 0.8243 GB, free: 6.27 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/0.8154, allocations: 2.75 kB / 0.8243 GB, free: 6.27 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001179/0.8155, allocations: 46.53 kB / 0.8243 GB, free: 6.234 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/0.8155, allocations: 25.53 kB / 0.8243 GB, free: 6.234 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004497/0.82, allocations: 1.836 MB / 0.8261 GB, free: 5.367 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005897/0.8259, allocations: 3.092 MB / 0.8292 GB, free: 3.117 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003032/0.829, allocations: 1.278 MB / 0.8304 GB, free: 2.434 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001389/0.8304, allocations: 0.565 MB / 0.831 GB, free: 2.156 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006842/0.8311, allocations: 482.5 kB / 0.8314 GB, free: 1.652 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00173/0.8328, allocations: 0.7298 MB / 0.8321 GB, free: 1.199 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=100): time 2.866e-06/0.8328, allocations: 4 kB / 0.8321 GB, free: 1.195 MB / 0.5919 GB Notification: Performance of matching and sorting (n=100): time 0.005721/0.8386, allocations: 1.853 MB / 0.8339 GB, free: 244 kB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.8387, allocations: 193 kB / 0.8341 GB, free: 16 kB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008101/0.8395, allocations: 0.6088 MB / 0.8347 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.97e-05/0.8396, allocations: 42.77 kB / 0.8348 GB, free: 15.61 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003584/0.84, allocations: 418.2 kB / 0.8352 GB, free: 15.25 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002634/0.8402, allocations: 335.3 kB / 0.8355 GB, free: 14.96 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003172/0.8406, allocations: 195 kB / 0.8357 GB, free: 14.84 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001858/0.8408, allocations: 386.3 kB / 0.836 GB, free: 14.48 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/0.8421, allocations: 478.7 kB / 0.8365 GB, free: 14.25 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00147/0.8436, allocations: 0.5759 MB / 0.8371 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002768/0.8464, allocations: 1.022 MB / 0.8381 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.8464, allocations: 2.094 kB / 0.8381 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003719/0.8501, allocations: 1.293 MB / 0.8393 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.8502, allocations: 7.375 kB / 0.8393 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.8502, allocations: 0 / 0.8393 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005508/0.8507, allocations: 81.72 kB / 0.8394 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.852, allocations: 257.3 kB / 0.8396 GB, free: 12.65 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002058/0.8541, allocations: 1.64 MB / 0.8412 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/0.8553, allocations: 146 kB / 0.8414 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.76e-05/0.8554, allocations: 47.3 kB / 0.8414 GB, free: 10.94 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0005337/0.8559, allocations: 274.1 kB / 0.8417 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000198/0.8562, allocations: 94.81 kB / 0.8418 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004334/0.8605, allocations: 1.568 MB / 0.8433 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.8605, allocations: 12 kB / 0.8433 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.8605, allocations: 0 / 0.8433 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.8605, allocations: 7.969 kB / 0.8433 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005939/0.8665, allocations: 2.742 MB / 0.846 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.8665, allocations: 0 / 0.846 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0013/0.8678, allocations: 243.7 kB / 0.8462 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004453/0.8683, allocations: 76.78 kB / 0.8463 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-05/0.8684, allocations: 27.97 kB / 0.8463 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001903/0.8703, allocations: 1.654 MB / 0.848 GB, free: 4.297 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.8703, allocations: 4.062 kB / 0.848 GB, free: 4.293 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003945/0.8742, allocations: 1.431 MB / 0.8494 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004497/0.8747, allocations: 295.6 kB / 0.8496 GB, free: 2.535 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001451/0.8749, allocations: 28 kB / 0.8497 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.876, allocations: 113.9 kB / 0.8498 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.8761, allocations: 76.83 kB / 0.8499 GB, free: 2.324 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-05/0.8762, allocations: 39.97 kB / 0.8499 GB, free: 2.285 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005905/0.8768, allocations: 443 kB / 0.8503 GB, free: 1.859 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8768, allocations: 0 / 0.8503 GB, free: 1.859 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001025/0.8779, allocations: 367 kB / 0.8507 GB, free: 1.5 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001453/0.8793, allocations: 0.6366 MB / 0.8513 GB, free: 1.094 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003555/0.8829, allocations: 1.308 MB / 0.8526 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.8829, allocations: 0 / 0.8526 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001866/0.8848, allocations: 0.7773 MB / 0.8533 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001284/0.8861, allocations: 292.3 kB / 0.8536 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005202/0.8913, allocations: 2.128 MB / 0.8557 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008056/0.8921, allocations: 1.06 MB / 0.8567 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005554/0.8927, allocations: 131.3 kB / 0.8568 GB, free: 11.35 MB / 0.6231 GB Notification: Performance of SimCode: time 4.71e-07/0.8927, allocations: 0 / 0.8568 GB, free: 11.35 MB / 0.6231 GB Notification: Performance of Templates: time 0.02999/0.9227, allocations: 21.29 MB / 0.8776 GB, free: 6.098 MB / 0.6387 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient.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/Modelica 4.0.0+maint.om/Resources/C-Sources""-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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/Modelica 4.0.0+maint.om/Resources/C-Sources" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficientCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficientCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficientCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficientFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Resources/C-Sources/getTimeSpan.c:27:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'void *' char *result = malloc(len1 + len2 + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [: OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficientCalcHelperMain.o] Error 1