/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 164 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.2+0201_daily_bin438
RA = 180.055, Dec = 2.0172
tmin = 352857601, tmax = 353116801
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='241181', job_status='RUN', time_executed='2021-09-04 19:43:34.334312', time_epoch_executed='1630809814.33' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241181

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241181/ft1_4FGL_J1200.2+0201_daily_bin438.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241181/ft2_4FGL_J1200.2+0201_daily_bin438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241181/ft1_4FGL_J1200.2+0201_daily_bin438.fits outfile=/scratch/kocevski/241181/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin438.fits ra=180.055 dec=2.0172 rad=12.0 tmin=352857601.0 tmax=353116801.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.42
user 3.17
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/241181/ft2_4FGL_J1200.2+0201_daily_bin438.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/241181/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin438.fits evtable="EVENTS" outfile="/scratch/kocevski/241181/ft1_filtered_4FGL_J1200.2+0201_daily_bin438.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.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241181/ft1_filtered_4FGL_J1200.2+0201_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/241181/ft2_4FGL_J1200.2+0201_daily_bin438.fits sctable="SC_DATA" expcube=/scratch/kocevski/241181/ltcube_352857601_353116801_4FGL_J1200.2+0201_daily_bin438.fits outfile=/scratch/kocevski/241181/expmap_352857601_353116801_4FGL_J1200.2+0201_daily_bin438.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/241181/ltcube_352857601_353116801_4FGL_J1200.2+0201_daily_bin438.fits
.....................!
real 191.14
user 185.29
sys 5.37

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/241181/ft1_filtered_4FGL_J1200.2+0201_daily_bin438.fits scfile=/scratch/kocevski/241181/ft2_4FGL_J1200.2+0201_daily_bin438.fits outfile=/scratch/kocevski/241181/cmap_352857601_353116801_4FGL_J1200.2+0201_daily_bin438.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241181/ft1_filtered_4FGL_J1200.2+0201_daily_bin438.fits scfile=/scratch/kocevski/241181/ft2_4FGL_J1200.2+0201_daily_bin438.fits outfile=/scratch/kocevski/241181/cmap_HighResolution_352857601_353116801_4FGL_J1200.2+0201_daily_bin438.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3526       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.131       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.941       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5280       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3842       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.136       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8136       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .92832E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.393       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5443       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5841       1.0000         .10000E-03   10000.    
    21 'norm      '    5.8189       1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.957       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .17584       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12044E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    .10067E-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'    .91456       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0921       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=   2847.213     FROM MIGRAD    STATUS=CONVERGED    819 CALLS     4173 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3503        11.572       -.31463E-06   -.12194E-03
   2  norm          .10000E-03    21.748        .80467E-06** at limit **
   3  Prefactor     10.133        6.4790        .49844E-06   -.78535E-04
   4  Prefactor     17.032        66.608        .61745E-05    .25420E-04
   5  norm          .10000E-03    3.1465        .16853E-06** at limit **
   6  Prefactor     3.5264        5.3638       -.73219E-08   -.13583E-03
   7  Prefactor     .10000E-03    12.737       -.11074E-06** at limit **
   8  Prefactor     .10000E-03    97.461        .61680E-07** at limit **
   9  Prefactor     8.3849        8.5691        .19642E-06   -.16991E-04
  10  Prefactor     13.207        88.263       -.23190E-04   -.16286E-04
  11  Prefactor     6.8135        7.5188        .28991E-07   -.18318E-04
  12  Prefactor     .10000E-03    12.356       -.35186E-07** at limit **
  13  Prefactor     .10059E-03    31.565        .79870E-05** at limit **
  14  Prefactor     .10000E-03    105.82        .16845E-05** at limit **
  15  Prefactor     .10000E-03    48.063        .31724E-05** at limit **
  16  Prefactor     32.400        57.971        .22792E-05   -.25177E-04
  17  Prefactor     4.5408        63.201       -.23980E-05   -.24938E-04
  18  Prefactor     .10000E-03    25.613        .10663E-06** at limit **
  19  Prefactor     .10000E-03    7.0948       -.44876E-07** at limit **
  20  norm          1.5839        2.4459        .65532E-07   -.15849E-03
  21  norm          5.8183        4.9954        .41460E-07   -.86059E-04
  22  Prefactor     39.049        64.684        .80124E-05    .32048E-04
  23  norm          .10000E-03    64.846       -.45750E-05** at limit **
  24  Prefactor     .10000E-03    140.47        .54960E-05** at limit **
  25  norm          .17579        .57165        .36462E-06   -.36302E-03
  26  Prefactor     .10036E-03    14.476        .39575E-05** at limit **
  27  norm          .10000E-03    1.5669       -.87336E-07** at limit **
  28  Prefactor     .10000E-03    7.9852       -.77110E-07** at limit **
  29  Prefactor     .10000E-03    23.616       -.82657E-06** at limit **
  30  Normalizat    .91473        .33245       -.98005E-05   -.14847E-03
  31  Prefactor     1.0917        .25147        .27975E-05   -.52223E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.35027
  norm       = 0.0001
  Prefactor  = 10.1325
  Prefactor  = 17.0317
  norm       = 0.0001
  Prefactor  = 3.52639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.38491
  Prefactor  = 13.2069
  Prefactor  = 6.81355
  Prefactor  = 0.0001
  Prefactor  = 0.000100591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.4
  Prefactor  = 4.54085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.58392
  norm       = 5.81834
  Prefactor  = 39.0492
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.175791
  Prefactor  = 0.000100358
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.914727
  Prefactor  = 1.09173
 **********
 **   18 **HESSE 
 **********

 FCN=   2847.213     FROM HESSE     STATUS=OK           624 CALLS     4797 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3503        11.514        .15925E-03   -1.5204    
   2  norm          .10000E-03    21.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.133        6.4749        .10047E-03   -1.5071    
   4  Prefactor     17.032        66.346        .97309E-04   -1.4882    
   5  norm          .10000E-03    3.1480        .92434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5264        5.3407        .14337E-03   -1.5332    
   7  Prefactor     .10000E-03    12.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    97.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.3849        8.5724        .13845E-03   -1.5129    
  10  Prefactor     13.207        90.772        .11052E-03   -1.4981    
  11  Prefactor     6.8135        7.5178        .14938E-03   -1.5186    
  12  Prefactor     .10000E-03    12.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10059E-03    213.86        .53988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    106.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    48.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.400        58.038        .70403E-04   -1.4569    
  17  Prefactor     4.5408        62.910        .18885E-03   -1.5282    
  18  Prefactor     .10000E-03    25.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.1017        .13878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5839        2.4128        .10039E-03   -1.5456    
  21  norm          5.8183        4.9558        .10211E-03   -1.5225    
  22  Prefactor     39.049        64.618        .64217E-04   -1.4457    
  23  norm          .10000E-03    64.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    140.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .17579        .54881        .66958E-04   -1.5624    
  26  Prefactor     .10036E-03    53.719        .37919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.5114        .12927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.0020        .14725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    23.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .91473        .37663        .29901E-03   -.95945    
  31  Prefactor     1.0917        .29077        .22729E-03   -.89731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05005e-08
