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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin943
RA = 180.055, Dec = 2.0172
tmin = 483753601, tmax = 484012801
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='244178', job_status='RUN', time_executed='2021-09-04 19:52:26.409767', time_epoch_executed='1630810346.41' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='943'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244178

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244178/ft1_4FGL_J1200.2+0201_daily_bin943.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244178/ft2_4FGL_J1200.2+0201_daily_bin943.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244178/ft1_4FGL_J1200.2+0201_daily_bin943.fits outfile=/scratch/kocevski/244178/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin943.fits ra=180.055 dec=2.0172 rad=12.0 tmin=483753601.0 tmax=484012801.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 5.63
user 5.38
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/244178/ft2_4FGL_J1200.2+0201_daily_bin943.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/244178/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin943.fits evtable="EVENTS" outfile="/scratch/kocevski/244178/ft1_filtered_4FGL_J1200.2+0201_daily_bin943.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244178/ft1_filtered_4FGL_J1200.2+0201_daily_bin943.fits" evtable="EVENTS" scfile=/scratch/kocevski/244178/ft2_4FGL_J1200.2+0201_daily_bin943.fits sctable="SC_DATA" outfile=/scratch/kocevski/244178/ltcube_483753601_484012801_4FGL_J1200.2+0201_daily_bin943.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/244178/ft2_4FGL_J1200.2+0201_daily_bin943.fits
.....................!
real 11.51
user 11.20
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244178/ft1_filtered_4FGL_J1200.2+0201_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/244178/ft2_4FGL_J1200.2+0201_daily_bin943.fits sctable="SC_DATA" expcube=/scratch/kocevski/244178/ltcube_483753601_484012801_4FGL_J1200.2+0201_daily_bin943.fits outfile=/scratch/kocevski/244178/expmap_483753601_484012801_4FGL_J1200.2+0201_daily_bin943.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/244178/ltcube_483753601_484012801_4FGL_J1200.2+0201_daily_bin943.fits
.....................!
real 189.56
user 185.30
sys 3.86

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/244178/ft1_filtered_4FGL_J1200.2+0201_daily_bin943.fits scfile=/scratch/kocevski/244178/ft2_4FGL_J1200.2+0201_daily_bin943.fits outfile=/scratch/kocevski/244178/cmap_483753601_484012801_4FGL_J1200.2+0201_daily_bin943.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244178/ft1_filtered_4FGL_J1200.2+0201_daily_bin943.fits scfile=/scratch/kocevski/244178/ft2_4FGL_J1200.2+0201_daily_bin943.fits outfile=/scratch/kocevski/244178/cmap_HighResolution_483753601_484012801_4FGL_J1200.2+0201_daily_bin943.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.61
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7010       1.0000         .10000E-03   10000.    
     2 'norm      '    35.768       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8413       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.202       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22358       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.131       1.0000         .10000E-03   10000.    
     8 'Prefactor '    98.394       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.391       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1054       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.290       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11781E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    57.485       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.786       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.127       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .70357       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    98.609       1.0000         .10000E-03   10000.    
    25 'norm      '    2.9294       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.260       1.0000         .10000E-03   10000.    
    27 'norm      '    2.6177       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.471       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .42826       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3577       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=   4754.084     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     4113 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6995        7.8941       -.26520E-05   -.12599E-03
   2  norm          35.767        48.321       -.75865E-06    .10225E-05
   3  Prefactor     1.8408        2.1524       -.23910E-06   -.53378E-04
   4  Prefactor     .10000E-03    8.9568       -.48308E-05** at limit **
   5  norm          11.205        7.4071       -.45995E-06    .29211E-04
   6  Prefactor     .21319        2.3977       -.30742E-07   -.97971E-04
   7  Prefactor     16.129        15.890        .13698E-05    .19103E-04
   8  Prefactor     98.380        102.77       -.11576E-04   -.25917E-04
   9  Prefactor     15.383        12.433        .30608E-05    .29311E-04
  10  Prefactor     .10000E-03    14.722        .17390E-05** at limit **
  11  Prefactor     1.1125        1.8186        .11854E-05   -.35403E-02
  12  Prefactor     33.269        22.437       -.15744E-06   -.97086E-05
  13  Prefactor     .10000E-03    15.574       -.87570E-05** at limit **
  14  Prefactor     .10000E-03    107.08       -.25167E-05** at limit **
  15  Prefactor     .10000E-03    13.957        .99336E-05** at limit **
  16  Prefactor     57.452        42.857       -.25184E-04   -.13122E-03
  17  Prefactor     21.784        20.892       -.24863E-06    .22723E-04
  18  Prefactor     17.128        17.330        .90505E-06   -.65570E-05
  19  Prefactor     .10000E-03    4.6968       -.11121E-07** at limit **
  20  norm          .70504        2.2734       -.27404E-06   -.23867E-03
  21  norm          .10000E-03    1.1135        .66530E-07** at limit **
  22  Prefactor     .10000E-03    8.4166        .34050E-05** at limit **
  23  norm          .10000E-03    20.935        .12914E-04** at limit **
  24  Prefactor     98.609        97.134        .83018E-07   -.49338E-05
  25  norm          2.9296        .75665       -.15245E-07   -.22419E-03
  26  Prefactor     13.258        11.817       -.17033E-07   -.19427E-04
  27  norm          2.6174        2.0198       -.23937E-06   -.14773E-03
  28  Prefactor     17.470        12.131        .40319E-07   -.10360E-04
  29  Prefactor     .10000E-03    18.222       -.14033E-04** at limit **
  30  Normalizat    .42818        .24870        .11017E-04    .98581E-04
  31  Prefactor     1.3578        .20057       -.17911E-05    .16726E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69952
  norm       = 35.7666
  Prefactor  = 1.84079
  Prefactor  = 0.0001
  norm       = 11.2054
  Prefactor  = 0.213193
  Prefactor  = 16.129
  Prefactor  = 98.3801
  Prefactor  = 15.3834
  Prefactor  = 0.0001
  Prefactor  = 1.11254
  Prefactor  = 33.2685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.4519
  Prefactor  = 21.7836
  Prefactor  = 17.1277
  Prefactor  = 0.0001
  norm       = 0.705039
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 98.6091
  norm       = 2.92958
  Prefactor  = 13.2582
  norm       = 2.61737
  Prefactor  = 17.4696
  Prefactor  = 0.0001
  Normalizat = 0.428185
  Prefactor  = 1.35785
 **********
 **   18 **HESSE 
 **********

 FCN=   4754.084     FROM HESSE     STATUS=OK           626 CALLS     4739 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6995        7.6983        .21862E-03   -1.5379    
   2  norm          35.767        47.293        .67009E-04   -1.4511    
   3  Prefactor     1.8408        2.1378        .10396E-03   -1.5437    
   4  Prefactor     .10000E-03    8.9596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.205        7.4301        .11970E-03   -1.5038    
   6  Prefactor     .21319        13.603        .20095E-02   -1.5616    
   7  Prefactor     16.129        15.913        .99721E-04   -1.4905    
   8  Prefactor     98.380        102.74        .40525E-04   -1.3721    
   9  Prefactor     15.383        12.408        .10209E-03   -1.4923    
  10  Prefactor     .10000E-03    14.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1125        10.273        .20672E-02   -1.5497    
  12  Prefactor     33.269        22.394        .69451E-04   -1.4554    
  13  Prefactor     .10000E-03    15.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    107.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     57.452        43.524        .52912E-04   -1.4191    
  17  Prefactor     21.784        20.811        .85815E-04   -1.4774    
  18  Prefactor     17.128        17.327        .96779E-04   -1.4880    
  19  Prefactor     .10000E-03    4.7020        .14582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .70504        2.2175        .17766E-03   -1.5540    
  21  norm          .10000E-03    1.1270        .71000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.4165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    20.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     98.609        97.128        .40482E-04   -1.3719    
  25  norm          2.9296        .75495        .28436E-04   -1.5366    
  26  Prefactor     13.258        11.801        .11000E-03   -1.4980    
  27  norm          2.6174        2.0090        .81183E-04   -1.5384    
  28  Prefactor     17.470        12.128        .95821E-04   -1.4872    
  29  Prefactor     .10000E-03    18.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .42818        .26139        .41175E-03   -1.1587    
  31  Prefactor     1.3578        .21686        .20997E-03   -.81603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27007e-08
