 **********
 **   18 **HESSE 
 **********

 FCN=   9220.663     FROM HESSE     STATUS=OK           552 CALLS     2403 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3336        5.3294        .43554E-03   -1.5662    
   2  norm          67.559        18.353        .12166E-03   -1.5544    
   3  norm          1.4981        1.1861        .87549E-03   -1.5683    
   4  Prefactor     7.4522        4.7737        .36634E-03   -1.5653    
   5  Prefactor     .13770E-05    19.264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.1001        6.3199        .37784E-03   -1.5655    
   7  Prefactor     .13550E-06    74.559        .10028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .58475E-06    13.741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.8074        2.9496        .51687E-03   -1.5669    
  10  Prefactor     .55511E-10    2.3643        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0052        2.1542        .50355E-03   -1.5668    
  12  Prefactor     .49555E-06    11.395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.9112        4.3974        .50971E-03   -1.5668    
  14  norm          .28192E-05    3.3056        .52618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    3.5405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14488E-07    7.7409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        1.4097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .79936E-08    6.5234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.8000        1.6190        .33761E-03   -1.5649    
  20  norm           .0000        .96803        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .18319E-07    16.276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.730        23.979        .24956E-03   -1.5629    
  23  Prefactor     1.0779        21.578        .11454E-02   -1.5687    
  24  norm          12.205        25.998        .28738E-03   -1.5638    
  25  Prefactor     19.217        17.647        .22726E-03   -1.5620    
  26  Normalizat    .96412        .19124        .76638E-01   -.94242    
  27  Prefactor     1.2186        .14421        .55125E-01   -.85761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00549e-06
Minuit parameter uncertainties:
  1  5.3294
  2  18.3529
  3  1.18609
  4  4.77371
  5  0.0103006
  6  6.31989
  7  0.00635674
  8  0.0056695
  9  2.94958
  10  2.4721e-05
  11  2.15422
  12  0.00475259
  13  4.39743
  14  0.00610538
  15  2.57871e-05
  16  0.000669168
  17  5.36473e-07
  18  0.000456254
  19  1.619
  20  2.16742e-06
  21  0.00109271
  22  23.9792
  23  9.64555
  24  25.9978
  25  17.6469
  26  0.191371
  27  0.144252
/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9220.6631291

Extracting fit parameters...

4FGL J0532.8-3941
   Spectrum: PowerLaw
285    Prefactor:  5.551e-11  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-12)
286        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  6.147e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.219e+00  1.443e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.641e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 83.200 -39.685
Photon Flux Upper Limit: 6.79469394384e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0053145490501 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18874973/likelihoodResults_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9220.66419602
delta logL = -0.00106691723158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9220.55535526
delta logL = 0.107773845821

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29856E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.7864       1.0000          .0000       10.000    
     3 'Normalizat'    .93514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2322       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9220.555     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      271 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28679E-01    .35286        .77319E-03** at limit **
   2  Index         5.8114        1.9259        .34937        .65409E-04
   3  Normalizat    .93535        .17927E-01    .77680E-01    .55569E-04
   4  Prefactor     1.2321        .14352E-01    .54865E-01    .11439E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0286795
  Index      = 5.81141
  Normalizat = 0.935348
  Prefactor  = 1.23205
 **********
 **   18 **HESSE 
 **********

 FCN=   9220.555     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      306 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28679E-01    6.5232        .29927E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.8114        5.4693        .10102E-01    .16300    
   3  Normalizat    .93535        .12567        .34381E-03   -.95229    
   4  Prefactor     1.2321        .98588E-01    .24258E-03   -.85351    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.82293e-09
Minuit parameter uncertainties:
  1  0.865062
  2  18.0681
  3  0.125707
  4  0.098603
ng on...
/lscratch/kocevski/18875406/ft1_filtered_4FGL_J0532.8-3941_daily_bin1816.fits.....................!
real 37.30
user 35.68
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18875406/ft1_filtered_4FGL_J0532.8-3941_daily_bin1816.fits', '/lscratch/kocevski/18875406/ft2_4FGL_J0532.8-3941_daily_bin1816.fits', expMap='/lscratch/kocevski/18875406/expmap_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.fits', expCube='/lscratch/kocevski/18875406/ltcube_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18875406/Model_4FGL_J0532.8-3941_daily_bin1816.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0532.8-3941'

