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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin302
RA = 180.055, Dec = 2.0172
tmin = 317606401, tmax = 317865601
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='240968', job_status='RUN', time_executed='2021-09-04 19:42:19.423981', time_epoch_executed='1630809739.42' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240968

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240968/ft1_4FGL_J1200.2+0201_daily_bin302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240968/ft2_4FGL_J1200.2+0201_daily_bin302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240968/ft1_4FGL_J1200.2+0201_daily_bin302.fits outfile=/scratch/kocevski/240968/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin302.fits ra=180.055 dec=2.0172 rad=12.0 tmin=317606401.0 tmax=317865601.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.36
user 3.14
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/240968/ft2_4FGL_J1200.2+0201_daily_bin302.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/240968/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin302.fits evtable="EVENTS" outfile="/scratch/kocevski/240968/ft1_filtered_4FGL_J1200.2+0201_daily_bin302.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/240968/ft1_filtered_4FGL_J1200.2+0201_daily_bin302.fits" evtable="EVENTS" scfile=/scratch/kocevski/240968/ft2_4FGL_J1200.2+0201_daily_bin302.fits sctable="SC_DATA" outfile=/scratch/kocevski/240968/ltcube_317606401_317865601_4FGL_J1200.2+0201_daily_bin302.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/240968/ft2_4FGL_J1200.2+0201_daily_bin302.fits
.....................!
real 12.17
user 11.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240968/ft1_filtered_4FGL_J1200.2+0201_daily_bin302.fits evtable="EVENTS" scfile=/scratch/kocevski/240968/ft2_4FGL_J1200.2+0201_daily_bin302.fits sctable="SC_DATA" expcube=/scratch/kocevski/240968/ltcube_317606401_317865601_4FGL_J1200.2+0201_daily_bin302.fits outfile=/scratch/kocevski/240968/expmap_317606401_317865601_4FGL_J1200.2+0201_daily_bin302.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/240968/ltcube_317606401_317865601_4FGL_J1200.2+0201_daily_bin302.fits
.....................!
real 190.31
user 185.06
sys 4.82

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/240968/ft1_filtered_4FGL_J1200.2+0201_daily_bin302.fits scfile=/scratch/kocevski/240968/ft2_4FGL_J1200.2+0201_daily_bin302.fits outfile=/scratch/kocevski/240968/cmap_HighResolution_317606401_317865601_4FGL_J1200.2+0201_daily_bin302.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.57
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    44.109       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5649       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.675       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4665       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11501E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .44504E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.885       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.3713       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    108.57       1.0000         .10000E-03   10000.    
    25 'norm      '    2.1640       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.1809       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.3216       1.0000         .10000E-03   10000.    
    29 'Prefactor '    23.070       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1374       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .67807       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=   5117.144     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     4120 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    6.9154        .52743E-05** at limit **
   2  norm          44.173        28.798       -.32036E-05   -.92044E-03
   3  Prefactor     2.5639        2.9959        .26409E-06   -.31267E-03
   4  Prefactor     .10000E-03    16.847        .10892E-05** at limit **
   5  norm          11.668        9.9202        .16429E-05   -.34466E-04
   6  Prefactor     1.4702        4.0599       -.31507E-06   -.12721E-03
   7  Prefactor     .10000E-03    21.062        .14735E-06** at limit **
   8  Prefactor     .10000E-03    49.433       -.76032E-06** at limit **
   9  Prefactor     .10000E-03    2.6918       -.37324E-08** at limit **
  10  Prefactor     .10000E-03    66.275        .25695E-06** at limit **
  11  Prefactor     .10000E-03    4.3264       -.13191E-07** at limit **
  12  Prefactor     .10007E-03    8.1277       -.14848E-05** at limit **
  13  Prefactor     .10000E-03    7.8694       -.11679E-06** at limit **
  14  Prefactor     .10000E-03    61.731        .40744E-06** at limit **
  15  Prefactor     .10000E-03    237.02       -.34609E-05** at limit **
  16  Prefactor     .10000E-03    7.7918        .54694E-07** at limit **
  17  Prefactor     18.883        19.734        .30526E-06   -.24778E-04
  18  Prefactor     .10000E-03    8.3102       -.10253E-07** at limit **
  19  Prefactor     .10000E-03    3.8046       -.22776E-07** at limit **
  20  norm          .10000E-03    1.1248       -.40920E-07** at limit **
  21  norm          3.3702        3.4532        .20167E-06    .25016E-04
  22  Prefactor     .10000E-03    8.7459        .83854E-07** at limit **
  23  norm          .10000E-03    15.188       -.14866E-06** at limit **
  24  Prefactor     108.67        122.62        .22035E-05    .12503E-03
  25  norm          2.1640        .73999       -.24436E-08   -.32467E-03
  26  Prefactor     .10000E-03    6.2834       -.15381E-06** at limit **
  27  norm          3.1805        1.8138        .53847E-07   -.25163E-04
  28  Prefactor     1.3189        32.790        .44662E-05    .36041E-04
  29  Prefactor     23.077        40.053        .11895E-06    .32988E-05
  30  Normalizat    1.1377        .20627       -.54692E-06   -.55488E-03
  31  Prefactor     .67798        .15952       -.17212E-05   -.54736E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100025
  norm       = 44.1733
  Prefactor  = 2.56394
  Prefactor  = 0.0001
  norm       = 11.6677
  Prefactor  = 1.47016
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 18.8835
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.37023
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 108.668
  norm       = 2.16397
  Prefactor  = 0.0001
  norm       = 3.18053
  Prefactor  = 1.31894
  Prefactor  = 23.0766
  Normalizat = 1.13775
  Prefactor  = 0.677978
 **********
 **   18 **HESSE 
 **********

 FCN=   5117.144     FROM HESSE     STATUS=OK           612 CALLS     4732 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    10.103        .28653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          44.173        30.192        .60365E-04   -1.4378    
   3  Prefactor     2.5639        2.9824        .12494E-03   -1.5388    
   4  Prefactor     .10000E-03    16.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.668        9.6670        .58622E-03   -1.5025    
   6  Prefactor     1.4702        3.9325        .20462E-03   -1.5465    
   7  Prefactor     .10000E-03    21.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    49.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6954        .11462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    66.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3510        .14528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10007E-03    32.899        .38025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.8879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    61.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    240.62        .21214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.7930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.883        19.741        .92164E-04   -1.4839    
  18  Prefactor     .10000E-03    8.3138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.8137        .13625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1719        .14805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.3702        3.4477        .12288E-03   -1.5341    
  22  Prefactor     .10000E-03    8.7470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    15.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     108.67        122.25        .19299E-03   -1.3619    
  25  norm          2.1640        .74026        .31997E-04   -1.5414    
  26  Prefactor     .10000E-03    6.3206        .17501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.1805        1.8123        .69019E-04   -1.5351    
  28  Prefactor     1.3189        33.302        .38268E-03   -1.5478    
  29  Prefactor     23.077        39.979        .83395E-04   -1.4747    
  30  Normalizat    1.1377        .24090        .25095E-03   -.88549    
  31  Prefactor     .67798        .18484        .24822E-03   -1.0440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67983e-09
