/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 186 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 = 7441
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0654.4+4514_daily_bin1411
RA = 103.606, Dec = 45.2446
tmin = 605059201, tmax = 605318401
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='964407', job_status='RUN', time_executed='2021-08-26 10:23:53.363528', time_epoch_executed='1629998633.36' WHERE source_name='4FGL J0654.4+4514' and cadence='daily' and bin_id='1411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964407/ft1_4FGL_J0654.4+4514_daily_bin1411.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964407/ft2_4FGL_J0654.4+4514_daily_bin1411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964407/ft1_4FGL_J0654.4+4514_daily_bin1411.fits outfile=/scratch/kocevski/964407/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin1411.fits ra=103.606 dec=45.2446 rad=12.0 tmin=605059201.0 tmax=605318401.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 4.33
user 3.72
sys 0.46

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/964407/ft2_4FGL_J0654.4+4514_daily_bin1411.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/964407/ft2_4FGL_J0654.4+4514_daily_bin1411.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/964407/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin1411.fits evtable="EVENTS" outfile="/scratch/kocevski/964407/ft1_filtered_4FGL_J0654.4+4514_daily_bin1411.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.60
user 0.25
sys 0.34

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964407/ft1_filtered_4FGL_J0654.4+4514_daily_bin1411.fits" evtable="EVENTS" scfile=/scratch/kocevski/964407/ft2_4FGL_J0654.4+4514_daily_bin1411.fits sctable="SC_DATA" outfile=/scratch/kocevski/964407/ltcube_605059201_605318401_4FGL_J0654.4+4514_daily_bin1411.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/964407/ft2_4FGL_J0654.4+4514_daily_bin1411.fits
.....................!
real 8.96
user 8.32
sys 0.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964407/ft1_filtered_4FGL_J0654.4+4514_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/964407/ft2_4FGL_J0654.4+4514_daily_bin1411.fits sctable="SC_DATA" expcube=/scratch/kocevski/964407/ltcube_605059201_605318401_4FGL_J0654.4+4514_daily_bin1411.fits outfile=/scratch/kocevski/964407/expmap_605059201_605318401_4FGL_J0654.4+4514_daily_bin1411.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/964407/ltcube_605059201_605318401_4FGL_J0654.4+4514_daily_bin1411.fits
.....................!
real 141.73
user 137.45
sys 3.83

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 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 174 point sources and 1 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 J0654.4+4514 @ 103.606 45.2446

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/964407/ft1_filtered_4FGL_J0654.4+4514_daily_bin1411.fits scfile=/scratch/kocevski/964407/ft2_4FGL_J0654.4+4514_daily_bin1411.fits outfile=/scratch/kocevski/964407/cmap_605059201_605318401_4FGL_J0654.4+4514_daily_bin1411.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=103.606 yref=45.2446 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.68
user 0.29
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964407/ft1_filtered_4FGL_J0654.4+4514_daily_bin1411.fits scfile=/scratch/kocevski/964407/ft2_4FGL_J0654.4+4514_daily_bin1411.fits outfile=/scratch/kocevski/964407/cmap_HighResolution_605059201_605318401_4FGL_J0654.4+4514_daily_bin1411.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=103.606 yref=45.2446 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.66
user 0.31
sys 0.33

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/964407/ft1_filtered_4FGL_J0654.4+4514_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/964407/ft2_4FGL_J0654.4+4514_daily_bin1411.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964407/Model_4FGL_J0654.4+4514_daily_bin1411.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
adding source HB 9
Working on...
/scratch/kocevski/964407/ft1_filtered_4FGL_J0654.4+4514_daily_bin1411.fits.....................!
real 117.55
user 115.86
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/964407/ft1_filtered_4FGL_J0654.4+4514_daily_bin1411.fits', '/scratch/kocevski/964407/ft2_4FGL_J0654.4+4514_daily_bin1411.fits', expMap='/scratch/kocevski/964407/expmap_605059201_605318401_4FGL_J0654.4+4514_daily_bin1411.fits', expCube='/scratch/kocevski/964407/ltcube_605059201_605318401_4FGL_J0654.4+4514_daily_bin1411.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/964407/Model_4FGL_J0654.4+4514_daily_bin1411.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0654.4+4514'

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  2.496e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  2.183e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
248         beta:  8.026e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
249           Eb:  9.087e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/964407/ft1_filtered_4FGL_J0654.4+4514_daily_bin1411.fits
Spacecraft file(s): /scratch/kocevski/964407/ft2_4FGL_J0654.4+4514_daily_bin1411.fits
Exposure map: /scratch/kocevski/964407/expmap_605059201_605318401_4FGL_J0654.4+4514_daily_bin1411.fits
Exposure cube: /scratch/kocevski/964407/ltcube_605059201_605318401_4FGL_J0654.4+4514_daily_bin1411.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/964407/Model_4FGL_J0654.4+4514_daily_bin1411.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) = 10439.6850211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10636E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1849       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12915E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.889       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.005       1.0000         .10000E-03   10000.    
    12 'norm      '    .49672E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3634       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.913       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.7272       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0023       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0523       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+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=   10439.68     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     2369 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.043        .18142E-02** at limit **
   2  norm          .10000E-03    2.9579        .20437E-02** at limit **
   3  norm          .10000E-03    1.0760        .10277E-02** at limit **
   4  Prefactor     7.1854        9.9280        .74823E-03   -.67553E-04
   5  Prefactor     .10000E-03    23.239        .18142E-02** at limit **
   6  norm          .10000E-03    2.4632        .30855E-03** at limit **
   7  norm          .10000E-03    4.8582        .28326E-02** at limit **
   8  Prefactor     14.887        23.081        .10380E-03   -.97696E-04
   9  norm          .10000E-03    1.5279        .12289E-02** at limit **
  10  Prefactor     .10000E-03    3.9146        .18142E-02** at limit **
  11  Prefactor     15.004        13.608        .51699E-03   -.65135E-04
  12  norm          .10046E-03    34.601        .38164E-02** at limit **
  13  Prefactor     1.3633        58.344        .18692E-02   -.98893E-04
  14  Prefactor     27.916        22.440        .75828E-04    .13338E-03
  15  Prefactor     .10000E-03    7.9338        .18142E-02** at limit **
  16  Prefactor     .10000E-03    7.8314        .18142E-02** at limit **
  17  norm          5.7285        3.0138        .12476E-03    .49208E-05
  18  Prefactor     .10000E-03    3.8312        .18142E-02** at limit **
  19  Normalizat    1.0023        .20378        .37991E-03   -.17458E-03
  20  Prefactor     1.0523        .85444E-01    .15948E-03   -.34842E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.18544
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.8871
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0039
  norm       = 0.000100459
  Prefactor  = 1.36327
  Prefactor  = 27.9163
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 5.72853
  Prefactor  = 0.0001
  Normalizat = 1.00232
  Prefactor  = 1.05234
 **********
 **   18 **HESSE 
 **********

 FCN=   10439.68     FROM HESSE     STATUS=OK           275 CALLS     2644 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.9858        .40874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.0762        .20554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.1854        9.9242        .29929E-04   -1.5172    
   5  Prefactor     .10000E-03    23.241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.4633        .61710E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.8871        .56653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.887        23.073        .41520E-05   -1.4936    
   9  norm          .10000E-03    1.5281        .24578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9177        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.004        13.606        .20680E-04   -1.4933    
  12  norm          .10046E-03    36.023        .15266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3633        58.164        .74769E-04   -1.5474    
  14  Prefactor     27.916        22.438        .15166E-04   -1.4651    
  15  Prefactor     .10000E-03    7.9370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.8325        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.7285        3.0136        .49903E-05   -1.5229    
  18  Prefactor     .10000E-03    3.8314        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0023        .20351        .15197E-04   -.92953    
  20  Prefactor     1.0523        .85452E-01    .31895E-04   -.91004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31317e-08
