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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin984
RA = 180.055, Dec = 2.0172
tmin = 494380801, tmax = 494640001
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='245520', job_status='RUN', time_executed='2021-09-04 19:55:48.093182', time_epoch_executed='1630810548.09' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='984'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/245520

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/245520/ft1_4FGL_J1200.2+0201_daily_bin984.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/245520/ft2_4FGL_J1200.2+0201_daily_bin984.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/245520/ft1_4FGL_J1200.2+0201_daily_bin984.fits outfile=/scratch/kocevski/245520/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin984.fits ra=180.055 dec=2.0172 rad=12.0 tmin=494380801.0 tmax=494640001.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.62
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/245520/ft2_4FGL_J1200.2+0201_daily_bin984.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/245520/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin984.fits evtable="EVENTS" outfile="/scratch/kocevski/245520/ft1_filtered_4FGL_J1200.2+0201_daily_bin984.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 1.02
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/245520/ft1_filtered_4FGL_J1200.2+0201_daily_bin984.fits" evtable="EVENTS" scfile=/scratch/kocevski/245520/ft2_4FGL_J1200.2+0201_daily_bin984.fits sctable="SC_DATA" outfile=/scratch/kocevski/245520/ltcube_494380801_494640001_4FGL_J1200.2+0201_daily_bin984.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/245520/ft2_4FGL_J1200.2+0201_daily_bin984.fits
.....................!
real 12.16
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/245520/ft1_filtered_4FGL_J1200.2+0201_daily_bin984.fits evtable="EVENTS" scfile=/scratch/kocevski/245520/ft2_4FGL_J1200.2+0201_daily_bin984.fits sctable="SC_DATA" expcube=/scratch/kocevski/245520/ltcube_494380801_494640001_4FGL_J1200.2+0201_daily_bin984.fits outfile=/scratch/kocevski/245520/expmap_494380801_494640001_4FGL_J1200.2+0201_daily_bin984.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/245520/ltcube_494380801_494640001_4FGL_J1200.2+0201_daily_bin984.fits
.....................!
real 191.12
user 185.25
sys 4.36

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/245520/ft1_filtered_4FGL_J1200.2+0201_daily_bin984.fits scfile=/scratch/kocevski/245520/ft2_4FGL_J1200.2+0201_daily_bin984.fits outfile=/scratch/kocevski/245520/cmap_494380801_494640001_4FGL_J1200.2+0201_daily_bin984.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/245520/ft1_filtered_4FGL_J1200.2+0201_daily_bin984.fits scfile=/scratch/kocevski/245520/ft2_4FGL_J1200.2+0201_daily_bin984.fits outfile=/scratch/kocevski/245520/cmap_HighResolution_494380801_494640001_4FGL_J1200.2+0201_daily_bin984.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.54
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/245520/ft1_filtered_4FGL_J1200.2+0201_daily_bin984.fits', '/scratch/kocevski/245520/ft2_4FGL_J1200.2+0201_daily_bin984.fits', expMap='/scratch/kocevski/245520/expmap_494380801_494640001_4FGL_J1200.2+0201_daily_bin984.fits', expCube='/scratch/kocevski/245520/ltcube_494380801_494640001_4FGL_J1200.2+0201_daily_bin984.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/245520/Model_4FGL_J1200.2+0201_daily_bin984.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/245520/ft1_filtered_4FGL_J1200.2+0201_daily_bin984.fits
Spacecraft file(s): /scratch/kocevski/245520/ft2_4FGL_J1200.2+0201_daily_bin984.fits
Exposure map: /scratch/kocevski/245520/expmap_494380801_494640001_4FGL_J1200.2+0201_daily_bin984.fits
Exposure cube: /scratch/kocevski/245520/ltcube_494380801_494640001_4FGL_J1200.2+0201_daily_bin984.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/245520/Model_4FGL_J1200.2+0201_daily_bin984.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) = 7234.90869285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2102       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11102E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.6449       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.517       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11549E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .34096       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.633       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1411       1.0000         .10000E-03   10000.    
    21 'norm      '    .92796       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    14.951       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.3020       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.4189       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.271       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2420       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3535       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=   7234.869     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     3547 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2102        2.5903        .44672E-07   -.35992E-04
   2  norm          .10000E-03    6.2247        .56723E-08** at limit **
   3  Prefactor     .10000E-03    1.5709        .12056E-06** at limit **
   4  Prefactor     .10000E-03    9.1535        .80279E-07** at limit **
   5  norm          3.6455        4.0941        .72431E-07   -.96743E-04
   6  Prefactor     .10000E-03    1.1116        .19720E-08** at limit **
   7  Prefactor     .10000E-03    11.475        .31947E-06** at limit **
   8  Prefactor     .10000E-03    36.565        .30279E-05** at limit **
   9  Prefactor     .10000E-03    4.4518        .75436E-08** at limit **
  10  Prefactor     .10000E-03    10.480        .59285E-06** at limit **
  11  Prefactor     12.517        10.680        .34715E-07   -.46636E-04
  12  Prefactor     .10000E-03    40.195       -.14750E-05** at limit **
  13  Prefactor     .28177        9.0722        .18779E-05   -.55451E-03
  14  Prefactor     .10000E-03    322.64       -.27125E-05** at limit **
  15  Prefactor     .10000E-03    13.837        .86195E-06** at limit **
  16  Prefactor     .10000E-03    11.459        .32832E-06** at limit **
  17  Prefactor     .10000E-03    26.870       -.23579E-05** at limit **
  18  Prefactor     10.631        19.013       -.48916E-06   -.28213E-04
  19  Prefactor     .10000E-03    10.095       -.89144E-06** at limit **
  20  norm          1.1407        3.0617        .73216E-06   -.16594E-03
  21  norm          .92501        3.6259        .24377E-05   -.11172E-03
  22  Prefactor     .10000E-03    12.515       -.72852E-06** at limit **
  23  norm          14.982        43.212       -.35598E-05   -.34260E-04
  24  Prefactor     .10000E-03    40.926       -.24050E-05** at limit **
  25  norm          1.3024        .67295       -.12297E-06   -.12712E-02
  26  Prefactor     .10000E-03    12.269       -.78023E-06** at limit **
  27  norm          4.4190        1.8851       -.47271E-08   -.22148E-03
  28  Prefactor     17.270        12.718        .59033E-07   -.22624E-04
  29  Prefactor     .10000E-03    29.369        .23411E-05** at limit **
  30  Normalizat    1.2420        .22312       -.93209E-06   -.23623E-03
  31  Prefactor     1.3536        .17898       -.21611E-06   -.27803E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.21016
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.64546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.517
  Prefactor  = 0.0001
  Prefactor  = 0.281766
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.6309
  Prefactor  = 0.0001
  norm       = 1.14074
  norm       = 0.925007
  Prefactor  = 0.0001
  norm       = 14.9822
  Prefactor  = 0.000100002
  norm       = 1.30239
  Prefactor  = 0.0001
  norm       = 4.41896
  Prefactor  = 17.27
  Prefactor  = 0.000100001
  Normalizat = 1.242
  Prefactor  = 1.35359
 **********
 **   18 **HESSE 
 **********

 FCN=   7234.869     FROM HESSE     STATUS=OK           618 CALLS     4165 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2102        2.5844        .14435E-03   -1.5411    
   2  norm          .10000E-03    6.2255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2634        .20551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.1672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.6455        4.0898        .17713E-03   -1.5326    
   6  Prefactor     .10000E-03    1.1180        .87545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.4600        .17526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.517        10.700        .11322E-03   -1.5000    
  12  Prefactor     .10000E-03    40.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .28177        128.95        .45728E-02   -1.5602    
  14  Prefactor     .10000E-03    324.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.631        18.986        .12287E-03   -1.5056    
  19  Prefactor     .10000E-03    10.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1407        3.0657        .23039E-03   -1.5494    
  21  norm          .92501        3.6963        .26179E-03   -1.5516    
  22  Prefactor     .10000E-03    12.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.982        43.048        .10358E-03   -1.4934    
  24  Prefactor     .10000E-03    41.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.3024        .66292        .44556E-04   -1.5480    
  26  Prefactor     .10000E-03    12.647        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.4190        1.8806        .72887E-04   -1.5288    
  28  Prefactor     17.270        12.716        .96375E-04   -1.4877    
  29  Prefactor     .10000E-03    29.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2420        .26439        .31824E-03   -.85315    
  31  Prefactor     1.3536        .21381        .25050E-03   -.81727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40647e-08