4FGL J0532.8-3941
   Spectrum: PowerLaw
285    Prefactor:  2.458e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
286        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  6.147e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18875406/ft1_filtered_4FGL_J0532.8-3941_daily_bin1816.fits
Spacecraft file(s): /lscratch/kocevski/18875406/ft2_4FGL_J0532.8-3941_daily_bin1816.fits
Exposure map: /lscratch/kocevski/18875406/expmap_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.fits
Exposure cube: /lscratch/kocevski/18875406/ltcube_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18875406/Model_4FGL_J0532.8-3941_daily_bin1816.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9221.53318326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9220.66581377

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3190       1.0000          .0000       .10000E+07
     2 'norm      '    67.568       1.0000          .0000       .10000E+07
     3 'norm      '    1.4963       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.4848       1.0000          .0000       .10000E+07
     5 'Prefactor '    .73291E-02   1.0000          .0000       .10000E+07
     6 'norm      '    7.0405       1.0000          .0000       .10000E+07
     7 'Prefactor '    .31351       1.0000          .0000       .10000E+07
     8 'Prefactor '    .37010E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.8099       1.0000          .0000       .10000E+07
    10 'Prefactor '    .35860E-06   1.0000          .0000       .10000E+07
    11 'norm      '    4.0072       1.0000          .0000       .10000E+07
    12 'Prefactor '    .81706E-05   1.0000          .0000       .10000E+07
    13 'norm      '    3.9141       1.0000          .0000       .10000E+07
    14 'norm      '    .27058E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .99703E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19570E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .13872E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .13051E-03   1.0000          .0000       .10000E+07
    19 'norm      '    8.8018       1.0000          .0000       .10000E+07
    20 'norm      '    .76383E-07   1.0000          .0000       .10000E+07
    21 'norm      '    .26292E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    16.072       1.0000          .0000       .10000E+07
    23 'Prefactor '    1.0902       1.0000          .0000       .10000E+07
    24 'norm      '    12.129       1.0000          .0000       .10000E+07
    25 'Prefactor '    19.375       1.0000          .0000       .10000E+07
    26 'Normalizat'    .96359       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2186       1.0000          .0000       1shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9220.55534558
delta logL = 0.107783516778

Extracting fit parameters...

4FGL J0532.8-3941
   Spectrum: PowerLaw
285    Prefactor:  2.868e-02  8.651e-01  0.000e+00  1.000e+06 ( 1.000e-12)
286        Index:  5.811e+00  1.807e+01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  6.147e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.232e+00  9.860e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.353e-01  1.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 83.200 -39.685

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/18874973/cmap_HighResolution_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2023-07-10 09:29:23.360679', job_id='18874973', GAL2='1.23', fit_tolerance='1e-08', EG2='0.94', EG='0.96', time_epoch_completed='1689006563.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.08e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1816' AND source_name='4FGL J0532.8-3941' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:29:23 PDT 2023

