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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin570
RA = 180.055, Dec = 2.0172
tmin = 387072001, tmax = 387331201
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='241374', job_status='RUN', time_executed='2021-09-04 19:43:17.813531', time_epoch_executed='1630809797.81' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241374

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241374/ft1_4FGL_J1200.2+0201_daily_bin570.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241374/ft2_4FGL_J1200.2+0201_daily_bin570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241374/ft1_4FGL_J1200.2+0201_daily_bin570.fits outfile=/scratch/kocevski/241374/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin570.fits ra=180.055 dec=2.0172 rad=12.0 tmin=387072001.0 tmax=387331201.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.36
user 3.14
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/241374/ft2_4FGL_J1200.2+0201_daily_bin570.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/241374/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin570.fits evtable="EVENTS" outfile="/scratch/kocevski/241374/ft1_filtered_4FGL_J1200.2+0201_daily_bin570.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/241374/ft1_filtered_4FGL_J1200.2+0201_daily_bin570.fits" evtable="EVENTS" scfile=/scratch/kocevski/241374/ft2_4FGL_J1200.2+0201_daily_bin570.fits sctable="SC_DATA" outfile=/scratch/kocevski/241374/ltcube_387072001_387331201_4FGL_J1200.2+0201_daily_bin570.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/241374/ft2_4FGL_J1200.2+0201_daily_bin570.fits
.....................!
real 13.07
user 11.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241374/ft1_filtered_4FGL_J1200.2+0201_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/241374/ft2_4FGL_J1200.2+0201_daily_bin570.fits sctable="SC_DATA" expcube=/scratch/kocevski/241374/ltcube_387072001_387331201_4FGL_J1200.2+0201_daily_bin570.fits outfile=/scratch/kocevski/241374/expmap_387072001_387331201_4FGL_J1200.2+0201_daily_bin570.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/241374/ltcube_387072001_387331201_4FGL_J1200.2+0201_daily_bin570.fits
.....................!
real 190.17
user 184.95
sys 4.84

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/241374/ft1_filtered_4FGL_J1200.2+0201_daily_bin570.fits scfile=/scratch/kocevski/241374/ft2_4FGL_J1200.2+0201_daily_bin570.fits outfile=/scratch/kocevski/241374/cmap_387072001_387331201_4FGL_J1200.2+0201_daily_bin570.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241374/ft1_filtered_4FGL_J1200.2+0201_daily_bin570.fits scfile=/scratch/kocevski/241374/ft2_4FGL_J1200.2+0201_daily_bin570.fits outfile=/scratch/kocevski/241374/cmap_HighResolution_387072001_387331201_4FGL_J1200.2+0201_daily_bin570.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.60
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69721       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3478       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3323       1.0000         .10000E-03   10000.    
     5 'norm      '    7.3547       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.058       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6164       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21592E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29640       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.129       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    11.043       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .88378       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.2031       1.0000         .10000E-03   10000.    
    27 'norm      '    7.1270       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.2028       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.4730       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4155       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .67328       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=   5369.773     FROM MIGRAD    STATUS=CONVERGED    842 CALLS     4159 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70004        4.8749        .93849E-06   -.13112E-03
   2  norm          .10000E-03    16.035       -.11360E-06** at limit **
   3  Prefactor     1.3475        1.7551        .87805E-07    .24082E-04
   4  Prefactor     9.3409        21.590       -.13318E-05   -.11984E-03
   5  norm          7.3510        6.7408       -.39881E-07   -.24888E-03
   6  Prefactor     .10000E-03    1.7070        .32826E-07** at limit **
   7  Prefactor     .10000E-03    9.7546        .38634E-07** at limit **
   8  Prefactor     54.982        139.43       -.34584E-05   -.65449E-04
   9  Prefactor     .10000E-03    15.103       -.12707E-05** at limit **
  10  Prefactor     .10000E-03    20.188       -.78295E-07** at limit **
  11  Prefactor     4.6173        5.5446       -.53101E-07   -.13391E-04
  12  Prefactor     .10000E-03    4.8122       -.25039E-07** at limit **
  13  Prefactor     .10037E-03    17.596        .32714E-05** at limit **
  14  Prefactor     .10000E-03    46.585        .57068E-06** at limit **
  15  Prefactor     .10000E-03    15.932        .36882E-07** at limit **
  16  Prefactor     .10000E-03    34.173       -.11920E-05** at limit **
  17  Prefactor     .17689        26.982       -.31032E-05    .24376E-03
  18  Prefactor     .10000E-03    15.183        .44273E-07** at limit **
  19  Prefactor     17.136        10.430       -.17066E-06    .67402E-05
  20  norm          .10000E-03    .80122        .13373E-07** at limit **
  21  norm          11.040        5.0527       -.96075E-07    .39370E-04
  22  Prefactor     .10000E-03    23.651        .31095E-06** at limit **
  23  norm          .10000E-03    14.791       -.10721E-06** at limit **
  24  Prefactor     .10000E-03    68.301       -.82886E-06** at limit **
  25  norm          .88381        .66565        .15433E-07    .19666E-03
  26  Prefactor     7.2076        9.3017        .30251E-05    .47866E-03
  27  norm          7.1265        2.2804       -.92285E-08   -.32673E-05
  28  Prefactor     9.2017        8.7402       -.38030E-06   -.17560E-04
  29  Prefactor     4.4129        44.398        .14356E-05    .57384E-04
  30  Normalizat    1.4166        .24013        .28618E-05   -.32078E-03
  31  Prefactor     .67257        .17969       -.40941E-05   -.18187E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.700042
  norm       = 0.0001
  Prefactor  = 1.34748
  Prefactor  = 9.34088
  norm       = 7.35103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.9816
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.61732
  Prefactor  = 0.0001
  Prefactor  = 0.000100373
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.176885
  Prefactor  = 0.0001
  Prefactor  = 17.136
  norm       = 0.0001
  norm       = 11.0404
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.883811
  Prefactor  = 7.20762
  norm       = 7.12654
  Prefactor  = 9.20173
  Prefactor  = 4.41294
  Normalizat = 1.41656
  Prefactor  = 0.672566
 **********
 **   18 **HESSE 
 **********

 FCN=   5369.773     FROM HESSE     STATUS=OK           630 CALLS     4789 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70004        8.7708        .28466E-02   -1.5541    
   2  norm          .10000E-03    16.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3475        1.7307        .10707E-03   -1.5476    
   4  Prefactor     9.3409        21.194        .13119E-03   -1.5097    
   5  norm          7.3510        6.7105        .14789E-03   -1.5166    
   6  Prefactor     .10000E-03    1.7162        .93417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.7603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     54.982        141.03        .54059E-04   -1.4224    
   9  Prefactor     .10000E-03    15.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6173        5.5414        .18353E-03   -1.5278    
  12  Prefactor     .10000E-03    4.8144        .15699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10037E-03    95.236        .51969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    46.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .17689        25.870        .94685E-01   -1.5624    
  18  Prefactor     .10000E-03    15.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.136        10.430        .96771E-04   -1.4880    
  20  norm          .10000E-03    .80318        .64012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.040        5.0210        .97691E-04   -1.5043    
  22  Prefactor     .10000E-03    23.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    14.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    68.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .88381        .64218        .45460E-04   -1.5520    
  26  Prefactor     7.2076        9.5118        .74728E-03   -1.5171    
  27  norm          7.1265        2.2762        .59450E-04   -1.5174    
  28  Prefactor     9.2017        8.7388        .13211E-03   -1.5101    
  29  Prefactor     4.4129        44.459        .19038E-03   -1.5288    
  30  Normalizat    1.4166        .26661        .25211E-03   -.80151    
  31  Prefactor     .67257        .19771        .27736E-03   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32586e-08
