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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin668
RA = 180.055, Dec = 2.0172
tmin = 412473601, tmax = 412732801
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='242516', job_status='RUN', time_executed='2021-09-04 19:47:51.882818', time_epoch_executed='1630810071.88' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242516

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242516/ft1_4FGL_J1200.2+0201_daily_bin668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242516/ft2_4FGL_J1200.2+0201_daily_bin668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242516/ft1_4FGL_J1200.2+0201_daily_bin668.fits outfile=/scratch/kocevski/242516/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin668.fits ra=180.055 dec=2.0172 rad=12.0 tmin=412473601.0 tmax=412732801.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.46
user 3.19
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/242516/ft2_4FGL_J1200.2+0201_daily_bin668.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/242516/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin668.fits evtable="EVENTS" outfile="/scratch/kocevski/242516/ft1_filtered_4FGL_J1200.2+0201_daily_bin668.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242516/ft1_filtered_4FGL_J1200.2+0201_daily_bin668.fits evtable="EVENTS" scfile=/scratch/kocevski/242516/ft2_4FGL_J1200.2+0201_daily_bin668.fits sctable="SC_DATA" expcube=/scratch/kocevski/242516/ltcube_412473601_412732801_4FGL_J1200.2+0201_daily_bin668.fits outfile=/scratch/kocevski/242516/expmap_412473601_412732801_4FGL_J1200.2+0201_daily_bin668.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/242516/ltcube_412473601_412732801_4FGL_J1200.2+0201_daily_bin668.fits
.....................!
real 191.67
user 186.49
sys 4.69

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/242516/ft1_filtered_4FGL_J1200.2+0201_daily_bin668.fits scfile=/scratch/kocevski/242516/ft2_4FGL_J1200.2+0201_daily_bin668.fits outfile=/scratch/kocevski/242516/cmap_412473601_412732801_4FGL_J1200.2+0201_daily_bin668.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242516/ft1_filtered_4FGL_J1200.2+0201_daily_bin668.fits scfile=/scratch/kocevski/242516/ft2_4FGL_J1200.2+0201_daily_bin668.fits outfile=/scratch/kocevski/242516/cmap_HighResolution_412473601_412732801_4FGL_J1200.2+0201_daily_bin668.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2804       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11063E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.727       1.0000         .10000E-03   10000.    
    13 'Prefactor '    252.22       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11003E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19150E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    130.90       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    112.77       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.737       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .86250E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .87610       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   869.8443     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     3992 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    22.485       -.20824E-04** at limit **
   2  norm          .10026E-03    19.703        .32873E-04** at limit **
   3  Prefactor     .10000E-03    10.428       -.47372E-05** at limit **
   4  Prefactor     .10095E-03    18.614        .25716E-04** at limit **
   5  norm          .10259E-03    35.072       -.20768E-04** at limit **
   6  Prefactor     .10188E-03    39.110       -.27583E-04** at limit **
   7  Prefactor     .10059E-03    11.085       -.63958E-05** at limit **
   8  Prefactor     .10033E-03    49.942       -.43186E-04** at limit **
   9  Prefactor     3.2746        1.1101       -.11760E-05   -.45561E-04
  10  Prefactor     .70219E-02    11.848       -.42967E-04    .15088E-02
  11  Prefactor     .10003E-03    10.690       -.18078E-04** at limit **
  12  Prefactor     26.723        1.0226       -.67373E-07   -.44561E-04
  13  Prefactor     252.22        1.0382       -.11283E-06    .83017E-03
  14  Prefactor     .10143E-03    9.5270       -.27417E-04** at limit **
  15  Prefactor     .53640E-02    32.513       -.70973E-04    .24015E-02
  16  Prefactor     130.89        2.0884       -.10173E-05    .38293E-02
  17  Prefactor     .10296E-03    22.593       -.37935E-04** at limit **
  18  Prefactor     112.77        1.1279       -.30692E-06    .91922E-03
  19  Prefactor     .10003E-03    19.298        .97619E-05** at limit **
  20  norm          .10000E-03    4.7311       -.99522E-06** at limit **
  21  norm          13.736        1.0065       -.26334E-07   -.10893E-03
  22  Prefactor     .10095E-03    13.648        .24572E-04** at limit **
  23  norm          .10096E-03    18.530       -.12016E-04** at limit **
  24  Prefactor     .10319E-03    21.600        .14300E-04** at limit **
  25  norm          .10000E-03    .86007        .16713E-06** at limit **
  26  Prefactor     .10064E-03    12.688        .22340E-04** at limit **
  27  norm          .10005E-03    10.610        .27709E-04** at limit **
  28  Prefactor     .10082E-03    19.047       -.15221E-04** at limit **
  29  Prefactor     .10004E-03    20.143        .35100E-04** at limit **
  30  Normalizat    .86104E-01    .61215       -.19232E-05    .13429E-04
  31  Prefactor     .87619        .37298        .23028E-06   -.81465E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100202
  norm       = 0.000100261
  Prefactor  = 0.000100004
  Prefactor  = 0.000100947
  norm       = 0.000102592
  Prefactor  = 0.000101882
  Prefactor  = 0.000100589
  Prefactor  = 0.00010033
  Prefactor  = 3.27457
  Prefactor  = 0.00702195
  Prefactor  = 0.000100025
  Prefactor  = 26.7227
  Prefactor  = 252.217
  Prefactor  = 0.000101432
  Prefactor  = 0.00536403
  Prefactor  = 130.891
  Prefactor  = 0.000102963
  Prefactor  = 112.768
  Prefactor  = 0.000100025
  norm       = 0.000100001
  norm       = 13.7359
  Prefactor  = 0.000100951
  norm       = 0.00010096
  Prefactor  = 0.00010319
  norm       = 0.0001
  Prefactor  = 0.000100638
  norm       = 0.000100047
  Prefactor  = 0.000100816
  Prefactor  = 0.000100044
  Normalizat = 0.0861039
  Prefactor  = 0.876186
 **********
 **   18 **HESSE 
 **********

 FCN=   869.8443     FROM HESSE     STATUS=NOT POSDEF   668 CALLS     4660 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    21.834        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10026E-03    81.297        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.668        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10095E-03    74.971        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10259E-03    138.54        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10188E-03    143.43        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10059E-03    33.831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10033E-03    155.24        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2746        72.834        .55891E-02   -1.5346    
  10  Prefactor     .70219E-02    6202.6        .90712E-02   -1.5691    
  11  Prefactor     .10003E-03    10.247        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.723        45.011        .19372E-02   -1.4674    
  13  Prefactor     252.22        307.47        .63776E-03   -1.2518    
  14  Prefactor     .10143E-03    253.05        .10349E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .53640E-02    1376.0        .90712E-02   -1.5693    
  16  Prefactor     130.89        219.61        .87983E-03   -1.3415    
  17  Prefactor     .10296E-03    38.330        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     112.77        94.854        .94704E-03   -1.3580    
  19  Prefactor     .10003E-03    18.475        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.5182        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.736        16.974        .27018E-02   -1.4967    
  22  Prefactor     .10095E-03    29.599        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10096E-03    60.375        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10319E-03    113.67        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .81960        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10064E-03    29.993        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10005E-03    5.3496        .25212E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10082E-03    59.460        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10004E-03    89.476        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .86104E-01    9.8467        .14266       -1.3960    
  31  Prefactor     .87619        1.8663        .44700E-01   -.96978    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.91879e-06