0.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9220.663     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1851 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3336        5.0668        .26690E-07    .96450E-03
   2  norm          67.559        1.1867       -.14070E-08    .28359E-04
   3  norm          1.4981        1.1896        .55474E-07    .29011E-02
   4  Prefactor     7.4522        4.6320        .30788E-07    .20427E-02
   5  Prefactor     .13770E-05    12.811       -.30702E-06** at limit **
   6  norm          7.1001        6.2696        .81863E-08    .43439E-03
   7  Prefactor     .13550E-06    2.2300        .12112E-07** at limit **
   8  Prefactor     .58475E-06    6.4153        .21834E-09** at limit **
   9  Prefactor     3.8074        2.9338        .47415E-07    .73129E-03
  10  Prefactor     .55511E-10    2.3658       -.39548E-07** at limit **
  11  norm          4.0052        2.1527        .58646E-07    .24299E-02
  12  Prefactor     .49555E-06    9.3391        .10675E-06** at limit **
  13  norm          3.9112        3.8789       -.91867E-07   -.21294E-02
  14  norm          .28192E-05    11.908       -.19442E-06** at limit **
  15  Prefactor     .55511E-10    3.5501        .63581E-07** at limit **
  16  Prefactor     .14488E-07    7.6875        .23935E-06** at limit **
  17  norm           .0000        1.4094        .41085E-08** at limit **
  18  Prefactor     .79936E-08    6.4939        .16071E-06** at limit **
  19  norm          8.8000        1.6141        .11618E-07    .11845E-02
  20  norm           .0000        .97787        .18819E-07** at limit **
  21  norm          .18319E-07    8.3243       -.89798E-07** at limit **
  22  Prefactor     15.730        8.1198       -.55182E-07    .28699E-01
  23  Prefactor     1.0779        21.690       -.76473E-07   -.39805E-02
  24  norm          12.205        1.4018        .39802E-08   -.10242E-01
  25  Prefactor     19.217        1.1687       -.39057E-08    .21678E-02
  26  Normalizat    .96412        .22034       -.29159E-05    .10273E-04
  27  Prefactor     1.2186        .16683        .16930E-05    .36167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.3336
  norm       = 67.5587
  norm       = 1.49807
  Prefactor  = 7.45221
  Prefactor  = 1.37695e-06
  norm       = 7.10013
  Prefactor  = 1.35503e-07
  Prefactor  = 5.84754e-07
  Prefactor  = 3.80735
  Prefactor  = 5.55112e-11
  norm       = 4.00524
  Prefactor  = 4.95548e-07
  norm       = 3.91119
  norm       = 2.81919e-06
  Prefactor  = 5.55112e-11
  Prefactor  = 1.44884e-08
  norm       = 0
  Prefactor  = 7.99361e-09
  norm       = 8.80002
  norm       = 0
  norm       = 1.83187e-08
  Prefactor  = 15.73
  Prefactor  = 1.07792
  norm       = 12.2055
  Prefactor  = 19.2168
  Normalizat = 0.964116
  Prefactor  = 1.21858
 **********
 **   18 **HESSE 
 **********

 FCN=   9220.663     FROM HESSE     STATUS=OK           552 CALLS     2403 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3336        5.3294        .43554E-03   -1.5662    
   2  norm          67.559        18.353        .12166E-03   -1.5544    
   3  norm          1.4981        1.1861        .87549E-03   -1.5683    
   4  Prefactor     7.4522        4.7737        .36634E-03   -1.5653    
   5  Prefactor     .13770E-05    19.264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.1001        6.3199        .37784E-03   -1.5655    
   7  Prefactor     .13550E-06    74.559        .10028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .58475E-06    13.741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.8074        2.9496        .51687E-03   -1.5669    
  10  Prefactor     .55511E-10    2.3643        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0052        2.1542        .50355E-03   -1.5668    
  12  Prefactor     .49555E-06    11.395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.9112        4.3974        .50971E-03   -1.5668    
  14  norm          .28192E-05    3.3056        .52618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    3.5405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14488E-07    7.7409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        1.4097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .79936E-08    6.5234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.8000        1.6190        .33761E-03   -1.5649    
  20  norm           .0000        .96803        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .18319E-07    16.276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.730        23.979        .24956E-03   -1.5629    
  23  Prefactor     1.0779        21.578        .11454E-02   -1.5687    
  24  norm          12.205        25.998        .28738E-03   -1.5638    
  25  Prefactor     19.217        17.647        .22726E-03   -1.5620    
  26  Normalizat    .96412        .19124        .76638E-01   -.94242    
  27  Prefactor     1.2186        .14421        .55125E-01   -.85761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00549e-06