Minuit parameter uncertainties:
  1  0.00019764
  2  4.51425e-06
  3  4.4135e-07
  4  9.92643
  5  0.000185776
  6  1.22588e-07
  7  2.73073e-05
  8  23.0868
  9  3.35748e-07
  10  3.4916e-05
  11  13.6088
  12  0.00814109
  13  17.8273
  14  22.4452
  15  0.000153065
  16  0.000150364
  17  3.01371
  18  4.48842e-05
  19  0.203668
  20  0.0854629
Done.

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

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  1.000e-04  2.731e-05  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  2.183e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
248         beta:  8.026e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
249           Eb:  9.087e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.052e+00  8.546e-02  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.002e+00  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 103.606 45.245
Photon Flux Upper Limit: 6.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/964407/likelihoodResults_605059201_605318401_4FGL_J0654.4+4514_daily_bin1411.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): 102
logL (Free Index) = 10439.6828345
delta logL = -0.000978135118203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10439.6818568
delta logL = -4.5464366849e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10783E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2168       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0523       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10439.68     FROM MIGRAD    STATUS=FAILED        90 CALLS      249 TOTAL
                     EDM=   .58E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10808E-03    1596.4        .28285E-02** at limit **
   2  alpha         2.5637        2.5876        .16596E-01   -.81222E-05
   3  Normalizat    1.0023        .16198        .37991E-03    .14064E-03
   4  Prefactor     1.0523        .67060E-01    .15948E-03    .29587E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10439.68     FROM SIMPLEX   STATUS=PROGRESS     144 CALLS      393 TOTAL
                     EDM=   .67E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10787E-03    1596.4        .36595E-03** at limit **
   2  alpha         2.5637        2.5876        .39869E-04   -.81222E-05
   3  Normalizat    1.0023        .16198        .52364E-05    .14064E-03
   4  Prefactor     1.0523        .67060E-01    .83482E-06    .29587E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10439.68     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      439 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.4581        .56570E-03** at limit **
   2  alpha         2.6435        3.0319        .33192E-02    .54802E-08
   3  Normalizat    1.0023        .19555        .15197E-04    .18852E-04
   4  Prefactor     1.0523        .84538E-01    .31895E-04    .13259E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.64352
  Normalizat = 1.00232
  Prefactor  = 1.05234
 **********
 **   18 **HESSE 
 **********

 FCN=   10439.68     FROM HESSE     STATUS=OK            23 CALLS      462 TOTAL
                     EDM=   .96E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.4614        .11314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6435        3.3339        .66384E-03    .57439E-01
   3  Normalizat    1.0023        .19548        .30393E-05   -.92953    
   4  Prefactor     1.0523        .84520E-01    .63791E-05   -.91004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.58355e-13
