/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 186 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7675
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1200.2+0201_daily_bin504
RA = 180.055, Dec = 2.0172
tmin = 369964801, tmax = 370224001
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='241283', job_status='RUN', time_executed='2021-09-04 19:44:03.893461', time_epoch_executed='1630809843.89' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241283

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241283/ft1_4FGL_J1200.2+0201_daily_bin504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241283/ft2_4FGL_J1200.2+0201_daily_bin504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241283/ft1_4FGL_J1200.2+0201_daily_bin504.fits outfile=/scratch/kocevski/241283/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin504.fits ra=180.055 dec=2.0172 rad=12.0 tmin=369964801.0 tmax=370224001.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 7.70
user 7.45
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/241283/ft2_4FGL_J1200.2+0201_daily_bin504.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/241283/ft2_4FGL_J1200.2+0201_daily_bin504.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/241283/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin504.fits evtable="EVENTS" outfile="/scratch/kocevski/241283/ft1_filtered_4FGL_J1200.2+0201_daily_bin504.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/241283/ft1_filtered_4FGL_J1200.2+0201_daily_bin504.fits" evtable="EVENTS" scfile=/scratch/kocevski/241283/ft2_4FGL_J1200.2+0201_daily_bin504.fits sctable="SC_DATA" outfile=/scratch/kocevski/241283/ltcube_369964801_370224001_4FGL_J1200.2+0201_daily_bin504.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/241283/ft2_4FGL_J1200.2+0201_daily_bin504.fits
.....................!
real 11.57
user 11.23
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241283/ft1_filtered_4FGL_J1200.2+0201_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/241283/ft2_4FGL_J1200.2+0201_daily_bin504.fits sctable="SC_DATA" expcube=/scratch/kocevski/241283/ltcube_369964801_370224001_4FGL_J1200.2+0201_daily_bin504.fits outfile=/scratch/kocevski/241283/expmap_369964801_370224001_4FGL_J1200.2+0201_daily_bin504.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/241283/ltcube_369964801_370224001_4FGL_J1200.2+0201_daily_bin504.fits
.....................!
real 191.52
user 187.00
sys 4.22

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

