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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin592
RA = 180.055, Dec = 2.0172
tmin = 392774401, tmax = 393033601
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='242405', job_status='RUN', time_executed='2021-09-04 19:45:33.770714', time_epoch_executed='1630809933.77' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242405/ft1_4FGL_J1200.2+0201_daily_bin592.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242405/ft2_4FGL_J1200.2+0201_daily_bin592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242405/ft1_4FGL_J1200.2+0201_daily_bin592.fits outfile=/scratch/kocevski/242405/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin592.fits ra=180.055 dec=2.0172 rad=12.0 tmin=392774401.0 tmax=393033601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.12
user 4.90
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242405/ft1_filtered_4FGL_J1200.2+0201_daily_bin592.fits" evtable="EVENTS" scfile=/scratch/kocevski/242405/ft2_4FGL_J1200.2+0201_daily_bin592.fits sctable="SC_DATA" outfile=/scratch/kocevski/242405/ltcube_392774401_393033601_4FGL_J1200.2+0201_daily_bin592.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/242405/ft2_4FGL_J1200.2+0201_daily_bin592.fits
.....................!
real 12.09
user 11.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242405/ft1_filtered_4FGL_J1200.2+0201_daily_bin592.fits evtable="EVENTS" scfile=/scratch/kocevski/242405/ft2_4FGL_J1200.2+0201_daily_bin592.fits sctable="SC_DATA" expcube=/scratch/kocevski/242405/ltcube_392774401_393033601_4FGL_J1200.2+0201_daily_bin592.fits outfile=/scratch/kocevski/242405/expmap_392774401_393033601_4FGL_J1200.2+0201_daily_bin592.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/242405/ltcube_392774401_393033601_4FGL_J1200.2+0201_daily_bin592.fits
.....................!
real 190.68
user 185.45
sys 4.68

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/242405/ft1_filtered_4FGL_J1200.2+0201_daily_bin592.fits scfile=/scratch/kocevski/242405/ft2_4FGL_J1200.2+0201_daily_bin592.fits outfile=/scratch/kocevski/242405/cmap_392774401_393033601_4FGL_J1200.2+0201_daily_bin592.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242405/ft1_filtered_4FGL_J1200.2+0201_daily_bin592.fits scfile=/scratch/kocevski/242405/ft2_4FGL_J1200.2+0201_daily_bin592.fits outfile=/scratch/kocevski/242405/cmap_HighResolution_392774401_393033601_4FGL_J1200.2+0201_daily_bin592.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6527       1.0000         .10000E-03   10000.    
     2 'norm      '    .12828E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1687       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.098       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1374       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .45836E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6305       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5972       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.218       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.215       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16495E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2902       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1196       1.0000         .10000E-03   10000.    
    21 'norm      '    9.0025       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .50254E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.2920       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.0797       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    16.324       1.0000         .10000E-03   10000.    
    29 'Prefactor '    12.208       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96039       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .96688       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=   5318.113     FROM MIGRAD    STATUS=CONVERGED    795 CALLS     4151 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6520        6.9276       -.27736E-05    .16845E-03
   2  norm          .10000E-03    43.347       -.12299E-05** at limit **
   3  Prefactor     3.1684        2.5173        .86242E-07    .43382E-04
   4  Prefactor     26.087        33.042        .19391E-05    .13268E-03
   5  norm          .10000E-03    2.0962       -.99878E-08** at limit **
   6  Prefactor     1.1365        3.0637        .26465E-06   -.11486E-03
   7  Prefactor     .10000E-03    9.7932       -.22523E-07** at limit **
   8  Prefactor     .10000E-03    29.625        .42664E-06** at limit **
   9  Prefactor     .10000E-03    6.7014        .22711E-06** at limit **
  10  Prefactor     .10001E-03    78.363        .30880E-05** at limit **
  11  Prefactor     1.6297        5.8100        .16400E-06    .32538E-04
  12  Prefactor     .10000E-03    4.3660        .44673E-07** at limit **
  13  Prefactor     4.5966        13.737        .58592E-06   -.11767E-03
  14  Prefactor     11.214        57.017       -.25970E-07   -.13657E-04
  15  Prefactor     .10000E-03    47.022       -.45325E-06** at limit **
  16  Prefactor     28.213        37.625        .40754E-07    .36390E-04
  17  Prefactor     .10000E-03    7.7234        .11932E-06** at limit **
  18  Prefactor     .10000E-03    113.38        .11593E-05** at limit **
  19  Prefactor     8.2900        7.7966        .71966E-07    .53241E-05
  20  norm          1.1196        1.3011        .36771E-07    .73412E-04
  21  norm          9.0066        5.6160       -.10181E-05    .24245E-03
  22  Prefactor     .10000E-03    296.47       -.46165E-04** at limit **
  23  norm          3.2786        284.08        .13539E-04    .18470E-04
  24  Prefactor     .10000E-03    54.210        .18073E-05** at limit **
  25  norm          1.0797        .60004       -.65829E-08    .85707E-04
  26  Prefactor     .10000E-03    3.5889        .11035E-06** at limit **
  27  norm          .10000E-03    .59235        .18391E-06** at limit **
  28  Prefactor     16.324        9.2188        .54139E-07    .41542E-05
  29  Prefactor     12.193        33.743       -.37140E-06   -.56024E-04
  30  Normalizat    .96040        .21873       -.10754E-05   -.19861E-03
  31  Prefactor     .96692        .17069       -.30537E-06   -.21498E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.652
  norm       = 0.0001
  Prefactor  = 3.1684
  Prefactor  = 26.0865
  norm       = 0.0001
  Prefactor  = 1.13649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 1.62971
  Prefactor  = 0.0001
  Prefactor  = 4.5966
  Prefactor  = 11.2136
  Prefactor  = 0.0001
  Prefactor  = 28.2134
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 8.29003
  norm       = 1.1196
  norm       = 9.00662
  Prefactor  = 0.000100003
  norm       = 3.27859
  Prefactor  = 0.000100004
  norm       = 1.07971
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.3235
  Prefactor  = 12.1925
  Normalizat = 0.960395
  Prefactor  = 0.966922
 **********
 **   18 **HESSE 
 **********

 FCN=   5318.113     FROM HESSE     STATUS=OK           626 CALLS     4777 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6520        6.9638        .12515E-02   -1.5382    
   2  norm          .10000E-03    43.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1684        2.5108        .98580E-04   -1.5352    
   4  Prefactor     26.087        33.112        .78416E-04   -1.4686    
   5  norm          .10000E-03    2.1005        .10308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1365        3.0086        .20055E-03   -1.5495    
   7  Prefactor     .10000E-03    40.432        .44423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.7394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    78.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6297        5.7678        .31589E-03   -1.5453    
  12  Prefactor     .10000E-03    4.3675        .14881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5966        13.694        .18773E-03   -1.5279    
  14  Prefactor     11.214        57.029        .11961E-03   -1.5038    
  15  Prefactor     .10000E-03    47.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.213        37.601        .75423E-04   -1.4645    
  17  Prefactor     .10000E-03    7.7366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    115.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.2900        7.7857        .13924E-03   -1.5132    
  20  norm          1.1196        1.2937        .86841E-04   -1.5496    
  21  norm          9.0066        5.6004        .95422E-04   -1.5108    
  22  Prefactor     .10000E-03    285.63        .79339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.2786        282.47        .22315E-03   -1.5346    
  24  Prefactor     .10000E-03    54.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.0797        .58970        .37709E-04   -1.5500    
  26  Prefactor     .10000E-03    3.6022        .13493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .60674        .54887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     16.324        9.2181        .99131E-04   -1.4900    
  29  Prefactor     12.193        33.745        .11465E-03   -1.5009    
  30  Normalizat    .96040        .25449        .27784E-03   -.94369    
  31  Prefactor     .96692        .19922        .22794E-03   -.93840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86374e-10
