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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin691
RA = 185.345, Dec = 30.1677
tmin = 418435201, tmax = 418694401
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='519591', job_status='RUN', time_executed='2021-09-05 09:20:41.957354', time_epoch_executed='1630858841.96' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='691'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/519591

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/519591/ft1_4FGL_J1221.3+3010_daily_bin691.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/519591/ft2_4FGL_J1221.3+3010_daily_bin691.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/519591/ft1_4FGL_J1221.3+3010_daily_bin691.fits outfile=/scratch/kocevski/519591/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin691.fits ra=185.345 dec=30.1677 rad=12.0 tmin=418435201.0 tmax=418694401.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 5.22
user 4.97
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/519591/ft2_4FGL_J1221.3+3010_daily_bin691.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/519591/ft2_4FGL_J1221.3+3010_daily_bin691.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/519591/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin691.fits evtable="EVENTS" outfile="/scratch/kocevski/519591/ft1_filtered_4FGL_J1221.3+3010_daily_bin691.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/519591/ft1_filtered_4FGL_J1221.3+3010_daily_bin691.fits" evtable="EVENTS" scfile=/scratch/kocevski/519591/ft2_4FGL_J1221.3+3010_daily_bin691.fits sctable="SC_DATA" outfile=/scratch/kocevski/519591/ltcube_418435201_418694401_4FGL_J1221.3+3010_daily_bin691.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/519591/ft2_4FGL_J1221.3+3010_daily_bin691.fits
.....................!
real 12.00
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/519591/ft1_filtered_4FGL_J1221.3+3010_daily_bin691.fits evtable="EVENTS" scfile=/scratch/kocevski/519591/ft2_4FGL_J1221.3+3010_daily_bin691.fits sctable="SC_DATA" expcube=/scratch/kocevski/519591/ltcube_418435201_418694401_4FGL_J1221.3+3010_daily_bin691.fits outfile=/scratch/kocevski/519591/expmap_418435201_418694401_4FGL_J1221.3+3010_daily_bin691.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/519591/ltcube_418435201_418694401_4FGL_J1221.3+3010_daily_bin691.fits
.....................!
real 189.89
user 185.12
sys 4.35

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