Minuit parameter uncertainties:
  1  0.000998597
  2  30.2024
  3  2.98258
  4  8.65308e-05
  5  9.66825
  6  3.93314
  7  8.35485e-05
  8  0.000478832
  9  2.63655e-06
  10  0.000506536
  11  5.5206e-06
  12  0.00297076
  13  3.37205e-07
  14  0.000414778
  15  0.0020051
  16  1.68873e-05
  17  19.7481
  18  1.61287e-05
  19  1.88129e-06
  20  2.23147e-06
  21  3.44793
  22  7.21729e-06
  23  6.02713e-05
  24  122.531
  25  0.740265
  26  1.11941e-05
  27  1.8123
  28  13.2627
  29  40.0252
  30  0.241135
  31  0.185012
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.521e-06  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:  6.780e-01  1.850e-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:  1.138e+00  2.411e-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: 6.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/240968/likelihoodResults_317606401_317865601_4FGL_J1200.2+0201_daily_bin302.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) = 5117.14467949
delta logL = -0.00109218992384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5117.14358729
delta logL = 5.48516254639e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1021       1.0000          .0000       10.000    
     3 'Normalizat'    1.1378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67799       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=   5117.144     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    41.047        .14559E-02** at limit **
   2  Index         2.0857        5.1426        .50000        .12113E-04
   3  Normalizat    1.1377        .15680E-01    .25095E-03   -.15947E-04
   4  Prefactor     .67798        .12336E-01    .24822E-03   -.73739E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100114
  Index      = 2.08573
  Normalizat = 1.13775
  Prefactor  = 0.677979
 **********
 **   18 **HESSE 
 **********

 FCN=   5117.144     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    188.16        .29118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0857        5.5344        .50000       -.62224    
   3  Normalizat    1.1377        .34992E-01    .10038E-04   -.88549    
   4  Prefactor     .67798        .27526E-01    .99289E-05   -1.0440    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.60803e-09
Minuit parameter uncertainties:
  1  0.00930325
  2  384.134
  3  0.034993
  4  0.0275269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240968': 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) = 5117.14358724
delta logL = 6.12053554505e-08

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.001e-04  9.303e-03  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.086e+00  3.841e+02  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:  6.780e-01  2.753e-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:  1.138e+00  3.499e-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/240968/cmap_HighResolution_317606401_317865601_4FGL_J1200.2+0201_daily_bin302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.74e-03', job_status='DONE', photon_flux_upper_limit='6.26e-08', time_completed='2021-09-04 19:55:35.283124', job_id='240968', GAL2='0.68', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630810535.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='6.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='302' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:55:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 240968: <4FGL_J1200.2+0201_daily_bin302> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin302> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 19:40:23 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:40:24 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:24 2021
Terminated at Sat Sep  4 19:55:35 2021
Results reported at Sat Sep  4 19:55:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin302 180.055 2.0172 317606401 317865601 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 :                                   793.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            912 sec.

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

