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 53 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_J0322.4+6606_monthly_bin170
RA = 50.6146, Dec = 66.1102
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='86031', job_status='RUN', time_executed='2022-07-23 00:46:35.702958', time_epoch_executed='1658562395.7' WHERE source_name='4FGL J0322.4+6606' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86031

Creating custom pfile directory:
/scratch/kocevski/86031/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/86031/ft1_4FGL_J0322.4+6606_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/86031/ft2_4FGL_J0322.4+6606_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86031/ft1_4FGL_J0322.4+6606_monthly_bin170.fits outfile=/scratch/kocevski/86031/ft1_filteredMKT_4FGL_J0322.4+6606_monthly_bin170.fits ra=50.6146 dec=66.1102 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 32.65
user 31.58
sys 0.91

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/86031/ft2_4FGL_J0322.4+6606_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/86031/ft2_4FGL_J0322.4+6606_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/86031/ft1_filteredMKT_4FGL_J0322.4+6606_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/86031/ft1_filtered_4FGL_J0322.4+6606_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.88
user 0.67
sys 0.20

Number of photons that the gtmktime cut: 35831

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86031/ft1_filtered_4FGL_J0322.4+6606_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/86031/ft2_4FGL_J0322.4+6606_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/86031/ltcube_677635201_680227201_4FGL_J0322.4+6606_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/86031/ft2_4FGL_J0322.4+6606_monthly_bin170.fits
.....................!
real 111.86
user 111.20
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86031/ft1_filtered_4FGL_J0322.4+6606_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/86031/ft2_4FGL_J0322.4+6606_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/86031/ltcube_677635201_680227201_4FGL_J0322.4+6606_monthly_bin170.fits outfile=/scratch/kocevski/86031/expmap_677635201_680227201_4FGL_J0322.4+6606_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/86031/ltcube_677635201_680227201_4FGL_J0322.4+6606_monthly_bin170.fits
.....................!
real 192.53
user 186.52
sys 5.58

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.
Added 182 point sources and 3 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 J0322.4+6606 @ 50.6146 66.1102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/86031/ft1_filtered_4FGL_J0322.4+6606_monthly_bin170.fits scfile=/scratch/kocevski/86031/ft2_4FGL_J0322.4+6606_monthly_bin170.fits outfile=/scratch/kocevski/86031/cmap_677635201_680227201_4FGL_J0322.4+6606_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=50.6146 yref=66.1102 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.67
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86031/ft1_filtered_4FGL_J0322.4+6606_monthly_bin170.fits scfile=/scratch/kocevski/86031/ft2_4FGL_J0322.4+6606_monthly_bin170.fits outfile=/scratch/kocevski/86031/cmap_HighResolution_677635201_680227201_4FGL_J0322.4+6606_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=50.6146 yref=66.1102 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.67
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/86031/ft1_filtered_4FGL_J0322.4+6606_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/86031/ft2_4FGL_J0322.4+6606_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/86031/Model_4FGL_J0322.4+6606_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 W 3
Working on...
/scratch/kocevski/86031/ft1_filtered_4FGL_J0322.4+6606_monthly_bin170.fits.....................!
real 4757.19
user 4743.71
sys 5.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/86031/ft1_filtered_4FGL_J0322.4+6606_monthly_bin170.fits', '/scratch/kocevski/86031/ft2_4FGL_J0322.4+6606_monthly_bin170.fits', expMap='/scratch/kocevski/86031/expmap_677635201_680227201_4FGL_J0322.4+6606_monthly_bin170.fits', expCube='/scratch/kocevski/86031/ltcube_677635201_680227201_4FGL_J0322.4+6606_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/86031/Model_4FGL_J0322.4+6606_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0322.4+6606'

4FGL J0322.4+6606
   Spectrum: PowerLaw