Setting source of interest to:
4FGL J1221.3+3010 @ 185.345 30.1677

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/519591/ft1_filtered_4FGL_J1221.3+3010_daily_bin691.fits scfile=/scratch/kocevski/519591/ft2_4FGL_J1221.3+3010_daily_bin691.fits outfile=/scratch/kocevski/519591/cmap_418435201_418694401_4FGL_J1221.3+3010_daily_bin691.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=185.345 yref=30.1677 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/519591/ft1_filtered_4FGL_J1221.3+3010_daily_bin691.fits scfile=/scratch/kocevski/519591/ft2_4FGL_J1221.3+3010_daily_bin691.fits outfile=/scratch/kocevski/519591/cmap_HighResolution_418435201_418694401_4FGL_J1221.3+3010_daily_bin691.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=185.345 yref=30.1677 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.58
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/519591/ft1_filtered_4FGL_J1221.3+3010_daily_bin691.fits evtable="EVENTS" scfile=/scratch/kocevski/519591/ft2_4FGL_J1221.3+3010_daily_bin691.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/519591/Model_4FGL_J1221.3+3010_daily_bin691.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/519591/ft1_filtered_4FGL_J1221.3+3010_daily_bin691.fits.....................!
real 48.81
user 47.45
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/519591/ft1_filtered_4FGL_J1221.3+3010_daily_bin691.fits', '/scratch/kocevski/519591/ft2_4FGL_J1221.3+3010_daily_bin691.fits', expMap='/scratch/kocevski/519591/expmap_418435201_418694401_4FGL_J1221.3+3010_daily_bin691.fits', expCube='/scratch/kocevski/519591/ltcube_418435201_418694401_4FGL_J1221.3+3010_daily_bin691.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/519591/Model_4FGL_J1221.3+3010_daily_bin691.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.3+3010'

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.833e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/519591/ft1_filtered_4FGL_J1221.3+3010_daily_bin691.fits
Spacecraft file(s): /scratch/kocevski/519591/ft2_4FGL_J1221.3+3010_daily_bin691.fits
Exposure map: /scratch/kocevski/519591/expmap_418435201_418694401_4FGL_J1221.3+3010_daily_bin691.fits
Exposure cube: /scratch/kocevski/519591/ltcube_418435201_418694401_4FGL_J1221.3+3010_daily_bin691.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/519591/Model_4FGL_J1221.3+3010_daily_bin691.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) = 5202.34915426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .76487       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.346       1.0000         .10000E-03   10000.    
     7 'Prefactor '    125.21       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13983E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1144       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0885       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6078       1.0000         .10000E-03   10000.    
    17 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    67.818       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1214       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .73976       1.0000         .10000E-03   10000.    
    29 'norm      '    19.572       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4153       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .80339       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5202.348     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     4083 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.572       -.19469E-06** at limit **
   2  Prefactor     .10000E-03    9.9430       -.19525E-06** at limit **
   3  Prefactor     .76523        5.5620        .52636E-06   -.15084E-03
   4  Prefactor     .10000E-03    26.359        .15543E-06** at limit **
   5  Prefactor     .10000E-03    .69831        .37106E-07** at limit **
   6  Prefactor     37.315        27.733       -.41495E-06   -.17570E-03
   7  Prefactor     125.24        87.617        .22748E-06    .47223E-04
   8  norm          .10000E-03    .57427       -.97256E-07** at limit **
   9  Prefactor     .10000E-03    2.8973        .68864E-07** at limit **
  10  Prefactor     .10000E-03    28.538       -.86080E-06** at limit **
  11  norm          4.1146        3.5146       -.56083E-08   -.12508E-04
  12  Prefactor     .10000E-03    6.1885        .49187E-07** at limit **
  13  Prefactor     5.0885        3.4543        .86593E-08   -.21516E-04
  14  Prefactor     .10000E-03    1.0953        .18337E-07** at limit **
  15  Prefactor     .10001E-03    4.2729        .98866E-06** at limit **
  16  norm          2.6078        .52409       -.83672E-08   -.67757E-03
  17  norm          .10000E-03    2.1734        .41561E-07** at limit **
  18  Prefactor     .10000E-03    4.6038        .21193E-07** at limit **
  19  Prefactor     .10000E-03    15.984        .13249E-06** at limit **
  20  Prefactor     67.787        88.870       -.10724E-05   -.38344E-04
  21  Prefactor     8.1209        8.1315       -.26483E-09   -.54709E-05
  22  Prefactor     .10000E-03    5.6195        .90986E-08** at limit **
  23  norm          .10000E-03    2.6688       -.40460E-06** at limit **
  24  Prefactor     .10000E-03    9.2255       -.95028E-07** at limit **
  25  norm          .10000E-03    1.2464        .11143E-07** at limit **
  26  Prefactor     .10000E-03    5.7698       -.21105E-07** at limit **
  27  norm          .10000E-03    5.7009        .73319E-08** at limit **
  28  norm          .74459        7.6076        .44016E-05   -.76583E-05
  29  norm          19.557        11.887       -.17589E-05   -.41628E-03
  30  Normalizat    1.4155        .21816        .16054E-05   -.28118E-03
  31  Prefactor     .80318        .24168       -.22644E-05   -.44932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.765233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.3152
  Prefactor  = 125.243
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.11462
  Prefactor  = 0.0001
  Prefactor  = 5.08852
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 2.60778
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.787
  Prefactor  = 8.1209
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.744593
  norm       = 19.5565
  Normalizat = 1.41547
  Prefactor  = 0.803178
 **********
 **   18 **HESSE 
 **********

 FCN=   5202.348     FROM HESSE     STATUS=OK           608 CALLS     4691 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.9889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .76523        10.966        .31544E-02   -1.5533    
   4  Prefactor     .10000E-03    26.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .70442        .58839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.315        27.774        .65583E-04   -1.4485    
   7  Prefactor     125.24        87.842        .17986E-03   -1.3465    
   8  norm          .10000E-03    .58709        .10656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9309        .11987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1146        3.5291        .11181E-03   -1.5302    
  12  Prefactor     .10000E-03    6.2221        .17520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0885        3.4672        .98705E-04   -1.5257    
  14  Prefactor     .10000E-03    1.1073        .73651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    9.0121        .28013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6078        .52351        .22157E-04   -1.5385    
  17  norm          .10000E-03    2.1838        .10381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.6201        .15114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     67.787        88.979        .48739E-04   -1.4059    
  21  Prefactor     8.1209        8.1304        .14069E-03   -1.5138    
  22  Prefactor     .10000E-03    5.6958        .16695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.6905        .11488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.2349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.2478        .78638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.7727        .16922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.9201        .33629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .74459        8.0449        .28393E-03   -1.5535    
  29  norm          19.557        12.088        .90533E-04   -1.4823    
  30  Normalizat    1.4155        .25007        .23648E-03   -.80182    
  31  Prefactor     .80318        .27652        .34553E-03   -.99611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61135e-08
