aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 213 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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).

number of points = 74011
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0331.9+6307_monthly_bin170
RA = 52.9909, Dec = 63.1309
tmin = 677635201, tmax = 680227201
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='86046', job_status='RUN', time_executed='2022-07-23 00:49:18.266568', time_epoch_executed='1658562558.27' WHERE source_name='4FGL J0331.9+6307' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86046

Creating custom pfile directory:
/scratch/kocevski/86046/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=677635201.0 && nMetStart<680227201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=677635201.0 && nMetStart<680227201.0' /Data/Flight/Level1/LPA

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86046/ft1_4FGL_J0331.9+6307_monthly_bin170.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=677635201.0 && nMetStart<680227201.0' /Data/Flight/Level1/LPA

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86046/ft2_4FGL_J0331.9+6307_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86046/ft1_4FGL_J0331.9+6307_monthly_bin170.fits outfile=/scratch/kocevski/86046/ft1_filteredMKT_4FGL_J0331.9+6307_monthly_bin170.fits ra=52.9909 dec=63.1309 rad=12.0 tmin=677635201.0 tmax=680227201.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 33.51
user 31.56
sys 0.81

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/86046/ft2_4FGL_J0331.9+6307_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/86046/ft2_4FGL_J0331.9+6307_monthly_bin170.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/86046/ft1_filteredMKT_4FGL_J0331.9+6307_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/86046/ft1_filtered_4FGL_J0331.9+6307_monthly_bin170.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.90
user 0.69
sys 0.18

Number of photons that the gtmktime cut: 37344

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86046/ft1_filtered_4FGL_J0331.9+6307_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/86046/ft2_4FGL_J0331.9+6307_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/86046/ltcube_677635201_680227201_4FGL_J0331.9+6307_monthly_bin170.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 /scratch/kocevski/86046/ft2_4FGL_J0331.9+6307_monthly_bin170.fits
.....................!
real 110.86
user 110.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86046/ft1_filtered_4FGL_J0331.9+6307_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/86046/ft2_4FGL_J0331.9+6307_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/86046/ltcube_677635201_680227201_4FGL_J0331.9+6307_monthly_bin170.fits outfile=/scratch/kocevski/86046/expmap_677635201_680227201_4FGL_J0331.9+6307_monthly_bin170.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 /scratch/kocevski/86046/ltcube_677635201_680227201_4FGL_J0331.9+6307_monthly_bin170.fits
.....................!
real 191.97
user 186.49
sys 5.06

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 184 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0331.9+6307 @ 52.9909 63.1309

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/86046/ft1_filtered_4FGL_J0331.9+6307_monthly_bin170.fits scfile=/scratch/kocevski/86046/ft2_4FGL_J0331.9+6307_monthly_bin170.fits outfile=/scratch/kocevski/86046/cmap_677635201_680227201_4FGL_J0331.9+6307_monthly_bin170.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=52.9909 yref=63.1309 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.84
user 0.66
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86046/ft1_filtered_4FGL_J0331.9+6307_monthly_bin170.fits scfile=/scratch/kocevski/86046/ft2_4FGL_J0331.9+6307_monthly_bin170.fits outfile=/scratch/kocevski/86046/cmap_HighResolution_677635201_680227201_4FGL_J0331.9+6307_monthly_bin170.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=52.9909 yref=63.1309 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.85
user 0.68
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/86046/ft1_filtered_4FGL_J0331.9+6307_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/86046/ft2_4FGL_J0331.9+6307_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/86046/Model_4FGL_J0331.9+6307_monthly_bin170.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/scratch/kocevski/86046/ft1_filtered_4FGL_J0331.9+6307_monthly_bin170.fits.....................!
real 6649.90
user 6636.10
sys 2.90

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/86046/ft1_filtered_4FGL_J0331.9+6307_monthly_bin170.fits', '/scratch/kocevski/86046/ft2_4FGL_J0331.9+6307_monthly_bin170.fits', expMap='/scratch/kocevski/86046/expmap_677635201_680227201_4FGL_J0331.9+6307_monthly_bin170.fits', expCube='/scratch/kocevski/86046/ltcube_677635201_680227201_4FGL_J0331.9+6307_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/86046/Model_4FGL_J0331.9+6307_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0331.9+6307'

