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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin677
RA = 185.345, Dec = 30.1677
tmin = 414806401, tmax = 415065601
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='519588', job_status='RUN', time_executed='2021-09-05 09:20:46.161167', time_epoch_executed='1630858846.16' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='677'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/519588

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/519588/ft1_4FGL_J1221.3+3010_daily_bin677.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/519588/ft2_4FGL_J1221.3+3010_daily_bin677.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/519588/ft1_4FGL_J1221.3+3010_daily_bin677.fits outfile=/scratch/kocevski/519588/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin677.fits ra=185.345 dec=30.1677 rad=12.0 tmin=414806401.0 tmax=415065601.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.89
user 5.61
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/519588/ft2_4FGL_J1221.3+3010_daily_bin677.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/519588/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin677.fits evtable="EVENTS" outfile="/scratch/kocevski/519588/ft1_filtered_4FGL_J1221.3+3010_daily_bin677.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.51
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/519588/ft1_filtered_4FGL_J1221.3+3010_daily_bin677.fits evtable="EVENTS" scfile=/scratch/kocevski/519588/ft2_4FGL_J1221.3+3010_daily_bin677.fits sctable="SC_DATA" expcube=/scratch/kocevski/519588/ltcube_414806401_415065601_4FGL_J1221.3+3010_daily_bin677.fits outfile=/scratch/kocevski/519588/expmap_414806401_415065601_4FGL_J1221.3+3010_daily_bin677.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/519588/ltcube_414806401_415065601_4FGL_J1221.3+3010_daily_bin677.fits
.....................!
real 195.07
user 189.60
sys 5.03

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/519588/ft1_filtered_4FGL_J1221.3+3010_daily_bin677.fits scfile=/scratch/kocevski/519588/ft2_4FGL_J1221.3+3010_daily_bin677.fits outfile=/scratch/kocevski/519588/cmap_414806401_415065601_4FGL_J1221.3+3010_daily_bin677.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/519588/ft1_filtered_4FGL_J1221.3+3010_daily_bin677.fits scfile=/scratch/kocevski/519588/ft2_4FGL_J1221.3+3010_daily_bin677.fits outfile=/scratch/kocevski/519588/cmap_HighResolution_414806401_415065601_4FGL_J1221.3+3010_daily_bin677.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/519588/ft1_filtered_4FGL_J1221.3+3010_daily_bin677.fits evtable="EVENTS" scfile=/scratch/kocevski/519588/ft2_4FGL_J1221.3+3010_daily_bin677.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/519588/Model_4FGL_J1221.3+3010_daily_bin677.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/519588/ft1_filtered_4FGL_J1221.3+3010_daily_bin677.fits.....................!
real 41.67
user 40.26
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/519588/ft1_filtered_4FGL_J1221.3+3010_daily_bin677.fits', '/scratch/kocevski/519588/ft2_4FGL_J1221.3+3010_daily_bin677.fits', expMap='/scratch/kocevski/519588/expmap_414806401_415065601_4FGL_J1221.3+3010_daily_bin677.fits', expCube='/scratch/kocevski/519588/ltcube_414806401_415065601_4FGL_J1221.3+3010_daily_bin677.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/519588/Model_4FGL_J1221.3+3010_daily_bin677.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/519588/ft1_filtered_4FGL_J1221.3+3010_daily_bin677.fits
Spacecraft file(s): /scratch/kocevski/519588/ft2_4FGL_J1221.3+3010_daily_bin677.fits
Exposure map: /scratch/kocevski/519588/expmap_414806401_415065601_4FGL_J1221.3+3010_daily_bin677.fits
Exposure cube: /scratch/kocevski/519588/ltcube_414806401_415065601_4FGL_J1221.3+3010_daily_bin677.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/519588/Model_4FGL_J1221.3+3010_daily_bin677.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) = 4168.3796902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.549       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .68688       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7856       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25106E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8108       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9288       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3569       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.5132       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0026       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9117       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1529       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8101       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0885       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.343       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.3766       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2899       1.0000         .10000E-03   10000.    
    23 'norm      '    3.7264       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .44369       1.0000         .10000E-03   10000.    
    28 'norm      '    4.7471       1.0000         .10000E-03   10000.    
    29 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .82190       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0782       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=   4168.372     FROM MIGRAD    STATUS=CONVERGED    816 CALLS     4181 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.484        25.239       -.23138E-05   -.12822E-03
   2  Prefactor     .73283        16.546        .80149E-06   -.14790E-03
   3  Prefactor     3.7855        5.7954       -.58103E-06   -.11281E-03
   4  Prefactor     .10002E-03    16.060        .28291E-05** at limit **
   5  Prefactor     2.8103        1.7688       -.18522E-07   -.33398E-03
   6  Prefactor     1.9166        76.296       -.51483E-06   -.15655E-04
   7  Prefactor     .10000E-03    52.134       -.13172E-05** at limit **
   8  norm          1.3565        1.5695       -.32385E-07   -.39153E-03
   9  Prefactor     .10000E-03    4.1835       -.61388E-07** at limit **
  10  Prefactor     .10000E-03    12.192        .18142E-06** at limit **
  11  norm          6.5132        4.3791        .33531E-07   -.84259E-05
  12  Prefactor     5.0029        5.7182        .93737E-07   -.57026E-05
  13  Prefactor     2.9119        3.0946        .34250E-07    .45390E-04
  14  Prefactor     5.1532        3.2565        .88645E-07    .47670E-04
  15  Prefactor     .10000E-03    3.1681       -.10041E-07** at limit **
  16  norm          3.8102        .60583        .23860E-07   -.13973E-03
  17  norm          .10000E-03    3.0944       -.28462E-07** at limit **
  18  Prefactor     2.0924        22.350       -.88670E-06    .77491E-04
  19  Prefactor     20.344        23.929        .19515E-06   -.13706E-04
  20  Prefactor     .10000E-03    48.157       -.50851E-06** at limit **
  21  Prefactor     9.3780        11.971        .23811E-06   -.81842E-05
  22  Prefactor     3.2920        7.7978        .12360E-05   -.43943E-04
  23  norm          3.7269        5.4383        .12040E-06   -.46553E-04
  24  Prefactor     .10000E-03    9.2087       -.16458E-07** at limit **
  25  norm          .10000E-03    1.5137       -.13207E-07** at limit **
  26  Prefactor     .10000E-03    37.332        .18720E-05** at limit **
  27  norm          .44032        12.112        .54165E-05   -.95686E-04
  28  norm          4.7462        4.6030        .12285E-06   -.60142E-04
  29  norm          .10000E-03    7.1464        .39588E-06** at limit **
  30  Normalizat    .82181        .22786       -.15991E-05   -.30082E-03
  31  Prefactor     1.0782        .25487       -.21421E-06   -.28137E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4837
  Prefactor  = 0.732831
  Prefactor  = 3.78553
  Prefactor  = 0.000100016
  Prefactor  = 2.81026
  Prefactor  = 1.91656
  Prefactor  = 0.000100001
  norm       = 1.35647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.51322
  Prefactor  = 5.0029
  Prefactor  = 2.91185
  Prefactor  = 5.1532
  Prefactor  = 0.0001
  norm       = 3.81016
  norm       = 0.0001
  Prefactor  = 2.09238
  Prefactor  = 20.3439
  Prefactor  = 0.0001
  Prefactor  = 9.37801
  Prefactor  = 3.29203
  norm       = 3.72695
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.440323
  norm       = 4.74621
  norm       = 0.0001
  Normalizat = 0.821807
  Prefactor  = 1.07819
 **********
 **   18 **HESSE 
 **********

 FCN=   4168.372     FROM HESSE     STATUS=OK           634 CALLS     4815 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.484        27.442        .95606E-04   -1.4871    
   2  Prefactor     .73283        49.681        .41199E-02   -1.5537    
   3  Prefactor     3.7855        5.8330        .90124E-03   -1.5319    
   4  Prefactor     .10002E-03    95.076        .45766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8103        1.7534        .65507E-04   -1.5373    
   6  Prefactor     1.9166        75.532        .29909E-03   -1.5431    
   7  Prefactor     .10000E-03    52.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3565        1.5407        .80637E-04   -1.5475    
   9  Prefactor     .10000E-03    4.3687        .25774E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.5132        4.3937        .97832E-04   -1.5197    
  12  Prefactor     5.0029        5.7186        .16041E-03   -1.5261    
  13  Prefactor     2.9119        3.1017        .10415E-03   -1.5367    
  14  Prefactor     5.1532        3.2478        .84834E-04   -1.5254    
  15  Prefactor     .10000E-03    3.1742        .11222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8102        .60729        .19110E-04   -1.5318    
  17  norm          .10000E-03    3.1129        .11088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0924        23.580        .14284E-02   -1.5419    
  19  Prefactor     20.344        23.911        .88803E-04   -1.4806    
  20  Prefactor     .10000E-03    48.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.3780        11.971        .13088E-03   -1.5095    
  22  Prefactor     3.2920        7.7311        .22323E-03   -1.5345    
  23  norm          3.7269        5.4213        .17293E-03   -1.5322    
  24  Prefactor     .10000E-03    9.2105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.5176        .77569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    37.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .44032        5.6012        .52988E-01   -1.5575    
  28  norm          4.7462        4.5718        .12936E-03   -1.5272    
  29  norm          .10000E-03    7.1606        .16766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .82181        .26815        .27148E-03   -.99265    
  31  Prefactor     1.0782        .30002        .28573E-03   -.90167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10501e-09