Setting source of interest to:
4FGL J1200.2+0201 @ 180.055 2.0172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/241283/ft1_filtered_4FGL_J1200.2+0201_daily_bin504.fits scfile=/scratch/kocevski/241283/ft2_4FGL_J1200.2+0201_daily_bin504.fits outfile=/scratch/kocevski/241283/cmap_369964801_370224001_4FGL_J1200.2+0201_daily_bin504.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=180.055 yref=2.0172 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241283/ft1_filtered_4FGL_J1200.2+0201_daily_bin504.fits scfile=/scratch/kocevski/241283/ft2_4FGL_J1200.2+0201_daily_bin504.fits outfile=/scratch/kocevski/241283/cmap_HighResolution_369964801_370224001_4FGL_J1200.2+0201_daily_bin504.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=180.055 yref=2.0172 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/241283/ft1_filtered_4FGL_J1200.2+0201_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/241283/ft2_4FGL_J1200.2+0201_daily_bin504.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/241283/Model_4FGL_J1200.2+0201_daily_bin504.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/241283/ft1_filtered_4FGL_J1200.2+0201_daily_bin504.fits.....................!
real 54.44
user 52.82
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/241283/ft1_filtered_4FGL_J1200.2+0201_daily_bin504.fits', '/scratch/kocevski/241283/ft2_4FGL_J1200.2+0201_daily_bin504.fits', expMap='/scratch/kocevski/241283/expmap_369964801_370224001_4FGL_J1200.2+0201_daily_bin504.fits', expCube='/scratch/kocevski/241283/ltcube_369964801_370224001_4FGL_J1200.2+0201_daily_bin504.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/241283/Model_4FGL_J1200.2+0201_daily_bin504.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.2+0201'

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.346e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/241283/ft1_filtered_4FGL_J1200.2+0201_daily_bin504.fits
Spacecraft file(s): /scratch/kocevski/241283/ft2_4FGL_J1200.2+0201_daily_bin504.fits
Exposure map: /scratch/kocevski/241283/expmap_369964801_370224001_4FGL_J1200.2+0201_daily_bin504.fits
Exposure cube: /scratch/kocevski/241283/ltcube_369964801_370224001_4FGL_J1200.2+0201_daily_bin504.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/241283/Model_4FGL_J1200.2+0201_daily_bin504.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) = 5528.68605194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1841       1.0000         .10000E-03   10000.    
     2 'norm      '    .10496E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3483       1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.709       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10817E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.767       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12673E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0186       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.326       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6487       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13051E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.849       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.604       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.6824       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.1522       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.2712       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2405       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1173       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5528.653     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     4167 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1833        7.1249        .42451E-06   -.19100E-03
   2  norm          .10001E-03    72.429        .46803E-05** at limit **
   3  Prefactor     3.3482        2.7438        .86425E-07   -.13880E-04
   4  Prefactor     48.719        43.371        .74339E-06   -.12282E-04
   5  norm          .10000E-03    2.5414        .88394E-09** at limit **
   6  Prefactor     .10000E-03    3.8441        .76280E-07** at limit **
   7  Prefactor     43.766        37.928        .13448E-06   -.30790E-05
   8  Prefactor     .10000E-03    210.10       -.29099E-05** at limit **
   9  Prefactor     6.0209        11.420        .41509E-05   -.63722E-04
  10  Prefactor     .10000E-03    52.442       -.28212E-05** at limit **
  11  Prefactor     28.329        17.499       -.29127E-06    .44916E-04
  12  Prefactor     .10000E-03    7.3066       -.44784E-07** at limit **
  13  Prefactor     2.6487        32.850        .95415E-06    .13182E-05
  14  Prefactor     .10000E-03    30.495        .11079E-05** at limit **
  15  Prefactor     .10000E-03    26.079       -.16014E-05** at limit **
  16  Prefactor     .10001E-03    343.86       -.81432E-05** at limit **
  17  Prefactor     38.848        40.650        .12206E-06   -.77366E-06
  18  Prefactor     .10000E-03    35.389        .12003E-05** at limit **
  19  Prefactor     17.603        17.309        .10379E-06    .28159E-05
  20  norm          .10000E-03    1.6494        .14466E-07** at limit **
  21  norm          7.6830        5.0690        .33870E-07    .12287E-04
  22  Prefactor     .10000E-03    40.996       -.87699E-06** at limit **
  23  norm          .10000E-03    20.694        .28619E-06** at limit **
  24  Prefactor     .10000E-03    56.297       -.21297E-05** at limit **
  25  norm          2.1521        .91612        .26154E-07   -.82163E-05
  26  Prefactor     .10000E-03    6.1933        .32203E-07** at limit **
  27  norm          6.2712        2.6400        .49366E-07   -.17999E-04
  28  Prefactor     .10000E-03    11.300        .50978E-07** at limit **
  29  Prefactor     .10000E-03    35.880        .10845E-05** at limit **
  30  Normalizat    1.2405        .26322       -.13973E-05    .21338E-04
  31  Prefactor     1.1173        .20024       -.14275E-06   -.36455E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.18328
  norm       = 0.000100005
  Prefactor  = 3.34819
  Prefactor  = 48.7185
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.7659
  Prefactor  = 0.000100002
  Prefactor  = 6.02085
  Prefactor  = 0.000100002
  Prefactor  = 28.3289
  Prefactor  = 0.0001
  Prefactor  = 2.64869
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100008
  Prefactor  = 38.8475
  Prefactor  = 0.0001
  Prefactor  = 17.6027
  norm       = 0.0001
  norm       = 7.68302
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.15215
  Prefactor  = 0.0001
  norm       = 6.27116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24049
  Prefactor  = 1.11732
 **********
 **   18 **HESSE 
 **********

 FCN=   5528.653     FROM HESSE     STATUS=OK           620 CALLS     4787 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1833        7.1192        .14965E-03   -1.5172    
   2  norm          .10001E-03    75.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3482        2.7409        .10712E-03   -1.5342    
   4  Prefactor     48.719        43.287        .57456E-04   -1.4311    
   5  norm          .10000E-03    2.5436        .11575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0688        .27971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     43.766        37.924        .60599E-04   -1.4384    
   8  Prefactor     .10000E-03    211.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.0209        11.611        .81833E-03   -1.5217    
  10  Prefactor     .10000E-03    53.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.329        17.490        .75275E-04   -1.4643    
  12  Prefactor     .10000E-03    7.3180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6487        32.458        .25049E-03   -1.5382    
  14  Prefactor     .10000E-03    30.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    351.76        .20577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.848        40.596        .64306E-04   -1.4461    
  18  Prefactor     .10000E-03    35.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.603        17.203        .95459E-04   -1.4869    
  20  norm          .10000E-03    1.6567        .92706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.6830        5.0730        .12340E-03   -1.5154    
  22  Prefactor     .10000E-03    41.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    20.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    56.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.1521        .91466        .40985E-04   -1.5415    
  26  Prefactor     .10000E-03    6.2123        .18071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.2712        2.6373        .74281E-04   -1.5207    
  28  Prefactor     .10000E-03    11.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    36.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2405        .31135        .31781E-03   -.85361    
  31  Prefactor     1.1173        .23697        .26849E-03   -.88915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76067e-10