Minuit parameter uncertainties:
  1  4.95631
  2  1.83674e-05
  3  1.73077
  4  21.2111
  5  6.71118
  6  5.74544e-07
  7  7.12006e-06
  8  141.9
  9  7.48952e-05
  10  5.76692e-05
  11  5.54202
  12  1.55879e-06
  13  0.0119465
  14  0.000451414
  15  4.38773e-07
  16  0.000293708
  17  4.27904
  18  3.43683e-05
  19  10.4309
  20  9.23474e-07
  21  5.0212
  22  0.000118173
  23  4.13849e-05
  24  0.000705946
  25  0.642183
  26  9.51381
  27  2.27619
  28  8.74003
  29  28.0406
  30  0.266873
  31  0.197914
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  4.617e+00  5.542e+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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  6.726e-01  1.979e-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.417e+00  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.73
Ra Dec: 180.055 2.017
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 1.74e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 9.35e-06 +/- 1.12e-05

TS (Fixed Index): 1.73
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 8.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/241374/likelihoodResults_387072001_387331201_4FGL_J1200.2+0201_daily_bin570.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) = 5369.59630888
delta logL = 0.176629759067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5369.59592107
delta logL = 0.177017570062

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5369.596     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      303 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0975        8.4628        .15058E-03   -.10642E-02
   2  Index         1.6920        .64905        .10133E-01   -.24934E-03
   3  Normalizat    1.4231        .24276        .25160E-03    .95992E-04
   4  Prefactor     .66841        .19233        .27813E-03    .10906E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.09749
  Index      = 1.69196
  Normalizat = 1.42311
  Prefactor  = 0.668407
 **********
 **   18 **HESSE 
 **********

 FCN=   5369.596     FROM HESSE     STATUS=OK            23 CALLS      326 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0975        8.3775        .30116E-04   -1.5175    
   2  Index         1.6920        .64276        .40530E-03   -.72296    
   3  Normalizat    1.4231        .24293        .50320E-04   -.79963    
   4  Prefactor     .66841        .19247        .11125E-04   -1.0478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39016e-09
Minuit parameter uncertainties:
  1  8.37885
  2  0.645952
  3  0.243128
  4  0.192664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241374': 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) = 5369.59592104
delta logL = 0.177017604434

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  7.097e+00  8.379e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.692e+00  6.460e-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:  6.684e-01  1.927e-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.423e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 180.055 2.017
Photon Index (Free Index): 1.69 +/- 0.65
Photon Flux (Free Index): 1.29e-08 +/- 1.71e-08
Energy Flux (Free Index): 2.16e-05 +/- 3.90e-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/241374/cmap_HighResolution_387072001_387331201_4FGL_J1200.2+0201_daily_bin570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', comment='SUCCESS', photon_flux='1.74e-08', energy_flux2='2.16e-05', photon_flux_error='2.08e-08', dlogl='1.77e-01', energy_flux='9.35e-06', photon_flux2='1.29e-08', job_status='DONE', time_completed='2021-09-04 19:57:14.806967', photon_index_error2='0.65', photon_index2='1.69', ts='1.73', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='8.51e-08', energy_flux_error2='3.90e-05', EG='1.42', time_epoch_completed='1630810634.81', return_code='0', job_id='241374', GAL2='0.67', EG2='1.42', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='1.71e-08', ts2='2.09', photon_index='2.11' WHERE bin_id='570' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:57:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 241374: <4FGL_J1200.2+0201_daily_bin570> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin570> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 19:40:56 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:40:58 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:58 2021
Terminated at Sat Sep  4 19:57:15 2021
Results reported at Sat Sep  4 19:57:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin570 180.055 2.0172 387072001 387331201 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 :                                   832.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

