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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin949
RA = 180.055, Dec = 2.0172
tmin = 485308801, tmax = 485568001
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='244186', job_status='RUN', time_executed='2021-09-04 19:53:49.612631', time_epoch_executed='1630810429.61' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244186

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244186/ft1_4FGL_J1200.2+0201_daily_bin949.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244186/ft2_4FGL_J1200.2+0201_daily_bin949.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244186/ft1_4FGL_J1200.2+0201_daily_bin949.fits outfile=/scratch/kocevski/244186/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin949.fits ra=180.055 dec=2.0172 rad=12.0 tmin=485308801.0 tmax=485568001.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.53
user 5.32
sys 0.27

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244186/ft1_filtered_4FGL_J1200.2+0201_daily_bin949.fits" evtable="EVENTS" scfile=/scratch/kocevski/244186/ft2_4FGL_J1200.2+0201_daily_bin949.fits sctable="SC_DATA" outfile=/scratch/kocevski/244186/ltcube_485308801_485568001_4FGL_J1200.2+0201_daily_bin949.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/244186/ft2_4FGL_J1200.2+0201_daily_bin949.fits
.....................!
real 11.99
user 11.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244186/ft1_filtered_4FGL_J1200.2+0201_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/244186/ft2_4FGL_J1200.2+0201_daily_bin949.fits sctable="SC_DATA" expcube=/scratch/kocevski/244186/ltcube_485308801_485568001_4FGL_J1200.2+0201_daily_bin949.fits outfile=/scratch/kocevski/244186/expmap_485308801_485568001_4FGL_J1200.2+0201_daily_bin949.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/244186/ltcube_485308801_485568001_4FGL_J1200.2+0201_daily_bin949.fits
.....................!
real 190.18
user 185.74
sys 4.07

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/244186/ft1_filtered_4FGL_J1200.2+0201_daily_bin949.fits scfile=/scratch/kocevski/244186/ft2_4FGL_J1200.2+0201_daily_bin949.fits outfile=/scratch/kocevski/244186/cmap_485308801_485568001_4FGL_J1200.2+0201_daily_bin949.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=180.055 yref=2.0172 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.7231       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2038       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10573E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11571E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3491       1.0000         .10000E-03   10000.    
     8 'Prefactor '    66.561       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3102       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7136       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.874       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.537       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11778E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.002       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12156E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.9680       1.0000         .10000E-03   10000.    
    21 'norm      '    .11538E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.091       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    119.58       1.0000         .10000E-03   10000.    
    25 'norm      '    .53898       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.179       1.0000         .10000E-03   10000.    
    27 'norm      '    1.1881       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .90478       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .95391       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=   4827.715     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     4224 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9544        .33918E-06** at limit **
   2  norm          8.7193        19.637        .22098E-05    .49378E-04
   3  Prefactor     1.2041        2.5452        .52993E-06    .19240E-03
   4  Prefactor     .10000E-03    40.271        .11129E-05** at limit **
   5  norm          .10000E-03    2.0361        .24649E-06** at limit **
   6  Prefactor     .10006E-03    1.6741        .23051E-06** at limit **
   7  Prefactor     5.3435        60.076       -.51372E-06   -.41004E-05
   8  Prefactor     66.259        142.28       -.44858E-05   -.25269E-04
   9  Prefactor     9.3158        11.979        .81587E-06    .12448E-03
  10  Prefactor     .10000E-03    26.668        .78132E-06** at limit **
  11  Prefactor     .10000E-03    6.3884       -.61047E-06** at limit **
  12  Prefactor     4.7136        12.415        .20006E-06    .11908E-04
  13  Prefactor     .10000E-03    9.8337        .11604E-05** at limit **
  14  Prefactor     71.877        105.06       -.98281E-06    .49194E-05
  15  Prefactor     14.545        34.304       -.10251E-05   -.41112E-04
  16  Prefactor     .10000E-03    47.315       -.45102E-05** at limit **
  17  Prefactor     19.001        18.947       -.26981E-06   -.15896E-06
  18  Prefactor     .10000E-03    93.880       -.32287E-05** at limit **
  19  Prefactor     .10000E-03    3.5223        .11051E-06** at limit **
  20  norm          3.9678        2.2308        .17949E-07    .24801E-04
  21  norm          .10000E-03    1.9847       -.89548E-06** at limit **
  22  Prefactor     28.068        48.954        .66572E-06    .45247E-04
  23  norm          .10000E-03    17.210       -.35933E-07** at limit **
  24  Prefactor     119.49        131.84        .91819E-06    .20793E-04
  25  norm          .53852        .45861        .15595E-06    .25195E-02
  26  Prefactor     11.179        7.1978       -.14241E-06   -.63495E-04
  27  norm          1.1880        1.1154        .14803E-07    .19298E-03
  28  Prefactor     .10000E-03    2.7006        .15269E-06** at limit **
  29  Prefactor     .10000E-03    25.192        .61046E-06** at limit **
  30  Normalizat    .90437        .25472        .79230E-05    .28898E-04
  31  Prefactor     .95417        .19651       -.64408E-05    .18692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.71934
  Prefactor  = 1.20411
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100063
  Prefactor  = 5.3435
  Prefactor  = 66.2587
  Prefactor  = 9.31577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.71361
  Prefactor  = 0.0001
  Prefactor  = 71.8765
  Prefactor  = 14.5447
  Prefactor  = 0.000100002
  Prefactor  = 19.0015
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.9678
  norm       = 0.000100002
  Prefactor  = 28.0679
  norm       = 0.0001
  Prefactor  = 119.492
  norm       = 0.538523
  Prefactor  = 11.1789
  norm       = 1.18802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.904368
  Prefactor  = 0.954168
 **********
 **   18 **HESSE 
 **********

 FCN=   4827.715     FROM HESSE     STATUS=OK           630 CALLS     4854 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9887        .11636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.7193        19.572        .67858E-03   -1.5117    
   3  Prefactor     1.2041        2.5149        .15248E-03   -1.5489    
   4  Prefactor     .10000E-03    40.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.0479        .96831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10006E-03    3.0377        .32737E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.3435        59.904        .17376E-03   -1.5246    
   8  Prefactor     66.259        142.78        .24597E-03   -1.4078    
   9  Prefactor     9.3158        12.005        .65673E-03   -1.5097    
  10  Prefactor     .10000E-03    26.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.4263        .17154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7136        12.385        .18534E-03   -1.5274    
  13  Prefactor     .10000E-03    9.9217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     71.877        104.90        .47353E-04   -1.4010    
  15  Prefactor     14.545        34.310        .10505E-03   -1.4945    
  16  Prefactor     .10000E-03    48.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.001        18.938        .91882E-04   -1.4836    
  18  Prefactor     .10000E-03    95.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.5282        .12731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.9678        2.2291        .75380E-04   -1.5310    
  21  norm          .10000E-03    8.2829        .17770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     28.068        48.935        .75589E-04   -1.4648    
  23  norm          .10000E-03    17.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     119.49        131.67        .18400E-03   -1.3517    
  25  norm          .53852        .43925        .40820E-03   -1.5561    
  26  Prefactor     11.179        7.2026        .59912E-03   -1.5039    
  27  norm          1.1880        1.1150        .68720E-04   -1.5490    
  28  Prefactor     .10000E-03    2.7038        .11153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    25.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .90437        .25914        .27961E-03   -.96307    
  31  Prefactor     .95417        .19984        .21937E-03   -.94273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.45406e-10