Minuit parameter uncertainties:
  1  7.12009
  2  0.00127907
  3  2.741
  4  43.3149
  5  6.72044e-08
  6  2.92709e-05
  7  37.9444
  8  0.00127798
  9  11.6158
  10  0.000629563
  11  17.4931
  12  5.98265e-06
  13  18.5562
  14  0.0001851
  15  0.000254411
  16  0.00340775
  17  40.6252
  18  0.000236251
  19  17.2079
  20  7.17912e-07
  21  5.07333
  22  0.000161596
  23  4.25395e-05
  24  0.00050432
  25  0.914664
  26  3.9844e-06
  27  2.63732
  28  8.6552e-06
  29  0.000197267
  30  0.311816
  31  0.237198
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  2.833e+01  1.749e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.117e+00  2.372e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.240e+00  3.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.18
Ra Dec: 180.055 2.017
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 6.58e-08
Energy Flux (Fixed Index): 5.74e-05 +/- 3.54e-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) = 5527.308523
delta logL = 1.34421842179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5527.29260342
delta logL = 1.36013800365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.042       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9066       1.0000          .0000       10.000    
     3 'Normalizat'    1.1099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1855       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5527.293     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      265 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.035        70.626        .31612E-02    .35278E-03
   2  Index         2.9070        2.1523        .71081E-01    .14120E-03
   3  Normalizat    1.1099        .12284        .75127E-01   -.10332E-04
   4  Prefactor     1.1855        .89044E-01    .59140E-01   -.15361E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0346
  Index      = 2.90704
  Normalizat = 1.10992
  Prefactor  = 1.18546
 **********
 **   18 **HESSE 
 **********

 FCN=   5527.293     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.035        16.238        .99247E-04   -1.5074    
   2  Index         2.9070        .75124        .28967E-02   -.43189    
   3  Normalizat    1.1099        .30950        .33249E-03   -.89434    
   4  Prefactor     1.1855        .24420        .26152E-03   -.86780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10037e-08
Minuit parameter uncertainties:
  1  16.2451
  2  0.754711
  3  0.310012
  4  0.244437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241283': 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) = 5527.29260306
delta logL = 1.36013835734

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.003e+01  1.625e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.907e+00  7.547e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.185e+00  2.444e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.110e+00  3.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.17
Ra Dec: 180.055 2.017
Photon Index (Free Index): 2.91 +/- 0.75
Photon Flux (Free Index): 2.16e-07 +/- 1.08e-07
Energy Flux (Free Index): 4.52e-05 +/- 2.29e-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/241283/cmap_HighResolution_369964801_370224001_4FGL_J1200.2+0201_daily_bin504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='4.52e-05', photon_flux_error='6.58e-08', dlogl='1.36e+00', energy_flux='5.74e-05', photon_flux2='2.16e-07', job_status='DONE', time_completed='2021-09-04 19:56:56.800388', photon_index_error2='0.75', photon_index2='2.91', ts='4.18', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='2.29e-05', EG='1.24', time_epoch_completed='1630810616.8', return_code='0', job_id='241283', GAL2='1.19', EG2='1.11', return_code2='0', energy_flux_error='3.54e-05', photon_flux_error2='1.08e-07', ts2='7.17', photon_index='2.11' WHERE bin_id='504' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:56:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 241283: <4FGL_J1200.2+0201_daily_bin504> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin504> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 19:40:48 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:40:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:40:49 2021
Terminated at Sat Sep  4 19:56:57 2021
Results reported at Sat Sep  4 19:56:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin504 180.055 2.0172 369964801 370224001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.2+0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   770.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            969 sec.

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