Minuit parameter uncertainties:
  1  5.3294
  2  18.3529
  3  1.18609
  4  4.77371
  5  0.0103006
  6  6.31989
  7  0.00635674
  8  0.0056695
  9  2.94958
  10  2.4721e-05
  11  2.15422
  12  0.00475259
  13  4.39743
  14  0.00610538
  15  2.57871e-05
  16  0.000669168
  17  5.36473e-07
  18  0.000456254
  19  1.619
  20  2.16742e-06
  21  0.00109271
  22  23.9792
  23  9.64555
  24  25.9978
  25  17.6469
  26  0.191371
  27  0.144252
number of points = 7600
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0532.8-3941_daily_bin1816
RA = 83.2, Dec = -39.6853
tmin = 710035201, tmax = 710294401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='18876805', job_status='RUN', time_executed='2023-07-10 09:28:41.903593', time_epoch_executed='1689006521.9' WHERE source_name='4FGL J0532.8-3941' and cadence='daily' and bin_id='1816'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18876805

Creating custom pfile directory:
/lscratch/kocevski/18876805/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=710035201.0 && nMetStart<710294401.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=710035201.0 && nMetStart<710294401.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18876805/ft1_4FGL_J0532.8-3941_daily_bin1816.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=710035201.0 && nMetStart<710294401.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18876805/ft2_4FGL_J0532.8-3941_daily_bin1816.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18876805/ft1_4FGL_J0532.8-3941_daily_bin1816.fits outfile=/lscratch/kocevski/18876805/ft1_filteredMKT_4FGL_J0532.8-3941_daily_bin1816.fits ra=83.2 dec=-39.6853 rad=12.0 tmin=710035201.0 tmax=710294401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.70
user 2.17
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18876805/ft2_4FGL_J0532.8-3941_daily_bin1816.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18876805/ft2_4FGL_J0532.8-3941_daily_bin1816.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/18876805/ft1_filteredMKT_4FGL_J0532.8-3941_daily_bin1816.fits evtable="EVENTS" outfile="/lscratch/kocevski/18876805/ft1_filtered_4FGL_J0532.8-3941_daily_bin1816.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.60
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 883

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18876805/ft1_filtered_4FGL_J0532.8-3941_daily_bin1816.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18876805/ft2_4FGL_J0532.8-3941_daily_bin1816.fits sctable="SC_DATA" outfileDone.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9220.6631291

Extracting fit parameters...

4FGL J0532.8-3941
   Spectrum: PowerLaw
285    Prefactor:  5.551e-11  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-12)
286        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  6.147e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.219e+00  1.443e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.641e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 83.200 -39.685
Photon Flux Upper Limit: 6.79469394384e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0053145490501 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18875406/likelihoodResults_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9220.66419602
delta logL = -0.00106691723158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9220.55535526
delta logL = 0.107773845821

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29856E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.7864       1.0000          .0000       10.000    
     3 'Normalizat'    .93514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2322       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9220.555     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      271 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28679E-01    .35286        .77319E-03** at limit **
   2  Index         5.8114        1.9259        .34937        .65409E-04
   3  Normalizat    .93535        .17927E-01    .77680E-01    .55569E-04
   4  Prefactor     1.2321        .14352E-01    .54865E-01    .11439E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0286795
  Index      = 5.81141
  Normalizat = 0.935348
  Prefactor  = 1.23205
 **********
 **   18 **HESSE 
 **********

 FCN=   9220.555     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      306 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28679E-01    6.5232        .29927E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.8114        5.4693        .10102E-01    .16300    
   3  Normalizat    .93535        .12567        .34381E-03   -.95229    
   4  Prefactor     1.2321        .98588E-01    .24258E-03   -.85351    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.82293e-09
Minuit parameter uncertainties:
  1  0.865062
  2  18.0681
  3  0.125707
  4  0.098603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9220.55534558
delta logL = 0.107783516778

Extracting fit parameters...

4FGL J0532.8-3941
   Spectrum: PowerLaw
285    Prefactor:  2.868e-02  8.651e-01  0.000e+00  1.000e+06 ( 1.000e-12)
286        Index:  5.811e+00  1.807e+01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  6.147e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.232e+00  9.860e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.353e-01  1.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 83.200 -39.685

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/18875406/cmap_HighResolution_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2023-07-10 09:30:59.157367', job_id='18875406', GAL2='1.23', fit_tolerance='1e-08', EG2='0.94', EG='0.96', time_epoch_completed='1689006659.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.08e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1816' AND source_name='4FGL J0532.8-3941' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:30:59 PDT 2023

