Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.001302/0.001302, allocations: 104.5 kB / 16.41 MB, free: 6.457 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.001362/0.001362, allocations: 189.5 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.353/1.353, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7852/0.7852, allocations: 135.1 MB / 426.3 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 62.25 kB / 0.5863 GB, free: 21.37 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1844/0.1856, allocations: 80.91 MB / 0.6653 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient): time 0.007109/0.1927, allocations: 4.432 MB / 0.6696 GB, free: 1.348 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5726/0.7654, allocations: 150.7 MB / 0.8167 GB, free: 8.133 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001048/0.7665, allocations: 20.25 kB / 0.8168 GB, free: 8.125 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.000623/0.7671, allocations: 178 kB / 0.8169 GB, free: 8.027 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001736/0.7689, allocations: 491.5 kB / 0.8174 GB, free: 7.824 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0022/0.7711, allocations: 0.8994 MB / 0.8183 GB, free: 7.516 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001336/0.7725, allocations: 1.376 MB / 0.8196 GB, free: 7.141 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001037/0.7735, allocations: 0.793 MB / 0.8204 GB, free: 6.863 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006382/0.7742, allocations: 0.5219 MB / 0.8209 GB, free: 6.695 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000586/0.7748, allocations: 0.5728 MB / 0.8215 GB, free: 6.434 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000154/0.7749, allocations: 128.8 kB / 0.8216 GB, free: 6.434 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009436/0.7759, allocations: 0.5205 MB / 0.8221 GB, free: 6.246 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003075/0.7762, allocations: 329.7 kB / 0.8224 GB, free: 5.984 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005217/0.7767, allocations: 0.5992 MB / 0.823 GB, free: 5.523 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001874/0.7786, allocations: 1.741 MB / 0.8247 GB, free: 4.25 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.7786, allocations: 0 / 0.8247 GB, free: 4.25 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.923e-06/0.7786, allocations: 1.594 kB / 0.8247 GB, free: 4.25 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.621e-05/0.7787, allocations: 2.125 kB / 0.8247 GB, free: 4.25 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.00275/0.7814, allocations: 1.559 MB / 0.8262 GB, free: 3.059 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.7815, allocations: 10.52 kB / 0.8262 GB, free: 3.059 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005012/0.7865, allocations: 0.7409 MB / 0.827 GB, free: 2.727 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.7877, allocations: 0.7991 MB / 0.8277 GB, free: 2.066 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.225e-05/0.7878, allocations: 77.09 kB / 0.8278 GB, free: 2.031 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001576/0.7879, allocations: 97.5 kB / 0.8279 GB, free: 2 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003133/0.7911, allocations: 1.369 MB / 0.8292 GB, free: 1.141 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.297e-05/0.7911, allocations: 5.719 kB / 0.8292 GB, free: 1.137 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/0.7912, allocations: 46.81 kB / 0.8293 GB, free: 1.102 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.398e-05/0.7913, allocations: 28.39 kB / 0.8293 GB, free: 1.098 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004531/0.7958, allocations: 1.839 MB / 0.8311 GB, free: 232 kB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005947/0.8018, allocations: 3.09 MB / 0.8341 GB, free: 13.95 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003104/0.8049, allocations: 1.274 MB / 0.8354 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001433/0.8063, allocations: 0.5697 MB / 0.8359 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006878/0.807, allocations: 486.1 kB / 0.8364 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001743/0.8088, allocations: 0.7294 MB / 0.8371 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=100): time 2.685e-06/0.8088, allocations: 0 / 0.8371 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of matching and sorting (n=100): time 0.005769/0.8146, allocations: 1.848 MB / 0.8389 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.8147, allocations: 194.8 kB / 0.8391 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007714/0.8155, allocations: 0.6094 MB / 0.8397 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.933e-05/0.8156, allocations: 46.64 kB / 0.8397 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000345/0.8159, allocations: 414.5 kB / 0.8401 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002791/0.8162, allocations: 337.6 kB / 0.8405 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003178/0.8165, allocations: 192.6 kB / 0.8406 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001975/0.8168, allocations: 390.6 kB / 0.841 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/0.8181, allocations: 480.4 kB / 0.8415 GB, free: 9.051 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.8197, allocations: 0.5714 MB / 0.842 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00285/0.8225, allocations: 1.026 MB / 0.843 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.922e-06/0.8226, allocations: 6.938 kB / 0.843 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003886/0.8264, allocations: 1.295 MB / 0.8443 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.8265, allocations: 4 kB / 0.8443 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.8265, allocations: 0 / 0.8443 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005969/0.8271, allocations: 84.89 kB / 0.8444 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/0.8284, allocations: 251.7 kB / 0.8446 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002227/0.8307, allocations: 1.632 MB / 0.8462 GB, free: 5.148 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/0.832, allocations: 148.9 kB / 0.8464 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.8321, allocations: 43.97 kB / 0.8464 GB, free: 4.961 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.0005478/0.8326, allocations: 269.8 kB / 0.8467 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000233/0.8329, allocations: 86.95 kB / 0.8467 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004469/0.8374, allocations: 1.582 MB / 0.8483 GB, free: 3.008 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.8374, allocations: 12 kB / 0.8483 GB, free: 2.996 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.8374, allocations: 3.984 kB / 0.8483 GB, free: 2.992 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.8374, allocations: 3.984 kB / 0.8483 GB, free: 2.988 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006142/0.8435, allocations: 2.726 MB / 0.851 GB, free: 200 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.8436, allocations: 0 / 0.851 GB, free: 200 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001361/0.8449, allocations: 247.7 kB / 0.8512 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004361/0.8454, allocations: 76.48 kB / 0.8513 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.958e-05/0.8455, allocations: 35.97 kB / 0.8513 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001936/0.8474, allocations: 1.655 MB / 0.8529 GB, free: 14.05 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.8475, allocations: 4.031 kB / 0.8529 GB, free: 14.04 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003905/0.8514, allocations: 1.431 MB / 0.8543 GB, free: 12.59 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005061/0.8519, allocations: 299.6 kB / 0.8546 GB, free: 12.28 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001878/0.8521, allocations: 16 kB / 0.8546 GB, free: 12.26 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/0.8532, allocations: 115.9 kB / 0.8547 GB, free: 12.15 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/0.8534, allocations: 80.83 kB / 0.8548 GB, free: 12.07 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.22e-05/0.8535, allocations: 43.97 kB / 0.8549 GB, free: 12.03 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0005521/0.8541, allocations: 439 kB / 0.8553 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8541, allocations: 0 / 0.8553 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001039/0.8551, allocations: 367 kB / 0.8556 GB, free: 11.25 MB / 0.6231 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.001502/0.8566, allocations: 0.6214 MB / 0.8562 GB, free: 10.8 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.00359/0.8602, allocations: 1.312 MB / 0.8575 GB, free: 9.48 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.8602, allocations: 0 / 0.8575 GB, free: 9.48 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001868/0.8621, allocations: 0.785 MB / 0.8583 GB, free: 8.684 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001253/0.8634, allocations: 290.3 kB / 0.8586 GB, free: 8.414 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005135/0.8685, allocations: 2.124 MB / 0.8606 GB, free: 6.262 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006894/0.8692, allocations: 1.063 MB / 0.8617 GB, free: 5.168 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000556/0.8698, allocations: 135.3 kB / 0.8618 GB, free: 5.039 MB / 0.6231 GB Notification: Performance of SimCode: time 7.02e-07/0.8698, allocations: 0 / 0.8618 GB, free: 5.039 MB / 0.6231 GB Notification: Performance of Templates: time 0.0309/0.9007, allocations: 21.29 MB / 0.8826 GB, free: 15.78 MB / 0.6544 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient.makefile make -j1 -f IDEAS_dev_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-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/Modelica 4.0.0+maint.om/Resources/C-Sources" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficientCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficientCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficientCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficientFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficientCalcHelperMain.o] Error 1