Minuit parameter uncertainties:
  1  6.9659
  2  0.000115659
  3  2.51092
  4  33.1352
  5  5.05315e-07
  6  3.00901
  7  5.20598e-05
  8  0.000153123
  9  4.09689e-05
  10  0.00148812
  11  5.76972
  12  9.64703e-06
  13  13.703
  14  50.6534
  15  0.00026518
  16  37.633
  17  1.48417e-05
  18  0.00128475
  19  7.78669
  20  1.29375
  21  5.60071
  22  0.0019155
  23  61.1633
  24  0.000943386
  25  0.589701
  26  9.3238e-06
  27  9.8243e-06
  28  9.2189
  29  33.7976
  30  0.254806
  31  0.199367
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.630e+00  5.770e+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:  9.669e-01  1.994e-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:  9.604e-01  2.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/242405/likelihoodResults_392774401_393033601_4FGL_J1200.2+0201_daily_bin592.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) = 5318.05342449
delta logL = 0.0599862689096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5318.04237753
delta logL = 0.0710332264352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99480       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7613       1.0000          .0000       10.000    
     3 'Normalizat'    .94982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97146       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=   5318.042     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      231 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99284        46.789        .13147E-01    .21849E-03
   2  Index         2.7600        2.8538        .22713       -.31887E-04
   3  Normalizat    .94999        .32269E-01    .45535E-01   -.33878E-04
   4  Prefactor     .97137        .26362E-01    .45909E-01   -.29029E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.99284
  Index      = 2.75998
  Normalizat = 0.949991
  Prefactor  = 0.97137
 **********
 **   18 **HESSE 
 **********

 FCN=   5318.042     FROM HESSE     STATUS=OK            31 CALLS      262 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99284        7.5740        .16287E-03   -1.5509    
   2  Index         2.7600        2.4722        .82347E-02   -.46453    
   3  Normalizat    .94999        .23900        .27917E-03   -.94725    
   4  Prefactor     .97137        .19573        .22745E-03   -.93690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87739e-10
Minuit parameter uncertainties:
  1  5.48512
  2  2.61953
  3  0.239267
  4  0.19587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242405': 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) = 5318.04237547
delta logL = 0.0710352926471

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  9.928e-01  5.485e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.760e+00  2.620e+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:  9.714e-01  1.959e-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:  9.500e-01  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 180.055 2.017

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/242405/cmap_HighResolution_392774401_393033601_4FGL_J1200.2+0201_daily_bin592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='7.09e-08', time_completed='2021-09-04 19:59:30.044465', job_id='242405', GAL2='0.97', fit_tolerance='1e-08', EG2='0.95', EG='0.96', time_epoch_completed='1630810770.04', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='7.10e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='592' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:59:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 242405: <4FGL_J1200.2+0201_daily_bin592> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin592> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:45:21 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:45:23 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:45:23 2021
Terminated at Sat Sep  4 19:59:32 2021
Results reported at Sat Sep  4 19:59:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin592 180.055 2.0172 392774401 393033601 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 :                                   833.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            851 sec.

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