=/lscratch/kocevski/18876805/ltcube_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/18876805/ft2_4FGL_J0532.8-3941_daily_bin1816.fits
.....................!
real 8.47
user 7.95
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18876805/ft1_filtered_4FGL_J0532.8-3941_daily_bin1816.fits evtable="EVENTS" scfile=/lscratch/kocevski/18876805/ft2_4FGL_J0532.8-3941_daily_bin1816.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18876805/ltcube_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.fits outfile=/lscratch/kocevski/18876805/expmap_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/18876805/ltcube_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.fits
.....................!
real 72.13
user 67.02
sys 4.08

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J0532.8-3941 @ 83.2 -39.6853

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18876805/ft1_filtered_4FGL_J0532.8-3941_daily_bin1816.fits scfile=/lscratch/kocevski/18876805/ft2_4FGL_J0532.8-3941_daily_bin1816.fits outfile=/lscratch/kocevski/18876805/cmap_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=83.2 yref=-39.6853 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.59
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18876805/ft1_filtered_4FGL_J0532.8-3941_daily_bin1816.fits scfile=/lscratch/kocevski/18876805/ft2_4FGL_J0532.8-3941_daily_bin1816.fits outfile=/lscratch/kocevski/18876805/cmap_HighResolution_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=83.2 yref=-39.6853 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.62
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18876805/ft1_filtered_4FGL_J0532.8-3941_daily_bin1816.fits evtable="EVENTS" scfile=/lscratch/kocevski/18876805/ft2_4FGL_J0532.8-3941_daily_bin1816.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18876805/Model_4FGL_J0532.8-3941_daily_bin1816.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/18876805/ft1_filtered_4FGL_J0532.8-3941_daily_bin1816.fits.....................!
real 40.77
user 38.95
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18876805/ft1_filtered_4FGL_J0532.8-3941_daily_bin1816.fits', '/lscratch/kocevski/18876805/ft2_4FGL_J0532.8-3941_daily_bin1816.fits', expMap='/lscratch/kocevski/18876805/expmap_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.fits', expCube='/lscratch/kocevski/18876805/ltcube_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18876805/Model_4FGL_J0532.8-3941_daily_bin1816.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0532.8-3941'

4FGL J0532.8-3941
   Spectrum: PowerLaw
