/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 0 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 = 7399
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1320.7+3314_daily_bin200
RA = 200.185, Dec = 33.2378
tmin = 291168001, tmax = 291427201
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='488038', job_status='RUN', time_executed='2021-09-07 12:39:16.519601', time_epoch_executed='1631043556.52' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488038

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488038/ft1_4FGL_J1320.7+3314_daily_bin200.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488038/ft2_4FGL_J1320.7+3314_daily_bin200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488038/ft1_4FGL_J1320.7+3314_daily_bin200.fits outfile=/scratch/kocevski/488038/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin200.fits ra=200.185 dec=33.2378 rad=12.0 tmin=291168001.0 tmax=291427201.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 3.51
user 3.25
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/488038/ft2_4FGL_J1320.7+3314_daily_bin200.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/488038/ft2_4FGL_J1320.7+3314_daily_bin200.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/488038/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin200.fits evtable="EVENTS" outfile="/scratch/kocevski/488038/ft1_filtered_4FGL_J1320.7+3314_daily_bin200.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/488038/ft1_filtered_4FGL_J1320.7+3314_daily_bin200.fits" evtable="EVENTS" scfile=/scratch/kocevski/488038/ft2_4FGL_J1320.7+3314_daily_bin200.fits sctable="SC_DATA" outfile=/scratch/kocevski/488038/ltcube_291168001_291427201_4FGL_J1320.7+3314_daily_bin200.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/488038/ft2_4FGL_J1320.7+3314_daily_bin200.fits
.....................!
real 15.37
user 14.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488038/ft1_filtered_4FGL_J1320.7+3314_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/488038/ft2_4FGL_J1320.7+3314_daily_bin200.fits sctable="SC_DATA" expcube=/scratch/kocevski/488038/ltcube_291168001_291427201_4FGL_J1320.7+3314_daily_bin200.fits outfile=/scratch/kocevski/488038/expmap_291168001_291427201_4FGL_J1320.7+3314_daily_bin200.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/488038/ltcube_291168001_291427201_4FGL_J1320.7+3314_daily_bin200.fits
.....................!
real 192.19
user 186.58
sys 4.63

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1320.7+3314 @ 200.185 33.2378

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/488038/ft1_filtered_4FGL_J1320.7+3314_daily_bin200.fits scfile=/scratch/kocevski/488038/ft2_4FGL_J1320.7+3314_daily_bin200.fits outfile=/scratch/kocevski/488038/cmap_291168001_291427201_4FGL_J1320.7+3314_daily_bin200.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=200.185 yref=33.2378 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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488038/ft1_filtered_4FGL_J1320.7+3314_daily_bin200.fits scfile=/scratch/kocevski/488038/ft2_4FGL_J1320.7+3314_daily_bin200.fits outfile=/scratch/kocevski/488038/cmap_HighResolution_291168001_291427201_4FGL_J1320.7+3314_daily_bin200.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=200.185 yref=33.2378 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.57
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/488038/ft1_filtered_4FGL_J1320.7+3314_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/488038/ft2_4FGL_J1320.7+3314_daily_bin200.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/488038/Model_4FGL_J1320.7+3314_daily_bin200.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/488038/ft1_filtered_4FGL_J1320.7+3314_daily_bin200.fits.....................!
real 45.61
user 44.15
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/488038/ft1_filtered_4FGL_J1320.7+3314_daily_bin200.fits', '/scratch/kocevski/488038/ft2_4FGL_J1320.7+3314_daily_bin200.fits', expMap='/scratch/kocevski/488038/expmap_291168001_291427201_4FGL_J1320.7+3314_daily_bin200.fits', expCube='/scratch/kocevski/488038/ltcube_291168001_291427201_4FGL_J1320.7+3314_daily_bin200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/488038/Model_4FGL_J1320.7+3314_daily_bin200.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1320.7+3314'

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.871e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.508e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/488038/ft1_filtered_4FGL_J1320.7+3314_daily_bin200.fits
Spacecraft file(s): /scratch/kocevski/488038/ft2_4FGL_J1320.7+3314_daily_bin200.fits
Exposure map: /scratch/kocevski/488038/expmap_291168001_291427201_4FGL_J1320.7+3314_daily_bin200.fits
Exposure cube: /scratch/kocevski/488038/ltcube_291168001_291427201_4FGL_J1320.7+3314_daily_bin200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/488038/Model_4FGL_J1320.7+3314_daily_bin200.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) = 5445.53571842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .86604E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10682E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.6722       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.989       1.0000         .10000E-03   10000.    
    10 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.536       1.0000         .10000E-03   10000.    
    12 'norm      '    3.8716       1.0000         .10000E-03   10000.    
    13 'norm      '    .13341E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    24.421       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7638       1.0000         .10000E-03   10000.    
    17 'norm      '    10.181       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.0599       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4955       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1581       1.0000         .10000E-03   10000.    
    24 'norm      '    4.6604       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .67748       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1586       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+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=   5445.475     FROM MIGRAD    STATUS=CONVERGED   1188 CALLS     4339 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10016E-03    22.612        .33579E-02** at limit **
   2  Prefactor     .10000E-03    24.569        .18142E-02** at limit **
   3  Prefactor     .10155E-03    37.494        .14763    ** at limit **
   4  Prefactor     .10000E-03    4.3776        .15000E-02** at limit **
   5  norm          .10000E-03    1.0626        .74089E-03** at limit **
   6  Prefactor     .10000E-03    110.90        .18142E-02** at limit **
   7  Prefactor     .10000E-03    10.208        .18142E-02** at limit **
   8  norm          6.6720        4.4558        .12160E-03   -.35341E-04
   9  Prefactor     23.985        17.935        .81785E-04   -.77566E-04
  10  norm          .10000E-03    3.2169        .12837E-02** at limit **
  11  norm          15.534        11.065        .10161E-03    .11819E-03
  12  norm          3.8767        2.6359        .94754E-04   -.56391E-04
  13  norm          .10000E-03    8.5433        .27111E-02** at limit **
  14  norm          24.419        17.565        .81059E-04   -.61234E-04
  15  Prefactor     .10000E-03    .86371        .66637E-03** at limit **
  16  Prefactor     1.7638        4.9223        .26766E-03    .32663E-04
  17  norm          10.180        7.0132        .12558E-03   -.16658E-04
  18  Prefactor     .10000E-03    9.2466        .18142E-02** at limit **
  19  norm          6.0593        8.9513        .81550E-03   -.17341E-03
  20  Prefactor     7.4948        9.1421        .14649E-03   -.16608E-04
  21  Prefactor     .10000E-03    6.7991        .18142E-02** at limit **
  22  Prefactor     .10001E-03    119.57        .18142E-02** at limit **
  23  Prefactor     2.1579        2.6245        .12754E-03   -.17828E-04
  24  norm          4.6667        14.762        .18642E-03    .12136E-04
  25  Prefactor     .10000E-03    14.744        .18142E-02** at limit **
  26  Normalizat    .67750        .18148        .23744E-03   -.26406E-03
  27  Prefactor     1.1586        .22550        .23897E-03   -.37105E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100161
  Prefactor  = 0.0001
  Prefactor  = 0.000101552
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.67199
  Prefactor  = 23.9853
  norm       = 0.0001
  norm       = 15.534
  norm       = 3.87669
  norm       = 0.0001
  norm       = 24.4185
  Prefactor  = 0.0001
  Prefactor  = 1.76383
  norm       = 10.1798
  Prefactor  = 0.0001
  norm       = 6.05932
  Prefactor  = 7.49484
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 2.1579
  norm       = 4.66668
  Prefactor  = 0.0001
  Normalizat = 0.677496
  Prefactor  = 1.15862
 **********
 **   18 **HESSE 
 **********

 FCN=   5445.475     FROM HESSE     STATUS=OK           470 CALLS     4809 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10016E-03    22.770        .67157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10155E-03    37.407        .14793       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3783        .30001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0626        .14818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    111.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.6720        4.4556        .48639E-05   -1.5191    
   9  Prefactor     23.985        17.933        .32714E-05   -1.4728    
  10  norm          .10000E-03    3.2174        .25674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.534        11.065        .20323E-04   -1.4919    
  12  norm          3.8767        2.6294        .37902E-05   -1.5314    
  13  norm          .10000E-03    8.5562        .54223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          24.419        17.565        .16212E-04   -1.4719    
  15  Prefactor     .10000E-03    .86375        .13327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7638        4.9221        .10706E-04   -1.5442    
  17  norm          10.180        7.0111        .50230E-05   -1.5070    
  18  Prefactor     .10000E-03    9.2466        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.0593        8.9477        .32620E-04   -1.5216    
  20  Prefactor     7.4948        9.1418        .58594E-05   -1.5160    
  21  Prefactor     .10000E-03    6.7994        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    119.60        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.1579        2.6244        .51015E-05   -1.5414    
  24  norm          4.6667        14.761        .74569E-05   -1.5276    
  25  Prefactor     .10000E-03    14.752        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .67750        .18163        .94975E-05   -1.0479    
  27  Prefactor     1.1586        .22570        .47793E-04   -.87614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53164e-09
