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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin995
RA = 180.055, Dec = 2.0172
tmin = 497232001, tmax = 497491201
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='245538', job_status='RUN', time_executed='2021-09-04 19:58:49.604484', time_epoch_executed='1630810729.6' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='995'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/245538

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/245538/ft1_4FGL_J1200.2+0201_daily_bin995.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/245538/ft2_4FGL_J1200.2+0201_daily_bin995.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/245538/ft1_4FGL_J1200.2+0201_daily_bin995.fits outfile=/scratch/kocevski/245538/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin995.fits ra=180.055 dec=2.0172 rad=12.0 tmin=497232001.0 tmax=497491201.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 6.84
user 6.45
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/245538/ft1_filtered_4FGL_J1200.2+0201_daily_bin995.fits" evtable="EVENTS" scfile=/scratch/kocevski/245538/ft2_4FGL_J1200.2+0201_daily_bin995.fits sctable="SC_DATA" outfile=/scratch/kocevski/245538/ltcube_497232001_497491201_4FGL_J1200.2+0201_daily_bin995.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/245538/ft2_4FGL_J1200.2+0201_daily_bin995.fits
.....................!
real 12.43
user 11.88
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/245538/ft1_filtered_4FGL_J1200.2+0201_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/245538/ft2_4FGL_J1200.2+0201_daily_bin995.fits sctable="SC_DATA" expcube=/scratch/kocevski/245538/ltcube_497232001_497491201_4FGL_J1200.2+0201_daily_bin995.fits outfile=/scratch/kocevski/245538/expmap_497232001_497491201_4FGL_J1200.2+0201_daily_bin995.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/245538/ltcube_497232001_497491201_4FGL_J1200.2+0201_daily_bin995.fits
.....................!
real 192.84
user 186.18
sys 5.30

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/245538/ft1_filtered_4FGL_J1200.2+0201_daily_bin995.fits scfile=/scratch/kocevski/245538/ft2_4FGL_J1200.2+0201_daily_bin995.fits outfile=/scratch/kocevski/245538/cmap_497232001_497491201_4FGL_J1200.2+0201_daily_bin995.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.61
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/245538/ft1_filtered_4FGL_J1200.2+0201_daily_bin995.fits scfile=/scratch/kocevski/245538/ft2_4FGL_J1200.2+0201_daily_bin995.fits outfile=/scratch/kocevski/245538/cmap_HighResolution_497232001_497491201_4FGL_J1200.2+0201_daily_bin995.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.63
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3014       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.6432       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .74610       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.254       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.619       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10233E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.5697       1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.858       1.0000         .10000E-03   10000.    
    27 'norm      '    .59937       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .55646       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.5673       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=   3024.287     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     4029 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8926       -.19237E-07** at limit **
   2  norm          .10000E-03    10.601        .83420E-07** at limit **
   3  Prefactor     2.3014        3.2679        .13875E-06   -.88410E-05
   4  Prefactor     .10000E-03    12.656       -.15462E-06** at limit **
   5  norm          3.6435        6.0116        .19903E-05   -.99699E-04
   6  Prefactor     .74604        5.5291        .98329E-06   -.57053E-04
   7  Prefactor     .10000E-03    14.444        .99022E-07** at limit **
   8  Prefactor     .10000E-03    48.689        .32252E-06** at limit **
   9  Prefactor     .10000E-03    8.1309       -.82630E-07** at limit **
  10  Prefactor     .10000E-03    26.530       -.30856E-06** at limit **
  11  Prefactor     .10000E-03    8.2493        .16189E-06** at limit **
  12  Prefactor     .10000E-03    14.070        .57939E-07** at limit **
  13  Prefactor     .10000E-03    22.648       -.19220E-06** at limit **
  14  Prefactor     .10000E-03    45.169        .26381E-06** at limit **
  15  Prefactor     .10000E-03    44.855        .21781E-06** at limit **
  16  Prefactor     41.259        45.692        .26448E-06    .11889E-04
  17  Prefactor     .10000E-03    14.085        .48969E-07** at limit **
  18  Prefactor     45.629        41.262        .15527E-06    .24825E-04
  19  Prefactor     .10000E-03    29.667       -.56939E-06** at limit **
  20  norm          .10000E-03    1.7580       -.29806E-07** at limit **
  21  norm          .10000E-03    5.7936        .48812E-06** at limit **
  22  Prefactor     .10000E-03    19.258        .25048E-06** at limit **
  23  norm          .10000E-03    58.054        .24476E-06** at limit **
  24  Prefactor     .10000E-03    74.670       -.93531E-06** at limit **
  25  norm          3.5696        1.0549       -.25994E-07   -.19189E-03
  26  Prefactor     17.857        17.744        .45403E-06   -.12029E-04
  27  norm          .59951        1.8341        .45135E-06    .32150E-05
  28  Prefactor     .10000E-03    12.585       -.19445E-06** at limit **
  29  Prefactor     .10000E-03    56.006        .17493E-06** at limit **
  30  Normalizat    .55670        .29929       -.59039E-06   -.27033E-04
  31  Prefactor     1.5671        .26207       -.47888E-06   -.16764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.3014
  Prefactor  = 0.0001
  norm       = 3.64345
  Prefactor  = 0.746035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.2592
  Prefactor  = 0.0001
  Prefactor  = 45.6293
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.5696
  Prefactor  = 17.8567
  norm       = 0.599509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.556699
  Prefactor  = 1.56708
 **********
 **   18 **HESSE 
 **********

 FCN=   3024.287     FROM HESSE     STATUS=OK           606 CALLS     4635 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9058        .91338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.601        .17491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3014        3.2485        .11396E-03   -1.5405    
   4  Prefactor     .10000E-03    12.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.6435        5.9849        .83677E-03   -1.5326    
   6  Prefactor     .74604        5.5140        .24685E-03   -1.5535    
   7  Prefactor     .10000E-03    14.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    48.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.1810        .15314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.2761        .15426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    45.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    44.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     41.259        45.705        .62411E-04   -1.4422    
  17  Prefactor     .10000E-03    14.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     45.629        41.174        .59362E-04   -1.4356    
  19  Prefactor     .10000E-03    30.370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.7691        .71186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.9526        .25742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    58.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    74.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.5696        1.0506        .21390E-04   -1.5330    
  26  Prefactor     17.857        17.781        .47389E-03   -1.4863    
  27  norm          .59951        1.8026        .12468E-03   -1.5553    
  28  Prefactor     .10000E-03    12.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    56.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .55670        .32998        .39319E-03   -1.0986    
  31  Prefactor     1.5671        .29175        .21735E-03   -.75678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04554e-10