4FGL J0331.9+6307
   Spectrum: PowerLaw
358    Prefactor:  1.283e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
359        Index:  2.090e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  2.866e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/86046/ft1_filtered_4FGL_J0331.9+6307_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/86046/ft2_4FGL_J0331.9+6307_monthly_bin170.fits
Exposure map: /scratch/kocevski/86046/expmap_677635201_680227201_4FGL_J0331.9+6307_monthly_bin170.fits
Exposure cube: /scratch/kocevski/86046/ltcube_677635201_680227201_4FGL_J0331.9+6307_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/86046/Model_4FGL_J0331.9+6307_monthly_bin170.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) = 347079.852845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5030       1.0000         .10000E-03   10000.    
     2 'norm      '    4.7861       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2297       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.024       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3793       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8618       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.387       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32431       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4318       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.4001       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5166       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6528       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.3991       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .97447       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   347079.2     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     1540 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5030        .25311        .11804E-03   -.10232E-02
   2  norm          4.7862        .19766        .50844E-04    .61534E-03
   3  norm          3.2298        1.9192        .22540E-03   -.64560E-04
   4  norm          .10000E-03    1.1746        .37514E-02** at limit **
   5  Prefactor     11.026        8.6411        .12066E-03    .25326E-03
   6  Prefactor     1.3793        .91345        .37069E-03   -.78708E-03
   7  Prefactor     1.8618        .75768        .30537E-03   -.14844E-02
   8  Prefactor     15.386        7.1101        .10211E-03    .78385E-04
   9  Prefactor     .32425        1.3615        .19918        .39745E-02
  10  Prefactor     1.4319        1.2874        .36096E-03   -.63293E-03
  11  norm          .10000E-03    .90822        .18142E-02** at limit **
  12  norm          4.3999        5.0411        .95997E-03   -.61544E-03
  13  Prefactor     2.5158        1.6619        .25754E-03    .10453E-03
  14  Prefactor     1.6528        6.5475        .16417E-02   -.84738E-03
  15  Normalizat    1.3991        .90670E-01    .95356E-03    .46011E-03
  16  Prefactor     .97447        .97713E-02    .12036E-03    .35243E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.50304
  norm       = 4.78615
  norm       = 3.22981
  norm       = 0.0001
  Prefactor  = 11.0258
  Prefactor  = 1.37932
  Prefactor  = 1.86177
  Prefactor  = 15.3865
  Prefactor  = 0.324253
  Prefactor  = 1.43191
  norm       = 0.0001
  norm       = 4.39993
  Prefactor  = 2.51578
  Prefactor  = 1.65279
  Normalizat = 1.39915
  Prefactor  = 0.974472
 **********
 **   18 **HESSE 
 **********

 FCN=   347079.2     FROM HESSE     STATUS=OK           195 CALLS     1735 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5030        .25310        .47218E-05   -1.5463    
   2  norm          4.7862        .19766        .20338E-05   -1.5270    
   3  norm          3.2298        1.9192        .90161E-05   -1.5349    
   4  norm          .10000E-03    1.2186        .15006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.026        8.6294        .48265E-05   -1.5044    
   6  Prefactor     1.3793        .91334        .14828E-04   -1.5473    
   7  Prefactor     1.8618        .75746        .12215E-04   -1.5435    
   8  Prefactor     15.386        7.1134        .40842E-05   -1.4923    
   9  Prefactor     .32425        1.4190        .19334       -1.5594    
  10  Prefactor     1.4319        1.2872        .14438E-04   -1.5469    
  11  norm          .10000E-03    .90877        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.3999        5.0388        .38399E-04   -1.5288    
  13  Prefactor     2.5158        1.6619        .10302E-04   -1.5391    
  14  Prefactor     1.6528        6.5449        .65669E-04   -1.5451    
  15  Normalizat    1.3991        .90639E-01    .38142E-04   -.80653    
  16  Prefactor     .97447        .97714E-02    .48145E-05   -.93585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1569e-08