Minuit parameter uncertainties:
  1  0.00383561
  2  9.45288e-05
  3  0.0152469
  4  1.51302e-05
  5  1.2517e-06
  6  0.00049578
  7  8.32315e-06
  8  4.45587
  9  17.9367
  10  8.62208e-06
  11  11.0667
  12  2.62945
  13  8.52786e-05
  14  17.5685
  15  9.76884e-08
  16  4.92318
  17  7.01169
  18  7.05312e-06
  19  8.94971
  20  9.14351
  21  5.93203e-06
  22  0.00166619
  23  2.62456
  24  14.7723
  25  3.60121e-05
  26  0.181793
  27  0.22589
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.764e+00  4.923e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.508e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.159e+00  2.259e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  6.775e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 4.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/488038/likelihoodResults_291168001_291427201_4FGL_J1320.7+3314_daily_bin200.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) = 5445.46294083
delta logL = 0.0124875438823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5445.45429812
delta logL = 0.0211302527159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6856       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1553       1.0000          .0000       10.000    
     3 'Normalizat'    .67871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1573       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+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=   5445.454     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      268 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6961        7.9575        .12432E-02   -.70453E-04
   2  Index         2.1537        1.5968        .10959E-01   -.20379E-04
   3  Normalizat    .67879        .17311        .23722E-03   -.13131E-03
   4  Prefactor     1.1572        .22350        .23908E-03    .91660E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69615
  Index      = 2.15373
  Normalizat = 0.678788
  Prefactor  = 1.15718
 **********
 **   18 **HESSE 
 **********

 FCN=   5445.454     FROM HESSE     STATUS=OK            27 CALLS      295 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6961        7.5776        .49726E-04   -1.5380    
   2  Index         2.1537        1.5251        .43834E-03   -.60560    
   3  Normalizat    .67879        .17325        .94888E-05   -1.0474    
   4  Prefactor     1.1572        .22368        .47817E-04   -.87659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7887e-10
Minuit parameter uncertainties:
  1  7.58027
  2  1.56241
  3  0.173392
  4  0.223864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488038': 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) = 5445.45429689
delta logL = 0.0211314814596

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  2.696e+00  7.580e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.154e+00  1.562e+00  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.157e+00  2.239e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  6.788e-01  1.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
Ra Dec: 200.185 33.238

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/488038/cmap_HighResolution_291168001_291427201_4FGL_J1320.7+3314_daily_bin200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-03', job_status='DONE', photon_flux_upper_limit='4.95e-08', time_completed='2021-09-07 12:52:15.213422', job_id='488038', GAL2='1.16', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1631044335.21', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.11e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='200' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:52:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 488038: <4FGL_J1320.7+3314_daily_bin200> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin200> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:36:04 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:39:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 12:39:07 2021
Terminated at Tue Sep  7 12:52:15 2021
Results reported at Tue Sep  7 12:52:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin200 200.185 33.2378 291168001 291427201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1320.7+3314 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   776.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            971 sec.

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