326    Prefactor:  4.959e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  2.653e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.256e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/86031/ft1_filtered_4FGL_J0322.4+6606_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/86031/ft2_4FGL_J0322.4+6606_monthly_bin170.fits
Exposure map: /scratch/kocevski/86031/expmap_677635201_680227201_4FGL_J0322.4+6606_monthly_bin170.fits
Exposure cube: /scratch/kocevski/86031/ltcube_677635201_680227201_4FGL_J0322.4+6606_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/86031/Model_4FGL_J0322.4+6606_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) = 334333.364937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86187E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5423       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5410       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8385       1.0000         .10000E-03   10000.    
     6 'norm      '    3.3923       1.0000         .10000E-03   10000.    
     7 'norm      '    .10338E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.819       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4773       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.167       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5762       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7392       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9919       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.1793       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5866       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2916       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97558       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   334333.1     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1724 TOTAL
                     EDM=   .88E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3689         .0000    ** at limit **
   2  Prefactor     1.5423        .25724         .0000        .26424E-01
   3  norm          .10000E-03    .93534         .0000    ** at limit **
   4  Prefactor     2.5409        .86613         .0000        .76891    
   5  norm          4.8385        .19878         .0000        .84320E-02
   6  norm          3.3923        1.9628         .0000        .48079E-02
   7  norm          .10000E-03    .11592         .0000    ** at limit **
   8  Prefactor     13.814        9.0664         .0000       -.52066E-02
   9  Prefactor     1.4774        .94925         .0000        .14187E-01
  10  Prefactor     1.9215        .77745         .0000        .18337E-01
  11  Prefactor     15.167        7.0561         .0000       -.16473E-02
  12  Prefactor     2.5752        9.1504         .0000       -.37003E-03
  13  Prefactor     1.7394        1.3858         .0000        .91179E-02
  14  Prefactor     2.9919        3.2627         .0000       -.17941E-02
  15  norm          .10000E-03    1.0167         .0000    ** at limit **
  16  norm          5.1795        5.2338         .0000        .24381E-02
  17  Prefactor     2.5866        1.6931         .0000       -.34198E-01
  18  Normalizat    1.2916        .83140E-01     .0000        .13617E-02
  19  Prefactor     .97557        .95207E-02     .0000        .33272E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.54229
  norm       = 0.0001
  Prefactor  = 2.54086
  norm       = 4.83853
  norm       = 3.3923
  norm       = 0.0001
  Prefactor  = 13.8138
  Prefactor  = 1.47739
  Prefactor  = 1.92145
  Prefactor  = 15.1671
  Prefactor  = 2.57523
  Prefactor  = 1.73939
  Prefactor  = 2.99187
  norm       = 0.0001
  norm       = 5.17954
  Prefactor  = 2.58663
  Normalizat = 1.29158
  Prefactor  = 0.975575
 **********
 **   18 **HESSE 
 **********

 FCN=   334333.1     FROM HESSE     STATUS=OK           294 CALLS     2018 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2931        .21187       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5423        .25540        .11506E-03   -1.5460    
   3  norm          .10000E-03    .95529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5409        .85949        .12810E-02   -1.5389    
   5  norm          4.8385        .19880        .49851E-04   -1.5268    
   6  norm          3.3923        1.9591        .21967E-03   -1.5340    
   7  norm          .10000E-03    .17117        .65349E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.814        9.0007        .10775E-03   -1.4964    
   9  Prefactor     1.4774        .94544        .35327E-03   -1.5465    
  10  Prefactor     1.9215        .77073        .29979E-03   -1.5431    
  11  Prefactor     15.167        7.0562        .10284E-03   -1.4929    
  12  Prefactor     2.5752        9.1404        .25429E-03   -1.5387    
  13  Prefactor     1.7394        1.3747        .31815E-03   -1.5444    
  14  Prefactor     2.9919        3.2637        .23469E-03   -1.5362    
  15  norm          .10000E-03    1.0342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.1795        5.2286        .17664E-03   -1.5253    
  17  Prefactor     2.5866        1.6983        .12686E-02   -1.5386    
  18  Normalizat    1.2916        .82780E-01    .90078E-03   -.83818    
  19  Prefactor     .97557        .97632E-02    .12071E-03   -.93548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90257e-08
Minuit parameter uncertainties:
  1  4.38539e-05
  2  0.255399
  3  7.70425e-06
  4  0.859491
  5  0.198799
  6  1.95918
  7  9.6539e-06
  8  9.00155
  9  0.94545
  10  0.77073
  11  7.0566
  12  9.14533
  13  1.37469
  14  3.26386
  15  5.8655e-07
  16  5.22906
  17  1.69836
  18  0.0827885
  19  0.00976322
Done.

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

Extracting fit parameters...

4FGL J0322.4+6606
   Spectrum: PowerLaw