Minuit parameter uncertainties:
  1  7.70112
  2  47.3423
  3  2.13785
  4  1.50192e-05
  5  7.43071
  6  3.4059
  7  15.9167
  8  102.924
  9  12.4102
  10  4.52121e-06
  11  6.76262
  12  22.3995
  13  7.13891e-05
  14  0.000435277
  15  4.66831e-05
  16  43.5476
  17  20.8179
  18  17.3317
  19  3.17013e-06
  20  2.21778
  21  7.1579e-06
  22  1.24088e-05
  23  8.33778e-05
  24  97.2854
  25  0.75495
  26  11.8035
  27  2.00905
  28  12.13
  29  9.2469e-05
  30  0.262143
  31  0.217005
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.113e+00  6.763e+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.358e+00  2.170e-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:  4.282e-01  2.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 7.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/244178/likelihoodResults_483753601_484012801_4FGL_J1200.2+0201_daily_bin943.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) = 4754.06036195
delta logL = 0.0238244352568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4754.05938865
delta logL = 0.0247977388381

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95190       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5540       1.0000          .0000       10.000    
     3 'Normalizat'    .42294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3599       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=   4754.059     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      255 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94603        9.0488        .23998E-03   -.24350E-04
   2  Index         2.5551        2.3675        .11501E-01    .14569E-03
   3  Normalizat    .42367        .24246        .41382E-03   -.49725E-04
   4  Prefactor     1.3592        .21149        .20986E-03    .29903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.946032
  Index      = 2.55508
  Normalizat = 0.423668
  Prefactor  = 1.35921
 **********
 **   18 **HESSE 
 **********

 FCN=   4754.059     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94603        6.0753        .95993E-05   -1.5513    
   2  Index         2.5551        1.9774        .23002E-02   -.51092    
   3  Normalizat    .42367        .24242        .16553E-04   -1.1610    
   4  Prefactor     1.3592        .21139        .83946E-05   -.81563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34171e-11
Minuit parameter uncertainties:
  1  4.79524
  2  2.05227
  3  0.24302
  4  0.211522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244178': 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) = 4754.05938243
delta logL = 0.024803951892

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  9.460e-01  4.795e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.555e+00  2.052e+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:  1.359e+00  2.115e-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:  4.237e-01  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/244178/cmap_HighResolution_483753601_484012801_4FGL_J1200.2+0201_daily_bin943.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-03', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2021-09-04 20:05:19.377910', job_id='244178', GAL2='1.36', fit_tolerance='1e-08', EG2='0.42', EG='0.43', time_epoch_completed='1630811119.38', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='2.48e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='943' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:05:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 244178: <4FGL_J1200.2+0201_daily_bin943> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin943 180.055 2.0172 483753601 484012801 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 :                                   768.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            887 sec.

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