Minuit parameter uncertainties:
  1  27.4615
  2  12.0774
  3  5.83383
  4  0.00247144
  5  1.75347
  6  24.0955
  7  0.000337448
  8  1.54076
  9  7.57842e-06
  10  2.96514e-05
  11  4.3939
  12  5.71925
  13  3.10185
  14  3.24791
  15  1.94158e-06
  16  0.607294
  17  4.40023e-06
  18  14.0551
  19  23.922
  20  0.000114587
  21  11.9742
  22  7.73345
  23  5.42199
  24  1.0108e-05
  25  6.78372e-07
  26  1.10872e-05
  27  3.14093
  28  4.57217
  29  2.80131e-06
  30  0.268587
  31  0.300486
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.912e+00  3.102e+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:  1.078e+00  3.005e-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:  8.218e-01  2.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.69
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 2.72e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 4.33e-05 +/- 4.62e-05

TS (Fixed Index): 2.69
Ra Dec: 185.345 30.168
Photon Flux Upper Limit: 9.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/519588/likelihoodResults_414806401_415065601_4FGL_J1221.3+3010_daily_bin677.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) = 4168.07369149
delta logL = 0.298365372309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4168.06643131
delta logL = 0.30562555563

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5072       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2299       1.0000          .0000       10.000    
     3 'Normalizat'    .79066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0964       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.

 FCN=   4168.066     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      278 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5074        25.198        .87134E-02    .26052E-03
   2  Index         2.2300        2.6260        .79824E-01    .13940E-03
   3  Normalizat    .79058        .77873E-01    .62427E-01    .49899E-05
   4  Prefactor     1.0966        .81861E-01    .64051E-01    .18749E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.50742
  Index      = 2.22998
  Normalizat = 0.790581
  Prefactor  = 1.09657
 **********
 **   18 **HESSE 
 **********

 FCN=   4168.066     FROM HESSE     STATUS=OK            33 CALLS      311 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5074        2.8833        .59391E-04   -1.5462    
   2  Index         2.2300        .81019        .40240E-02   -.58717    
   3  Normalizat    .79058        .25630        .27613E-03   -1.0042    
   4  Prefactor     1.0966        .30054        .28330E-03   -.89576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79801e-11