Minuit parameter uncertainties:
  1  11.518
  2  2.6899e-06
  3  6.47531
  4  66.6357
  5  6.1885e-07
  6  5.3414
  7  1.87862e-06
  8  0.000181216
  9  8.57368
  10  69.399
  11  7.51882
  12  4.96475e-05
  13  0.0225584
  14  0.000426386
  15  0.000172953
  16  58.1392
  17  33.846
  18  1.76963e-05
  19  1.38259e-05
  20  2.41296
  21  4.95615
  22  64.7345
  23  0.000321931
  24  0.000407405
  25  0.548825
  26  0.00878308
  27  5.07561e-05
  28  5.16594e-06
  29  2.33649e-05
  30  0.377717
  31  0.291189
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  6.814e+00  7.519e+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:  1.092e+00  2.912e-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.147e-01  3.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.81
Ra Dec: 180.055 2.017
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 2.56e-08 +/- 2.83e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 1.52e-05

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

Saving results to:
/scratch/kocevski/241181/likelihoodResults_352857601_353116801_4FGL_J1200.2+0201_daily_bin438.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) = 2847.12060676
delta logL = 0.092723993961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2847.11685929
delta logL = 0.0964714622505

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8805       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7585       1.0000          .0000       10.000    
     3 'Normalizat'    .92095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0880       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=   2847.117     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      288 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8820        12.203        .12748E-03   -.11826E-02
   2  Index         1.7584        .75097        .75730E-02   -.29267E-03
   3  Normalizat    .92106        .34814        .29807E-03    .10742E-03
   4  Prefactor     1.0879        .28842        .22762E-03    .15947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.88197
  Index      = 1.75844
  Normalizat = 0.921059
  Prefactor  = 1.08792
 **********
 **   18 **HESSE 
 **********

 FCN=   2847.117     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8820        12.019        .25496E-04   -1.5079    
   2  Index         1.7584        .73989        .30292E-03   -.70537    
   3  Normalizat    .92106        .34845        .11923E-04   -.95724    
   4  Prefactor     1.0879        .28868        .45524E-04   -.89854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15845e-09
Minuit parameter uncertainties:
  1  12.0215
  2  0.744627
  3  0.349307
  4  0.289095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241181': 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) = 2847.1168592
delta logL = 0.0964715453865

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  9.882e+00  1.202e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.758e+00  7.446e-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.088e+00  2.891e-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.211e-01  3.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.01
Ra Dec: 180.055 2.017
Photon Index (Free Index): 1.76 +/- 0.74
Photon Flux (Free Index): 1.98e-08 +/- 2.51e-08
Energy Flux (Free Index): 2.70e-05 +/- 5.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/241181/cmap_HighResolution_352857601_353116801_4FGL_J1200.2+0201_daily_bin438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.49e-03', comment='SUCCESS', photon_flux='2.56e-08', energy_flux2='2.70e-05', photon_flux_error='2.83e-08', dlogl='9.65e-02', energy_flux='1.38e-05', photon_flux2='1.98e-08', job_status='DONE', time_completed='2021-09-04 19:53:23.365209', photon_index_error2='0.74', photon_index2='1.76', ts='2.81', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='5.36e-05', EG='0.91', time_epoch_completed='1630810403.37', return_code='0', job_id='241181', GAL2='1.09', EG2='0.92', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='2.51e-08', ts2='3.01', photon_index='2.11' WHERE bin_id='438' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:53:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 241181: <4FGL_J1200.2+0201_daily_bin438> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin438> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 19:40:40 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:40:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:40:42 2021
Terminated at Sat Sep  4 19:53:24 2021
Results reported at Sat Sep  4 19:53:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin438 180.055 2.0172 352857601 353116801 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 :                                   587.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            764 sec.

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