285    Prefactor:  2.458e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
286        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  6.147e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18876805/ft1_filtered_4FGL_J0532.8-3941_daily_bin1816.fits
Spacecraft file(s): /lscratch/kocevski/18876805/ft2_4FGL_J0532.8-3941_daily_bin1816.fits
Exposure map: /lscratch/kocevski/18876805/expmap_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.fits
Exposure cube: /lscratch/kocevski/18876805/ltcube_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18876805/Model_4FGL_J0532.8-3941_daily_bin1816.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9221.53318326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9220.66581377

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3190       1.0000          .0000       .10000E+07
     2 'norm      '    67.568       1.0000          .0000       .10000E+07
     3 'norm      '    1.4963       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.4848       1.0000          .0000       .10000E+07
     5 'Prefactor '    .73291E-02   1.0000          .0000       .10000E+07
     6 'norm      '    7.0405       1.0000          .0000       .10000E+07
     7 'Prefactor '    .31351       1.0000          .0000       .10000E+07
     8 'Prefactor '    .37010E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.8099       1.0000          .0000       .10000E+07
    10 'Prefactor '    .35860E-06   1.0000          .0000       .10000E+07
    11 'norm      '    4.0072       1.0000          .0000       .10000E+07
    12 'Prefactor '    .81706E-05   1.0000          .0000       .10000E+07
    13 'norm      '    3.9141       1.0000          .0000       .10000E+07
    14 'norm      '    .27058E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .99703E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19570E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .13872E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .13051E-03   1.0000          .0000       .10000E+07
    19 'norm      '    8.8018       1.0000          .0000       .10000E+07
    20 'norm      '    .76383E-07   1.0000          .0000       .10000E+07
    21 'norm      '    .26292E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    16.072       1.0000          .0000       .10000E+07
    23 'Prefactor '    1.0902       1.0000          .0000       .10000E+07
    24 'norm      '    12.129       1.0000          .0000       .10000E+07
    25 'Prefactor '    19.375       1.0000          .0000       .10000E+07
    26 'Normalizat'    .96359       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9220.663     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1851 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3336        5.0668        .26690E-07    .96450E-03
   2  norm          67.559        1.1867       -.14070E-08    .28359E-04
   3  norm          1.4981        1.1896        .55474E-07    .29011E-02
   4  Prefactor     7.4522        4.6320        .30788E-07    .20427E-02
   5  Prefactor     .13770E-05    12.811       -.30702E-06** at limit **
   6  norm          7.1001        6.2696        .81863E-08    .43439E-03
   7  Prefactor     .13550E-06    2.2300        .12112E-07** at limit **
   8  Prefactor     .58475E-06    6.4153        .21834E-09** at limit **
   9  Prefactor     3.8074        2.9338        .47415E-07    .73129E-03
  10  Prefactor     .55511E-10    2.3658       -.39548E-07** at limit **
  11  norm          4.0052        2.1527        .58646E-07    .24299E-02
  12  Prefactor     .49555E-06    9.3391        .10675E-06** at limit **
  13  norm          3.9112        3.8789       -.91867E-07   -.21294E-02
  14  norm          .28192E-05    11.908       -.19442E-06** at limit **
  15  Prefactor     .55511E-10    3.5501        .63581E-07** at limit **
  16  Prefactor     .14488E-07    7.6875        .23935E-06** at limit **
  17  norm           .0000        1.4094        .41085E-08** at limit **
  18  Prefactor     .79936E-08    6.4939        .16071E-06** at limit **
  19  norm          8.8000        1.6141        .11618E-07    .11845E-02
  20  norm           .0000        .97787        .18819E-07** at limit **
  21  norm          .18319E-07    8.3243       -.89798E-07** at limit **
  22  Prefactor     15.730        8.1198       -.55182E-07    .28699E-01
  23  Prefactor     1.0779        21.690       -.76473E-07   -.39805E-02
  24  norm          12.205        1.4018        .39802E-08   -.10242E-01
  25  Prefactor     19.217        1.1687       -.39057E-08    .21678E-02
  26  Normalizat    .96412        .22034       -.29159E-05    .10273E-04
  27  Prefactor     1.2186        .16683        .16930E-05    .36167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.3336
  norm       = 67.5587
  norm       = 1.49807
  Prefactor  = 7.45221
  Prefactor  = 1.37695e-06
  norm       = 7.10013
  Prefactor  = 1.35503e-07
  Prefactor  = 5.84754e-07
  Prefactor  = 3.80735
  Prefactor  = 5.55112e-11
  norm       = 4.00524
  Prefactor  = 4.95548e-07
  norm       = 3.91119
  norm       = 2.81919e-06
  Prefactor  = 5.55112e-11
  Prefactor  = 1.44884e-08
  norm       = 0
  Prefactor  = 7.99361e-09
  norm       = 8.80002
  norm       = 0
  norm       = 1.83187e-08
  Prefactor  = 15.73
  Prefactor  = 1.07792
  norm       = 12.2055
  Prefactor  = 19.2168
  Normalizat = 0.964116
  Prefactor  = 1.21858
 **********
 **   18 **HESSE 
 **********

 FCN=   9220.663     FROM HESSE     STATUS=OK           552 CALLS     2403 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3336        5.3294        .43554E-03   -1.5662    
   2  norm          67.559        18.353        .12166E-03   -1.5544    
   3  norm          1.4981        1.1861        .87549E-03   -1.5683    
   4  Prefactor     7.4522        4.7737        .36634E-03   -1.5653    
   5  Prefactor     .13770E-05    19.264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.1001        6.3199        .37784E-03   -1.5655    
   7  Prefactor     .13550E-06    74.559        .10028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .58475E-06    13.741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.8074        2.9496        .51687E-03   -1.5669    
  10  Prefactor     .55511E-10    2.3643        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0052        2.1542        .50355E-03   -1.5668    
  12  Prefactor     .49555E-06    11.395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.9112        4.3974        .50971E-03   -1.5668    
  14  norm          .28192E-05    3.3056        .52618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    3.5405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14488E-07    7.7409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        1.4097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .79936E-08    6.5234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.8000        1.6190        .33761E-03   -1.5649    
  20  norm           .0000        .96803        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .18319E-07    16.276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.730        23.979        .24956E-03   -1.5629    
  23  Prefactor     1.0779        21.578        .11454E-02   -1.5687    
  24  norm          12.205        25.998        .28738E-03   -1.5638    
  25  Prefactor     19.217        17.647        .22726E-03   -1.5620    
  26  Normalizat    .96412        .19124        .76638E-01   -.94242    
  27  Prefactor     1.2186        .14421        .55125E-01   -.85761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00549e-06