Minuit parameter uncertainties:
  1  2.88352
  2  0.815396
  3  0.256688
  4  0.301008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/519588': 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) = 4168.06643099
delta logL = 0.305625868685

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.507e+00  2.884e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.230e+00  8.154e-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:  1.097e+00  3.010e-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:  7.906e-01  2.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.35
Ra Dec: 185.345 30.168
Photon Index (Free Index): 2.23 +/- 0.82
Photon Flux (Free Index): 5.96e-08 +/- 6.20e-08
Energy Flux (Free Index): 2.54e-05 +/- 2.73e-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/519588/cmap_HighResolution_414806401_415065601_4FGL_J1221.3+3010_daily_bin677.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', comment='SUCCESS', photon_flux='2.72e-08', energy_flux2='2.54e-05', photon_flux_error='2.89e-08', dlogl='3.06e-01', energy_flux='4.33e-05', photon_flux2='5.96e-08', job_status='DONE', time_completed='2021-09-05 09:33:38.008924', photon_index_error2='0.82', photon_index2='2.23', ts='2.69', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='9.88e-08', energy_flux_error2='2.73e-05', EG='0.82', time_epoch_completed='1630859618.01', return_code='0', job_id='519588', GAL2='1.10', EG2='0.79', return_code2='0', energy_flux_error='4.62e-05', photon_flux_error2='6.20e-08', ts2='3.35', photon_index='1.71' WHERE bin_id='677' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:33:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 519588: <4FGL_J1221.3+3010_daily_bin677> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin677> 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) <bullet0205>, 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:40 2021
Results reported at Sun Sep  5 09:33:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin677 185.345 30.1677 414806401 415065601 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 :                                   773.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            793 sec.

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