Minuit parameter uncertainties:
  1  0.253099
  2  0.197658
  3  1.91919
  4  1.16586e-05
  5  8.63036
  6  0.91335
  7  0.757462
  8  7.11383
  9  1.35646
  10  1.28719
  11  6.71471e-07
  12  5.03926
  13  1.66197
  14  6.54773
  15  0.0906496
  16  0.00977146
Done.

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

Extracting fit parameters...

4FGL J0331.9+6307
   Spectrum: PowerLaw
358    Prefactor:  1.379e+00  9.134e-01  1.000e-04  1.000e+04 ( 1.000e-13)
359        Index:  2.090e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  2.866e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  9.745e-01  9.771e-03  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.399e+00  9.065e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.80
Ra Dec: 52.991 63.131
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.41e-08 +/- 9.31e-09
Energy Flux (Fixed Index): 7.88e-06 +/- 5.22e-06

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) = 347079.200174
delta logL = 0.00370328273857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 347079.199996
delta logL = 0.0038817464374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3961       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0472       1.0000          .0000       10.000    
     3 'Normalizat'    1.3997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97450       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6410E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   347079.2     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3961        .96515        .18374E-02    .12113E-01
   2  Index         2.0472        .49877        .32382E-02   -.62915E-04
   3  Normalizat    1.3997        .88021E-01    .95341E-03   -.70210E-04
   4  Prefactor     .97450        .96174E-02    .12036E-03   -.23576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.39609
  Index      = 2.04719
  Normalizat = 1.3997
  Prefactor  = 0.974497
 **********
 **   18 **HESSE 
 **********

 FCN=   347079.2     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3961        .95013        .36747E-03   -1.5472    
   2  Index         2.0472        .49107        .12953E-03   -.63176    
   3  Normalizat    1.3997        .88020E-01    .38137E-04   -.80637    
   4  Prefactor     .97450        .96187E-02    .48144E-05   -.93585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96287e-11
Minuit parameter uncertainties:
  1  0.950145
  2  0.492287
  3  0.0880298
  4  0.00961868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86046': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 347079.199996
delta logL = 0.0038817464374

Extracting fit parameters...

4FGL J0331.9+6307
   Spectrum: PowerLaw
358    Prefactor:  1.396e+00  9.501e-01  1.000e-04  1.000e+04 ( 1.000e-13)
359        Index:  2.047e+00  4.923e-01  0.000e+00  1.000e+01 (-1.000e+00)
360        Scale:  2.866e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  9.745e-01  9.619e-03  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.400e+00  8.803e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.80
Ra Dec: 52.991 63.131
Photon Index (Free Index): 2.05 +/- 0.49
Photon Flux (Free Index): 1.28e-08 +/- 1.62e-08
Energy Flux (Free Index): 7.92e-06 +/- 5.35e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -4.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  4.440e+00 [aplpy.core]
Saving /scratch/kocevski/86046/cmap_HighResolution_677635201_680227201_4FGL_J0331.9+6307_monthly_bin170.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/86046

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.41e-08', energy_flux2='7.92e-06', photon_flux_error='9.31e-09', dlogl='3.88e-03', energy_flux='7.88e-06', photon_flux2='1.28e-08', job_status='DONE', time_completed='2022-07-23 05:45:50.374975', photon_index_error2='0.49', photon_index2='2.05', ts='4.80', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='5.35e-06', EG='1.40', time_epoch_completed='1658580350.38', return_code='0', job_id='86046', GAL2='0.97', EG2='1.40', return_code2='0', energy_flux_error='5.22e-06', photon_flux_error2='1.62e-08', ts2='4.80', photon_index='2.09' WHERE bin_id='170' AND source_name='4FGL J0331.9+6307' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 05:45:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 86046: <4FGL_J0331.9+6307_monthly_bin170> in cluster <slac> Done

Job <4FGL_J0331.9+6307_monthly_bin170> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jul 23 00:45:32 2022
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:45:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:45:33 2022
Terminated at Sat Jul 23 05:45:53 2022
Results reported at Sat Jul 23 05:45:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0331.9+6307_monthly_bin170 52.9909 63.1309 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0331.9+6307 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   17752.00 sec.
    Max Memory :                                 915 MB
    Average Memory :                             780.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   18019 sec.
    Turnaround time :                            18021 sec.

The output (if any) is above this job summary.

