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.001212/0.001212, allocations: 108.9 kB / 16.41 MB, free: 5.98 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.001145/0.001145, allocations: 194.3 kB / 17.35 MB, free: 5.574 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.181/1.181, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7188/0.7188, allocations: 135.1 MB / 426.3 MB, free: 4.047 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 63.16 kB / 0.5863 GB, free: 21.84 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1326, allocations: 80.93 MB / 0.6653 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient): time 0.005748/0.1384, allocations: 4.406 MB / 0.6696 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4691/0.6075, allocations: 150.7 MB / 0.8167 GB, free: 8.199 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000774/0.6083, allocations: 20.25 kB / 0.8168 GB, free: 8.191 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0007078/0.609, allocations: 178.1 kB / 0.8169 GB, free: 8.094 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0017/0.6108, allocations: 489.2 kB / 0.8174 GB, free: 7.891 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002107/0.6129, allocations: 0.8965 MB / 0.8183 GB, free: 7.566 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001561/0.6145, allocations: 1.374 MB / 0.8196 GB, free: 7.195 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001082/0.6156, allocations: 0.7896 MB / 0.8204 GB, free: 6.918 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007635/0.6164, allocations: 0.5301 MB / 0.8209 GB, free: 6.746 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008006/0.6172, allocations: 0.5699 MB / 0.8215 GB, free: 6.441 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002983/0.6175, allocations: 129.8 kB / 0.8216 GB, free: 6.441 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009965/0.6185, allocations: 0.5191 MB / 0.8221 GB, free: 6.25 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003814/0.6189, allocations: 329.3 kB / 0.8224 GB, free: 5.988 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005754/0.6195, allocations: 0.6024 MB / 0.823 GB, free: 5.523 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001694/0.6212, allocations: 1.738 MB / 0.8247 GB, free: 4.254 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.6212, allocations: 0 / 0.8247 GB, free: 4.254 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.453e-06/0.6212, allocations: 0 / 0.8247 GB, free: 4.254 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.575e-05/0.6212, allocations: 4.406 kB / 0.8247 GB, free: 4.254 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.002406/0.6236, allocations: 1.567 MB / 0.8262 GB, free: 3.055 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.6237, allocations: 8.797 kB / 0.8262 GB, free: 3.055 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004615/0.6283, allocations: 0.7404 MB / 0.827 GB, free: 2.723 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001172/0.6295, allocations: 0.7977 MB / 0.8277 GB, free: 2.066 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.628e-05/0.6295, allocations: 76.69 kB / 0.8278 GB, free: 2.031 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.6297, allocations: 101.3 kB / 0.8279 GB, free: 1.996 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002742/0.6324, allocations: 1.367 MB / 0.8292 GB, free: 1.141 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.337e-05/0.6324, allocations: 3.938 kB / 0.8292 GB, free: 1.137 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/0.6326, allocations: 45.62 kB / 0.8293 GB, free: 1.102 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.719e-05/0.6326, allocations: 25.66 kB / 0.8293 GB, free: 1.102 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004092/0.6367, allocations: 1.836 MB / 0.8311 GB, free: 240 kB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005147/0.6418, allocations: 3.089 MB / 0.8341 GB, free: 13.95 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002861/0.6447, allocations: 1.271 MB / 0.8354 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001314/0.646, allocations: 0.5732 MB / 0.8359 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006106/0.6467, allocations: 482.3 kB / 0.8364 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001637/0.6483, allocations: 0.7299 MB / 0.8371 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=100): time 2.554e-06/0.6483, allocations: 0 / 0.8371 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of matching and sorting (n=100): time 0.005294/0.6536, allocations: 1.855 MB / 0.8389 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.6537, allocations: 190.5 kB / 0.8391 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007021/0.6544, allocations: 0.6138 MB / 0.8397 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.344e-05/0.6545, allocations: 42.2 kB / 0.8397 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003042/0.6548, allocations: 415.2 kB / 0.8401 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002437/0.6551, allocations: 335.3 kB / 0.8404 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002967/0.6554, allocations: 194.1 kB / 0.8406 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.6556, allocations: 391.3 kB / 0.841 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001266/0.6568, allocations: 479.9 kB / 0.8415 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001382/0.6582, allocations: 0.5712 MB / 0.842 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002578/0.6608, allocations: 1.027 MB / 0.843 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.6608, allocations: 0 / 0.843 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003457/0.6643, allocations: 1.297 MB / 0.8443 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.6643, allocations: 4 kB / 0.8443 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.6643, allocations: 0 / 0.8443 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005294/0.6649, allocations: 88.83 kB / 0.8444 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.6661, allocations: 251.7 kB / 0.8446 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001978/0.6681, allocations: 1.632 MB / 0.8462 GB, free: 5.238 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/0.6692, allocations: 146 kB / 0.8463 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.6693, allocations: 43.97 kB / 0.8464 GB, free: 5.055 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.000472/0.6698, allocations: 277.8 kB / 0.8466 GB, free: 4.773 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001688/0.67, allocations: 86.95 kB / 0.8467 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004045/0.674, allocations: 1.575 MB / 0.8483 GB, free: 3.102 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.674, allocations: 12 kB / 0.8483 GB, free: 3.09 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.295e-06/0.674, allocations: 0 / 0.8483 GB, free: 3.09 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.6741, allocations: 7.969 kB / 0.8483 GB, free: 3.082 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005295/0.6793, allocations: 2.726 MB / 0.851 GB, free: 296 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.6794, allocations: 0 / 0.851 GB, free: 296 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/0.6805, allocations: 247.7 kB / 0.8512 GB, free: 48 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003988/0.6809, allocations: 72.73 kB / 0.8513 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.738e-05/0.681, allocations: 35.97 kB / 0.8513 GB, free: 15.94 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001669/0.6827, allocations: 1.662 MB / 0.8529 GB, free: 14.13 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.6827, allocations: 4.031 kB / 0.8529 GB, free: 14.13 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003428/0.6862, allocations: 1.427 MB / 0.8543 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003627/0.6865, allocations: 299.6 kB / 0.8546 GB, free: 12.37 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/0.6867, allocations: 20 kB / 0.8546 GB, free: 12.35 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009766/0.6876, allocations: 115.9 kB / 0.8547 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.6878, allocations: 76.83 kB / 0.8548 GB, free: 12.16 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.426e-05/0.6879, allocations: 43.97 kB / 0.8548 GB, free: 12.12 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0004739/0.6884, allocations: 439 kB / 0.8553 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6884, allocations: 0 / 0.8553 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0009168/0.6893, allocations: 370.3 kB / 0.8556 GB, free: 11.34 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.001281/0.6906, allocations: 0.6236 MB / 0.8562 GB, free: 10.89 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003198/0.6938, allocations: 1.304 MB / 0.8575 GB, free: 9.574 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.6938, allocations: 0 / 0.8575 GB, free: 9.574 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001677/0.6955, allocations: 0.785 MB / 0.8583 GB, free: 8.777 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.6967, allocations: 292 kB / 0.8585 GB, free: 8.508 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004418/0.7011, allocations: 2.132 MB / 0.8606 GB, free: 6.348 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005284/0.7016, allocations: 1.056 MB / 0.8617 GB, free: 5.262 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000488/0.7021, allocations: 143.3 kB / 0.8618 GB, free: 5.125 MB / 0.6231 GB Notification: Performance of SimCode: time 7.91e-07/0.7021, allocations: 0 / 0.8618 GB, free: 5.125 MB / 0.6231 GB Notification: Performance of Templates: time 0.02365/0.7258, allocations: 21.43 MB / 0.8827 GB, free: 15.72 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