Minuit parameter uncertainties:
  1  0.00419796
  2  0.00922508
  3  0.000400762
  4  0.0168749
  5  0.03799
  6  0.0329343
  7  0.00892932
  8  0.0143529
  9  30.9292
  10  8.54312
  11  0.00102136
  12  45.0686
  13  309.48
  14  0.0382295
  15  5.51448
  16  220.997
  17  0.0213274
  18  94.9815
  19  0.00136532
  20  0.000153596
  21  16.9795
  22  0.0106188
  23  0.0152415
  24  0.0381582
  25  8.02566e-06
  26  0.00875484
  27  0.000999849
  28  0.013943
  29  0.00396593
  30  2.62759
  31  2.03837
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 869.844274211

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.021e-03  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:  8.762e-01  2.038e+00  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:  8.610e-02  2.628e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/242516/likelihoodResults_412473601_412732801_4FGL_J1200.2+0201_daily_bin668.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): 102
logL (Free Index) = 869.844678568
delta logL = -0.000404356867193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 869.844274297
delta logL = -8.54987547427e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0897       1.0000          .0000       10.000    
     3 'Normalizat'    .86340E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87599       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=   869.8443     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      247 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10223E-03    224.58        .96027E-03** at limit **
   2  Index         2.0080        5.9657        .50000        .13528E-04
   3  Normalizat    .86102E-01    .38257E-01    .60746E-02    .26224E-04
   4  Prefactor     .87619        .32666E-01    .16573E-03    .69185E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102228
  Index      = 2.00795
  Normalizat = 0.086102
  Prefactor  = 0.876188
 **********
 **   18 **HESSE 
 **********

 FCN=   869.8443     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10223E-03    798.25        .19205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0080        5.2791        .50000       -.64151    
   3  Normalizat    .86102E-01    .77760E-01    .24298E-03   -1.3960    
   4  Prefactor     .87619        .66452E-01    .33146E-04   -.96978    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.77601e-08
Minuit parameter uncertainties:
  1  0.0855068
  2  1108.08
  3  0.077864
  4  0.0664583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242516': 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): 102
logL (Free Index) = 869.844273928
delta logL = 2.83078634311e-07

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.022e-04  8.551e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.008e+00  1.108e+03  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:  8.762e-01  6.646e-02  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:  8.610e-02  7.786e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/242516/cmap_HighResolution_412473601_412732801_4FGL_J1200.2+0201_daily_bin668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-02', job_status='DONE', photon_flux_upper_limit='2.25e-07', time_completed='2021-09-04 19:54:35.628993', job_id='242516', GAL2='0.88', fit_tolerance='1e-08', EG2='0.09', EG='0.09', time_epoch_completed='1630810475.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='102', GAL='0.88', dlogl='2.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='668' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:54:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 242516: <4FGL_J1200.2+0201_daily_bin668> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin668> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:45:30 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:45:31 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:31 2021
Terminated at Sat Sep  4 19:54:36 2021
Results reported at Sat Sep  4 19:54:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin668 180.055 2.0172 412473601 412732801 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 :                                   402.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   545 sec.
    Turnaround time :                            546 sec.

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