Minuit parameter uncertainties:
  1  5.3294
  2  18.3529
  3  1.18609
  4  4.77371
  5  0.0103006
  6  6.31989
  7  0.00635674
  8  0.0056695
  9  2.94958
  10  2.4721e-05
  11  2.15422
  12  0.00475259
  13  4.39743
  14  0.00610538
  15  2.57871e-05
  16  0.000669168
  17  5.36473e-07
  18  0.000456254
  19  1.619
  20  2.16742e-06
  21  0.00109271
  22  23.9792
  23  9.64555
  24  25.9978
  25  17.6469
  26  0.191371
  27  0.144252
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9220.6631291

Extracting fit parameters...

4FGL J0532.8-3941
   Spectrum: PowerLaw
285    Prefactor:  5.551e-11  2.579e-05  0.000e+00  1.000e+06 ( 1.000e-12)
286        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  6.147e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.219e+00  1.443e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.641e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 83.200 -39.685
Photon Flux Upper Limit: 6.79469394384e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0053145490501 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18876805/likelihoodResults_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9220.66419602
delta logL = -0.00106691723158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9220.55535526
delta logL = 0.107773845821

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29856E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.7864       1.0000          .0000       10.000    
     3 'Normalizat'    .93514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2322       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9220.555     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      271 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28679E-01    .35286        .77319E-03** at limit **
   2  Index         5.8114        1.9259        .34937        .65409E-04
   3  Normalizat    .93535        .17927E-01    .77680E-01    .55569E-04
   4  Prefactor     1.2321        .14352E-01    .54865E-01    .11439E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0286795
  Index      = 5.81141
  Normalizat = 0.935348
  Prefactor  = 1.23205
 **********
 **   18 **HESSE 
 **********

 FCN=   9220.555     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      306 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28679E-01    6.5232        .29927E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.8114        5.4693        .10102E-01    .16300    
   3  Normalizat    .93535        .12567        .34381E-03   -.95229    
   4  Prefactor     1.2321        .98588E-01    .24258E-03   -.85351    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.82293e-09
Minuit parameter uncertainties:
  1  0.865062
  2  18.0681
  3  0.125707
  4  0.098603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9220.55534558
delta logL = 0.107783516778

Extracting fit parameters...

4FGL J0532.8-3941
   Spectrum: PowerLaw
285    Prefactor:  2.868e-02  8.651e-01  0.000e+00  1.000e+06 ( 1.000e-12)
286        Index:  5.811e+00  1.807e+01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  6.147e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.232e+00  9.860e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.353e-01  1.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 83.200 -39.685

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/18876805/cmap_HighResolution_710035201_710294401_4FGL_J0532.8-3941_daily_bin1816.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2023-07-10 09:36:46.478236', job_id='18876805', GAL2='1.23', fit_tolerance='1e-08', EG2='0.94', EG='0.96', time_epoch_completed='1689007006.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.08e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1816' AND source_name='4FGL J0532.8-3941' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:36:46 PDT 2023

