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


Performing analysis on: 4FGL_J0654.3+5042_daily_bin1445
RA = 103.596, Dec = 50.7027
tmin = 613872001, tmax = 614131201
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='954840', job_status='RUN', time_executed='2021-08-26 09:50:55.777546', time_epoch_executed='1629996655.78' WHERE source_name='4FGL J0654.3+5042' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954840

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954840/ft1_4FGL_J0654.3+5042_daily_bin1445.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954840/ft2_4FGL_J0654.3+5042_daily_bin1445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954840/ft1_4FGL_J0654.3+5042_daily_bin1445.fits outfile=/scratch/kocevski/954840/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin1445.fits ra=103.596 dec=50.7027 rad=12.0 tmin=613872001.0 tmax=614131201.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.56
user 2.07
sys 0.48

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/954840/ft2_4FGL_J0654.3+5042_daily_bin1445.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/954840/ft2_4FGL_J0654.3+5042_daily_bin1445.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/954840/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin1445.fits evtable="EVENTS" outfile="/scratch/kocevski/954840/ft1_filtered_4FGL_J0654.3+5042_daily_bin1445.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.78
user 0.33
sys 0.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/954840/ft1_filtered_4FGL_J0654.3+5042_daily_bin1445.fits" evtable="EVENTS" scfile=/scratch/kocevski/954840/ft2_4FGL_J0654.3+5042_daily_bin1445.fits sctable="SC_DATA" outfile=/scratch/kocevski/954840/ltcube_613872001_614131201_4FGL_J0654.3+5042_daily_bin1445.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/954840/ft2_4FGL_J0654.3+5042_daily_bin1445.fits
.....................!
real 12.66
user 11.98
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954840/ft1_filtered_4FGL_J0654.3+5042_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/954840/ft2_4FGL_J0654.3+5042_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/954840/ltcube_613872001_614131201_4FGL_J0654.3+5042_daily_bin1445.fits outfile=/scratch/kocevski/954840/expmap_613872001_614131201_4FGL_J0654.3+5042_daily_bin1445.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/954840/ltcube_613872001_614131201_4FGL_J0654.3+5042_daily_bin1445.fits
.....................!
real 190.11
user 185.27
sys 4.42

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 191 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.3+5042 @ 103.596 50.7027

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/954840/ft1_filtered_4FGL_J0654.3+5042_daily_bin1445.fits scfile=/scratch/kocevski/954840/ft2_4FGL_J0654.3+5042_daily_bin1445.fits outfile=/scratch/kocevski/954840/cmap_613872001_614131201_4FGL_J0654.3+5042_daily_bin1445.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.596 yref=50.7027 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.37
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954840/ft1_filtered_4FGL_J0654.3+5042_daily_bin1445.fits scfile=/scratch/kocevski/954840/ft2_4FGL_J0654.3+5042_daily_bin1445.fits outfile=/scratch/kocevski/954840/cmap_HighResolution_613872001_614131201_4FGL_J0654.3+5042_daily_bin1445.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.596 yref=50.7027 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.82
user 0.37
sys 0.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/954840/ft1_filtered_4FGL_J0654.3+5042_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/954840/ft2_4FGL_J0654.3+5042_daily_bin1445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/954840/Model_4FGL_J0654.3+5042_daily_bin1445.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/954840/ft1_filtered_4FGL_J0654.3+5042_daily_bin1445.fits.....................!
real 72.37
user 70.59
sys 1.58

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/954840/ft1_filtered_4FGL_J0654.3+5042_daily_bin1445.fits', '/scratch/kocevski/954840/ft2_4FGL_J0654.3+5042_daily_bin1445.fits', expMap='/scratch/kocevski/954840/expmap_613872001_614131201_4FGL_J0654.3+5042_daily_bin1445.fits', expCube='/scratch/kocevski/954840/ltcube_613872001_614131201_4FGL_J0654.3+5042_daily_bin1445.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/954840/Model_4FGL_J0654.3+5042_daily_bin1445.xml', optimizer='MINUIT')

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

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  2.530e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  2.128e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  8.007e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/954840/ft1_filtered_4FGL_J0654.3+5042_daily_bin1445.fits
Spacecraft file(s): /scratch/kocevski/954840/ft2_4FGL_J0654.3+5042_daily_bin1445.fits
Exposure map: /scratch/kocevski/954840/expmap_613872001_614131201_4FGL_J0654.3+5042_daily_bin1445.fits
Exposure cube: /scratch/kocevski/954840/ltcube_613872001_614131201_4FGL_J0654.3+5042_daily_bin1445.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/954840/Model_4FGL_J0654.3+5042_daily_bin1445.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) = 4342.13849704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    111.59       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7934       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11869E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    82.064       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.409       1.0000         .10000E-03   10000.    
     8 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.7648       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .63258       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6655       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3576       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.847       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .53599       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10976E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10365E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0290       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0200       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4342.132     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3103 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.57        86.111        .12413E-05   -.15402E-04
   2  norm          2.7925        7.2442        .51423E-05   -.17984E-04
   3  norm          .10000E-03    6.3313        .48843E-07** at limit **
   4  Prefactor     .10000E-03    39.207        .18676E-05** at limit **
   5  Prefactor     .10000E-03    7.8739        .63031E-07** at limit **
   6  Prefactor     82.058        73.377        .60895E-06   -.90204E-04
   7  Prefactor     17.354        58.385        .11103E-04   -.20248E-04
   8  norm          .10000E-03    4.0722        .17142E-06** at limit **
   9  norm          3.7655        5.6681        .14604E-05   -.92359E-04
  10  Prefactor     .10000E-03    12.326        .79363E-08** at limit **
  11  norm          .10000E-03    2.7440        .86433E-07** at limit **
  12  Prefactor     .10000E-03    7.3366       -.49314E-07** at limit **
  13  Prefactor     .62762        7.6786       -.80921E-06   -.80649E-04
  14  Prefactor     1.5323        107.57        .16262E-04   -.15192E-04
  15  Prefactor     9.3557        20.691        .20997E-06   -.23012E-04
  16  norm          .10000E-03    4.4826        .65125E-07** at limit **
  17  Prefactor     13.845        29.835        .14061E-05   -.18842E-04
  18  Prefactor     .10000E-03    34.128       -.98838E-06** at limit **
  19  norm          .10000E-03    .23823        .13685E-07** at limit **
  20  Prefactor     .51913        13.536        .38950E-07    .33804E-04
  21  Prefactor     .10000E-03    51.707       -.11477E-05** at limit **
  22  norm          .10000E-03    3.0433        .21641E-06** at limit **
  23  norm          .10000E-03    3.2568        .12944E-06** at limit **
  24  norm          .10000E-03    .78833        .97964E-08** at limit **
  25  Normalizat    1.0288        .27834       -.24343E-05   -.19972E-03
  26  Prefactor     1.0201        .13866       -.14032E-05   -.22152E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.574
  norm       = 2.79251
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.0581
  Prefactor  = 17.3545
  norm       = 0.0001
  norm       = 3.76552
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.627618
  Prefactor  = 1.53228
  Prefactor  = 9.35569
  norm       = 0.0001
  Prefactor  = 13.8452
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.519127
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.02885
  Prefactor  = 1.02007
 **********
 **   18 **HESSE 
 **********

 FCN=   4342.132     FROM HESSE     STATUS=OK           456 CALLS     3559 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.57        86.248        .19040E-03   -1.3591    
   2  norm          2.7925        7.2648        .12172E-02   -1.5374    
   3  norm          .10000E-03    6.3665        .16193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    39.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8913        .18060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     82.058        73.473        .44338E-04   -1.3894    
   7  Prefactor     17.354        58.573        .95992E-04   -1.4875    
   8  norm          .10000E-03    4.1085        .12985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7655        5.6591        .92374E-03   -1.5320    
  10  Prefactor     .10000E-03    12.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7518        .10657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3395        .17432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .62762        15.923        .33495E-02   -1.5550    
  14  Prefactor     1.5323        108.01        .16339E-02   -1.5460    
  15  Prefactor     9.3557        20.678        .13101E-03   -1.5096    
  16  norm          .10000E-03    4.4898        .13623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.845        29.882        .10764E-03   -1.4964    
  18  Prefactor     .10000E-03    34.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .23996        .31383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .51913        85.232        .45046E-02   -1.5564    
  21  Prefactor     .10000E-03    52.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.1764        .22413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.2791        .11613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .79152        .57130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0288        .31478        .34251E-03   -.92070    
  26  Prefactor     1.0201        .15867        .17757E-03   -.92063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77178e-08