Minuit parameter uncertainties:
  1  2.58455
  2  6.48355e-07
  3  1.18779e-05
  4  8.409e-06
  5  4.09008
  6  4.48834e-07
  7  3.57288e-05
  8  0.000605149
  9  2.58138e-06
  10  5.87487e-05
  11  10.7014
  12  0.000225756
  13  12.0794
  14  0.00122834
  15  9.68312e-05
  16  3.65769e-05
  17  0.000383033
  18  18.9965
  19  8.91809e-05
  20  3.06614
  21  3.69721
  22  8.2521e-05
  23  43.137
  24  0.000504058
  25  0.662924
  26  5.66687e-05
  27  1.88062
  28  12.7178
  29  0.000420625
  30  0.264672
  31  0.213947
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.252e+01  1.070e+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.354e+00  2.139e-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.242e+00  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.34
Ra Dec: 180.055 2.017
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 4.71e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 2.17e-05

TS (Fixed Index): 2.34
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/245520/likelihoodResults_494380801_494640001_4FGL_J1200.2+0201_daily_bin984.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) = 7234.70870036
delta logL = 0.16064539758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7234.69283412
delta logL = 0.176511638623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1231       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6499       1.0000          .0000       10.000    
     3 'Normalizat'    1.1901       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3802       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7234.693     FROM MIGRAD    STATUS=FAILED       105 CALLS      300 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0947        158.10        .75150E-03    .32993E-03
   2  Index         2.6518        6.3147        .55683E-02    .84463E-03
   3  Normalizat    1.1899        .38128        .32412E-03   -.24553E-05
   4  Prefactor     1.3801        .26995        .24849E-03   -.27908E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7234.693     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      392 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0947        158.10        .27568E-03    .32993E-03
   2  Index         2.6518        6.3147        .12189E-02    .84463E-03
   3  Normalizat    1.1899        .38128        .35069E-03   -.24553E-05
   4  Prefactor     1.3801        .26995        .22832E-03   -.27908E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7234.693     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      421 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0947        16.367        .15030E-03    .12950E-04
   2  Index         2.6518        1.2527        .11137E-02    .33521E-04
   3  Normalizat    1.1899        .27770        .12965E-04   -.24553E-05
   4  Prefactor     1.3801        .21903        .99396E-05   -.27451E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.09475
  Index      = 2.65182
  Normalizat = 1.18986
  Prefactor  = 1.38012
 **********
 **   18 **HESSE 
 **********

 FCN=   7234.693     FROM HESSE     STATUS=OK            27 CALLS      448 TOTAL
                     EDM=   .13E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0947        14.308        .30060E-04   -1.5175    
   2  Index         2.6518        1.0979        .22273E-03   -.48888    
   3  Normalizat    1.1899        .27395        .25930E-05   -.86917    
   4  Prefactor     1.3801        .21677        .19879E-05   -.80955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31655e-14