Minuit parameter uncertainties:
  1  1.59802e-06
  2  158.6
  3  0.195616
  4  0.084531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964407': 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) = 10439.6818528
delta logL = 3.52816095983e-06

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  1.000e-04  1.598e-06  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  2.644e+00  1.586e+02  0.000e+00  5.000e+00 ( 1.000e+00)
248         beta:  8.026e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
249           Eb:  9.087e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.052e+00  8.453e-02  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.002e+00  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 103.606 45.245

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 /scratch/kocevski/964407/cmap_HighResolution_605059201_605318401_4FGL_J0654.4+4514_daily_bin1411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-05', job_status='DONE', photon_flux_upper_limit='6.84e-08', time_completed='2021-08-26 10:35:26.846192', job_id='964407', GAL2='1.05', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1629999326.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1411' AND source_name='4FGL J0654.4+4514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:35:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 964407: <4FGL_J0654.4+4514_daily_bin1411> in cluster <slac> Done

Job <4FGL_J0654.4+4514_daily_bin1411> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 26 10:20:26 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 10:20:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 10:20:27 2021
Terminated at Thu Aug 26 10:35:27 2021
Results reported at Thu Aug 26 10:35:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.4+4514_daily_bin1411 103.606 45.2446 605059201 605318401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0654.4+4514 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   691.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