Minuit parameter uncertainties:
  1  3.64209e-05
  2  7.99702e-06
  3  5.79448
  4  1.89397e-05
  5  5.34925e-07
  6  27.7833
  7  87.9335
  8  4.20674e-07
  9  3.01557e-06
  10  8.17394e-06
  11  3.52931
  12  5.20161e-06
  13  3.46738
  14  1.02863e-06
  15  0.000432787
  16  0.523514
  17  3.23686e-06
  18  2.37244e-06
  19  2.59416e-05
  20  89.1547
  21  8.13149
  22  1.1221e-05
  23  3.56485e-06
  24  1.71891e-06
  25  4.08269e-07
  26  7.68203e-06
  27  4.00585e-06
  28  4.89547
  29  12.0898
  30  0.250283
  31  0.277002
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  5.089e+00  3.467e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  8.032e-01  2.770e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.415e+00  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.73
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 4.75e-08 +/- 3.24e-08
Energy Flux (Fixed Index): 7.57e-05 +/- 5.16e-05

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) = 5202.11448015
delta logL = 0.233152598469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5202.10479887
delta logL = 0.242833877423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4899       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0095       1.0000          .0000       10.000    
     3 'Normalizat'    1.3906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81478       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+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=   5202.105     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      274 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4898        3.6015        .73207E-04   -.88985E-04
   2  Index         2.0095        .48038        .35930E-02    .52639E-03
   3  Normalizat    1.3907        .24597        .23810E-03   -.51204E-04
   4  Prefactor     .81474        .27623        .34306E-03   -.66577E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.48979
  Index      = 2.00946
  Normalizat = 1.39068
  Prefactor  = 0.814741
 **********
 **   18 **HESSE 
 **********

 FCN=   5202.105     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4898        3.3202        .29283E-05   -1.5334    
   2  Index         2.0095        .44269        .71860E-03   -.64114    
   3  Normalizat    1.3907        .24555        .47620E-04   -.80899    
   4  Prefactor     .81474        .27619        .13722E-04   -.99187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72171e-11
Minuit parameter uncertainties:
  1  3.32034
  2  0.443595
  3  0.24576
  4  0.276664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/519591': 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) = 5202.1047988
delta logL = 0.242833947338

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  3.490e+00  3.320e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.009e+00  4.436e-01  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  8.147e-01  2.767e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.391e+00  2.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.28
Ra Dec: 185.345 30.168
Photon Index (Free Index): 2.01 +/- 0.44
Photon Flux (Free Index): 7.26e-08 +/- 5.41e-08
Energy Flux (Free Index): 4.90e-05 +/- 4.01e-05

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/519591/cmap_HighResolution_418435201_418694401_4FGL_J1221.3+3010_daily_bin691.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.75e-08', energy_flux2='4.90e-05', photon_flux_error='3.24e-08', dlogl='2.43e-01', energy_flux='7.57e-05', photon_flux2='7.26e-08', job_status='DONE', time_completed='2021-09-05 09:33:11.091008', photon_index_error2='0.44', photon_index2='2.01', ts='8.73', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='4.01e-05', EG='1.42', time_epoch_completed='1630859591.09', return_code='0', job_id='519591', GAL2='0.81', EG2='1.39', return_code2='0', energy_flux_error='5.16e-05', photon_flux_error2='5.41e-08', ts2='9.28', photon_index='1.71' WHERE bin_id='691' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:33:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 519591: <4FGL_J1221.3+3010_daily_bin691> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin691> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 09:20:27 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:20:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 09:20:28 2021
Terminated at Sun Sep  5 09:33:11 2021
Results reported at Sun Sep  5 09:33:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin691 185.345 30.1677 418435201 418694401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.3+3010 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   746.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            764 sec.

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