Minuit parameter uncertainties:
  1  14.3148
  2  1.10955
  3  0.274284
  4  0.216917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/245520': 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) = 7234.69282815
delta logL = 0.176517613116

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  7.095e+00  1.431e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.652e+00  1.110e+00  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.380e+00  2.169e-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.190e+00  2.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 180.055 2.017
Photon Index (Free Index): 2.65 +/- 1.11
Photon Flux (Free Index): 8.48e-08 +/- 7.98e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.67e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/245520/cmap_HighResolution_494380801_494640001_4FGL_J1200.2+0201_daily_bin984.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.71e-08', energy_flux2='2.12e-05', photon_flux_error='4.03e-08', dlogl='1.77e-01', energy_flux='2.53e-05', photon_flux2='8.48e-08', job_status='DONE', time_completed='2021-09-04 20:11:53.834876', photon_index_error2='1.11', photon_index2='2.65', ts='2.34', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.67e-05', EG='1.24', time_epoch_completed='1630811513.83', return_code='0', job_id='245520', GAL2='1.38', EG2='1.19', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='7.98e-08', ts2='2.75', photon_index='2.11' WHERE bin_id='984' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:11:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 245520: <4FGL_J1200.2+0201_daily_bin984> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin984> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 19:55:29 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:55:30 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:55:30 2021
Terminated at Sat Sep  4 20:11:54 2021
Results reported at Sat Sep  4 20:11:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin984 180.055 2.0172 494380801 494640001 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 :                                   961.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            985 sec.

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