Minuit parameter uncertainties:
  1  86.3449
  2  7.2671
  3  1.13011e-05
  4  0.000270832
  5  1.32307e-05
  6  73.5549
  7  58.7681
  8  1.20848e-05
  9  5.65989
  10  8.26042e-06
  11  4.6761e-06
  12  6.87778e-06
  13  6.32396
  14  25.7766
  15  20.6941
  16  7.12727e-06
  17  29.914
  18  7.09098e-05
  19  7.44539e-07
  20  13.3216
  21  0.000385202
  22  2.15344e-05
  23  1.10526e-05
  24  1.99943e-06
  25  0.31535
  26  0.158745
Done.

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

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  1.000e-04  1.208e-05  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  2.128e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  8.007e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.020e+00  1.587e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.029e+00  3.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 103.596 50.703
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/954840/likelihoodResults_613872001_614131201_4FGL_J0654.3+5042_daily_bin1445.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) = 4342.13330206
delta logL = -0.00115878760607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4342.13214345
delta logL = -1.79450580617e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1270       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0202       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4342.132     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      227 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    803.20        .12985E-02** at limit **
   2  alpha         2.1214        2.9125        .16698        .43110E-06
   3  Normalizat    1.0289        .15860        .34251E-03    .43813E-05
   4  Prefactor     1.0201        .82493E-01    .17757E-03    .17619E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 2.12135
  Normalizat = 1.02885
  Prefactor  = 1.02007
 **********
 **   18 **HESSE 
 **********

 FCN=   4342.132     FROM HESSE     STATUS=OK            23 CALLS      250 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1114        .25970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1214        2.5160        .66793E-02   -.15204    
   3  Normalizat    1.0289        .29294        .13700E-04   -.92070    
   4  Prefactor     1.0201        .15247        .35515E-04   -.92063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90506e-09
Minuit parameter uncertainties:
  1  0.000233821
  2  193.301
  3  0.293405
  4  0.152539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954840': 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) = 4342.13214327
delta logL = 1.32240529638e-09

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  1.000e-04  2.338e-04  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  2.121e+00  1.933e+02  0.000e+00  5.000e+00 ( 1.000e+00)
252         beta:  8.007e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.020e+00  1.525e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.029e+00  2.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 103.596 50.703

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/954840/cmap_HighResolution_613872001_614131201_4FGL_J0654.3+5042_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-05', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-08-26 10:01:37.947205', job_id='954840', GAL2='1.02', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1629997297.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.32e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1445' AND source_name='4FGL J0654.3+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:01:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 954840: <4FGL_J0654.3+5042_daily_bin1445> in cluster <slac> Done

Job <4FGL_J0654.3+5042_daily_bin1445> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Aug 26 09:50:39 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 09:50:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 09:50:40 2021
Terminated at Thu Aug 26 10:01:38 2021
Results reported at Thu Aug 26 10:01:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.3+5042_daily_bin1445 103.596 50.7027 613872001 614131201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0654.3+5042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   645.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            659 sec.

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