Minuit parameter uncertainties:
  1  3.59734e-07
  2  2.81114e-05
  3  3.24877
  4  4.77491e-05
  5  5.98585
  6  4.05668
  7  3.63398e-05
  8  0.000209934
  9  1.6768e-05
  10  0.000142544
  11  2.17952e-05
  12  2.22407e-05
  13  3.3305e-05
  14  0.000176869
  15  0.000163784
  16  45.7434
  17  1.86094e-05
  18  41.1992
  19  0.000106855
  20  1.32886e-06
  21  2.44153e-06
  22  0.000100009
  23  9.60029e-05
  24  0.000824813
  25  1.05057
  26  17.7862
  27  1.80277
  28  4.91416e-05
  29  0.000146731
  30  0.331154
  31  0.292062
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.180e-05  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.567e+00  2.921e-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:  5.567e-01  3.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/245538/likelihoodResults_497232001_497491201_4FGL_J1200.2+0201_daily_bin995.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) = 3024.28759192
delta logL = -0.000571043275613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3024.28702088
delta logL = -5.68616087548e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1086       1.0000          .0000       10.000    
     3 'Normalizat'    .55669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5671       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=   3024.287     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    374.26        .90712E-02** at limit **
   2  Index         2.1080        5.8077        .50000        .49417E-06
   3  Normalizat    .55670        .53037E-01    .88742E-01    .19142E-04
   4  Prefactor     1.5671        .46981E-01    .49171E-01    .10461E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10798
  Normalizat = 0.5567
  Prefactor  = 1.56708
 **********
 **   18 **HESSE 
 **********

 FCN=   3024.287     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1180.9        .15426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1080        5.7974        .50000       -.61677    
   3  Normalizat    .55670        .11553        .39319E-03   -1.0986    
   4  Prefactor     1.5671        .10267        .21735E-03   -.75678    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04582e-10
Minuit parameter uncertainties:
  1  6.94913e-05
  2  49.8099
  3  0.115578
  4  0.102679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/245538': 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) = 3024.28702088
delta logL = 1.9508661353e-10

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.567e+00  1.027e-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:  5.567e-01  1.156e-01  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/245538/cmap_HighResolution_497232001_497491201_4FGL_J1200.2+0201_daily_bin995.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-04 20:09:12.763852', job_id='245538', GAL2='1.57', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1630811352.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.57', dlogl='1.95e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='995' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:09:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 245538: <4FGL_J1200.2+0201_daily_bin995> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin995 180.055 2.0172 497232001 497491201 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 :                                   616.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