Minuit parameter uncertainties:
  1  9.03554e-07
  2  19.5868
  3  2.51513
  4  5.52953e-05
  5  6.02334e-06
  6  0.0008759
  7  35.8275
  8  143.529
  9  12.008
  10  7.83391e-05
  11  3.04222e-05
  12  12.3917
  13  5.67491e-05
  14  105.173
  15  34.3567
  16  0.000597759
  17  18.9442
  18  0.000474319
  19  2.75168e-06
  20  2.22915
  21  0.000272729
  22  49.0049
  23  2.75582e-06
  24  131.997
  25  0.439253
  26  7.20318
  27  1.115
  28  4.78305e-06
  29  5.19622e-05
  30  0.259496
  31  0.199997
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.042e-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:  9.542e-01  2.000e-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.044e-01  2.595e-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: 8.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/244186/likelihoodResults_485308801_485568001_4FGL_J1200.2+0201_daily_bin949.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) = 4827.71594947
delta logL = -0.000741585056858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4827.71520794
delta logL = -5.6415956351e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1080       1.0000          .0000       10.000    
     3 'Normalizat'    .90435       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95420       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=   4827.715     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    130.69        .90712E-02** at limit **
   2  Index         2.1068        8.7063        .50000        .14000E-05
   3  Normalizat    .90437        .24334E-01    .44957E-01    .42825E-04
   4  Prefactor     .95417        .19672E-01    .45692E-01    .40278E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10681
  Normalizat = 0.904371
  Prefactor  = 0.954166
 **********
 **   18 **HESSE 
 **********

 FCN=   4827.715     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8418        .17156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1068        5.9927        .50000       -.61706    
   3  Normalizat    .90437        .24153        .27959E-03   -.96307    
   4  Prefactor     .95417        .19538        .21937E-03   -.94273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63249e-12
Minuit parameter uncertainties:
  1  1.17391e-05
  2  4.78945
  3  0.241816
  4  0.195519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244186': 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) = 4827.71520789
delta logL = 9.58607415669e-10

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.174e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.107e+00  4.789e+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.542e-01  1.955e-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.044e-01  2.418e-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/244186/cmap_HighResolution_485308801_485568001_4FGL_J1200.2+0201_daily_bin949.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-03', job_status='DONE', photon_flux_upper_limit='8.34e-08', time_completed='2021-09-04 20:06:30.752486', job_id='244186', GAL2='0.95', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630811190.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.59e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='949' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:06:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 244186: <4FGL_J1200.2+0201_daily_bin949> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin949> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 19:50:34 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:50:36 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:50:36 2021
Terminated at Sat Sep  4 20:06:31 2021
Results reported at Sat Sep  4 20:06:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin949 180.055 2.0172 485308801 485568001 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 :                                   757.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