326    Prefactor:  1.381e+01  9.002e+00  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  2.653e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.256e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  9.756e-01  9.763e-03  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.292e+00  8.279e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.94
Ra Dec: 50.615 66.110
Photon Index (Fixed Index): 2.65 +/- 0.00
Photon Flux (Fixed Index): 3.06e-08 +/- 1.99e-08
Energy Flux (Fixed Index): 7.67e-06 +/- 4.99e-06

TS (Fixed Index): 2.94
Ra Dec: 50.615 66.110
Photon Flux Upper Limit: 6.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/86031/likelihoodResults_677635201_680227201_4FGL_J0322.4+6606_monthly_bin170.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) = 334332.280865
delta logL = 0.863159045286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 334332.278092
delta logL = 0.865932232991

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0300       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6742       1.0000          .0000       10.000    
     3 'Normalizat'    1.2704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97661       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   334332.3     FROM MIGRAD    STATUS=FAILED       110 CALLS      389 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0163        44.158        .10044E-02   -.32961E-03
   2  Index         3.6759        3.2408        .66499E-02    .29592E-02
   3  Normalizat    1.2704        .69891E-01    .90682E-03   -.31051E-03
   4  Prefactor     .97661        .83402E-02    .12065E-03   -.30033E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   334332.3     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      479 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0163        44.158        .18409E-03   -.32961E-03
   2  Index         3.6759        3.2408        .10701E-02    .29592E-02
   3  Normalizat    1.2704        .69891E-01    .13084E-03   -.31051E-03
   4  Prefactor     .97661        .83402E-02    .13882E-04   -.30033E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   334332.3     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      515 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0163        32.037        .40175E-04   -.52521E-03
   2  Index         3.6759        2.8348        .13300E-02   -.70573E-04
   3  Normalizat    1.2704        .83452E-01    .36273E-04   -.30891E-03
   4  Prefactor     .97661        .99604E-02    .48259E-05   -.30154E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.01625
  Index      = 3.67591
  Normalizat = 1.27036
  Prefactor  = 0.976613
 **********
 **   18 **HESSE 
 **********

 FCN=   334332.3     FROM HESSE     STATUS=OK            23 CALLS      538 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0163        9.0413        .16070E-05   -1.5307    
   2  Index         3.6759        1.1936        .53199E-04   -.26801    
   3  Normalizat    1.2704        .81223E-01    .72545E-05   -.84456    
   4  Prefactor     .97661        .95819E-02    .96518E-06   -.93513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38799e-11
Minuit parameter uncertainties:
  1  9.04434
  2  1.20614
  3  0.0812316
  4  0.00958194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86031': 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) = 334332.278091
delta logL = 0.865933464258

Extracting fit parameters...

4FGL J0322.4+6606
   Spectrum: PowerLaw
326    Prefactor:  4.016e+00  9.044e+00  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  3.676e+00  1.206e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  9.256e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  9.766e-01  9.582e-03  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.270e+00  8.123e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.81
Ra Dec: 50.615 66.110
Photon Index (Free Index): 3.68 +/- 1.21
Photon Flux (Free Index): 5.37e-08 +/- 2.59e-08
Energy Flux (Free Index): 8.56e-06 +/- 4.59e-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/86031/cmap_HighResolution_677635201_680227201_4FGL_J0322.4+6606_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-03', comment='SUCCESS', photon_flux='3.06e-08', energy_flux2='8.56e-06', photon_flux_error='1.99e-08', dlogl='8.66e-01', energy_flux='7.67e-06', photon_flux2='5.37e-08', job_status='DONE', time_completed='2022-07-23 06:39:14.683269', photon_index_error2='1.21', photon_index2='3.68', ts='2.94', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='6.51e-08', energy_flux_error2='4.59e-06', EG='1.29', time_epoch_completed='1658583554.68', return_code='0', job_id='86031', GAL2='0.98', EG2='1.27', return_code2='0', energy_flux_error='4.99e-06', photon_flux_error2='2.59e-08', ts2='4.81', photon_index='2.65' WHERE bin_id='170' AND source_name='4FGL J0322.4+6606' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 06:39:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 86031: <4FGL_J0322.4+6606_monthly_bin170> in cluster <slac> Done

Job <4FGL_J0322.4+6606_monthly_bin170> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jul 23 00:45:31 2022
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:45:32 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:32 2022
Terminated at Sat Jul 23 06:39:16 2022
Results reported at Sat Jul 23 06:39:16 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   21123.00 sec.
    Max Memory :                                 1291 MB
    Average Memory :                             800.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   21224 sec.
    Turnaround time :                            21225 sec.

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

