Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.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.SkyClearness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001677/0.001677, allocations: 108.8 kB / 16.41 MB, free: 6.016 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.00151/0.00151, allocations: 182.8 kB / 17.34 MB, free: 5.629 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.456/1.456, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9/0.9, allocations: 135.2 MB / 426.4 MB, free: 4.082 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 62.69 kB / 0.5863 GB, free: 21.66 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1723/0.1742, allocations: 80.93 MB / 0.6654 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness): time 0.00671/0.1809, allocations: 4.2 MB / 0.6695 GB, free: 1.547 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5893/0.7702, allocations: 151 MB / 0.8169 GB, free: 8.102 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009024/0.7711, allocations: 15.72 kB / 0.8169 GB, free: 8.098 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006013/0.7717, allocations: 176.3 kB / 0.8171 GB, free: 8.008 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001696/0.7734, allocations: 483.4 kB / 0.8175 GB, free: 7.812 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002041/0.7755, allocations: 0.8251 MB / 0.8183 GB, free: 7.531 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001449/0.7769, allocations: 1.195 MB / 0.8195 GB, free: 7.211 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007936/0.7777, allocations: 0.507 MB / 0.82 GB, free: 7.055 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006487/0.7784, allocations: 463.9 kB / 0.8204 GB, free: 6.906 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005644/0.7789, allocations: 488.9 kB / 0.8209 GB, free: 6.688 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001276/0.779, allocations: 110.9 kB / 0.821 GB, free: 6.688 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001008/0.7801, allocations: 0.4922 MB / 0.8215 GB, free: 6.586 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002864/0.7803, allocations: 289.8 kB / 0.8218 GB, free: 6.395 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000519/0.7809, allocations: 0.5305 MB / 0.8223 GB, free: 5.988 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0021/0.783, allocations: 1.595 MB / 0.8238 GB, free: 4.828 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.783, allocations: 0 / 0.8238 GB, free: 4.828 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.984e-06/0.783, allocations: 3.938 kB / 0.8238 GB, free: 4.824 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.225e-05/0.783, allocations: 3.75 kB / 0.8238 GB, free: 4.824 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: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.002525/0.7855, allocations: 1.426 MB / 0.8252 GB, free: 3.68 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.7856, allocations: 15.89 kB / 0.8253 GB, free: 3.676 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001127/0.7867, allocations: 210.3 kB / 0.8255 GB, free: 3.574 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00126/0.7879, allocations: 0.7454 MB / 0.8262 GB, free: 2.965 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.312e-05/0.788, allocations: 77.33 kB / 0.8263 GB, free: 2.922 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.7881, allocations: 86.44 kB / 0.8263 GB, free: 2.895 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001729/0.7899, allocations: 0.9471 MB / 0.8273 GB, free: 2.293 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.507e-05/0.7899, allocations: 1.75 kB / 0.8273 GB, free: 2.293 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.698e-05/0.79, allocations: 35.75 kB / 0.8273 GB, free: 2.266 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.668e-05/0.79, allocations: 26.69 kB / 0.8273 GB, free: 2.262 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001857/0.7918, allocations: 1.138 MB / 0.8284 GB, free: 1.715 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004175/0.796, allocations: 2.528 MB / 0.8309 GB, free: 15.79 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001525/0.7975, allocations: 0.7751 MB / 0.8317 GB, free: 15.34 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005128/0.7981, allocations: 258.4 kB / 0.8319 GB, free: 15.21 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007294/0.7988, allocations: 477.3 kB / 0.8324 GB, free: 14.69 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008327/0.7996, allocations: 436.1 kB / 0.8328 GB, free: 14.41 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=73): time 1.984e-06/0.7996, allocations: 0 / 0.8328 GB, free: 14.41 MB / 0.6075 GB Notification: Performance of matching and sorting (n=73): time 0.003014/0.8026, allocations: 1.097 MB / 0.8338 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001352/0.8028, allocations: 196 kB / 0.834 GB, free: 13.58 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008182/0.8036, allocations: 0.6032 MB / 0.8346 GB, free: 13.22 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.981e-05/0.8037, allocations: 39.08 kB / 0.8347 GB, free: 13.18 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003868/0.804, allocations: 413.2 kB / 0.8351 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002408/0.8043, allocations: 252 kB / 0.8353 GB, free: 12.6 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002543/0.8045, allocations: 150.6 kB / 0.8354 GB, free: 12.51 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002096/0.8047, allocations: 385.8 kB / 0.8358 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005355/0.8053, allocations: 245.7 kB / 0.836 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006249/0.8059, allocations: 336 kB / 0.8364 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.807, allocations: 0.569 MB / 0.8369 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.807, allocations: 6.625 kB / 0.8369 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001886/0.8089, allocations: 0.7931 MB / 0.8377 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.8089, allocations: 8.859 kB / 0.8377 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.8089, allocations: 0 / 0.8377 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005913/0.8095, allocations: 83.92 kB / 0.8378 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006198/0.8101, allocations: 155.8 kB / 0.8379 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002509/0.8126, allocations: 1.628 MB / 0.8395 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008589/0.8135, allocations: 87.75 kB / 0.8396 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.395e-05/0.8136, allocations: 32.08 kB / 0.8396 GB, free: 9.344 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (84): * Single equations (assignments): 83 * 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.0006151/0.8142, allocations: 262.5 kB / 0.8399 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001987/0.8144, allocations: 83.39 kB / 0.84 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002404/0.8168, allocations: 0.9902 MB / 0.8409 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.8168, allocations: 7.25 kB / 0.8409 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.8168, allocations: 0 / 0.8409 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.8168, allocations: 7.922 kB / 0.8409 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003353/0.8202, allocations: 1.908 MB / 0.8428 GB, free: 7.238 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.8202, allocations: 0 / 0.8428 GB, free: 7.238 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005648/0.8207, allocations: 141.3 kB / 0.8429 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004431/0.8212, allocations: 74.34 kB / 0.843 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-05/0.8212, allocations: 23.64 kB / 0.843 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002058/0.8233, allocations: 1.657 MB / 0.8447 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.8233, allocations: 144 / 0.8447 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002015/0.8253, allocations: 0.9342 MB / 0.8456 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003949/0.8257, allocations: 262.4 kB / 0.8458 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/0.8258, allocations: 16.81 kB / 0.8458 GB, free: 4.754 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005745/0.8264, allocations: 58.66 kB / 0.8459 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.8265, allocations: 59.92 kB / 0.846 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.826e-05/0.8266, allocations: 28.39 kB / 0.846 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005851/0.8272, allocations: 441.5 kB / 0.8464 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8272, allocations: 3.938 kB / 0.8464 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009287/0.8281, allocations: 318 kB / 0.8467 GB, free: 4.328 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 (84): * Single equations (assignments): 81 * 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.001982/0.8301, allocations: 0.6173 MB / 0.8473 GB, free: 4.035 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001784/0.8319, allocations: 0.7426 MB / 0.848 GB, free: 3.43 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.8319, allocations: 4 kB / 0.848 GB, free: 3.426 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0009546/0.8328, allocations: 468.2 kB / 0.8485 GB, free: 2.957 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001302/0.8341, allocations: 295 kB / 0.8488 GB, free: 2.691 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004189/0.8383, allocations: 1.784 MB / 0.8505 GB, free: 0.8711 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007148/0.8391, allocations: 1.015 MB / 0.8515 GB, free: 15.83 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00034/0.8394, allocations: 115.4 kB / 0.8516 GB, free: 15.72 MB / 0.6231 GB Notification: Performance of SimCode: time 1.222e-06/0.8394, allocations: 3.938 kB / 0.8516 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of Templates: time 0.02718/0.8666, allocations: 18.08 MB / 0.8693 GB, free: 13.65 MB / 0.6387 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.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.SkyClearnessCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessFunctions.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.SkyClearnessCalcHelperMain.o] Error 1