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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin965
RA = 180.055, Dec = 2.0172
tmin = 489456001, tmax = 489715201
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='244208', job_status='RUN', time_executed='2021-09-04 19:53:11.798885', time_epoch_executed='1630810391.8' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='965'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244208

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244208/ft1_4FGL_J1200.2+0201_daily_bin965.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244208/ft2_4FGL_J1200.2+0201_daily_bin965.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244208/ft1_4FGL_J1200.2+0201_daily_bin965.fits outfile=/scratch/kocevski/244208/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin965.fits ra=180.055 dec=2.0172 rad=12.0 tmin=489456001.0 tmax=489715201.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.11
user 4.87
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244208/ft1_filtered_4FGL_J1200.2+0201_daily_bin965.fits" evtable="EVENTS" scfile=/scratch/kocevski/244208/ft2_4FGL_J1200.2+0201_daily_bin965.fits sctable="SC_DATA" outfile=/scratch/kocevski/244208/ltcube_489456001_489715201_4FGL_J1200.2+0201_daily_bin965.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/244208/ft2_4FGL_J1200.2+0201_daily_bin965.fits
.....................!
real 12.00
user 11.66
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244208/ft1_filtered_4FGL_J1200.2+0201_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/244208/ft2_4FGL_J1200.2+0201_daily_bin965.fits sctable="SC_DATA" expcube=/scratch/kocevski/244208/ltcube_489456001_489715201_4FGL_J1200.2+0201_daily_bin965.fits outfile=/scratch/kocevski/244208/expmap_489456001_489715201_4FGL_J1200.2+0201_daily_bin965.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/244208/ltcube_489456001_489715201_4FGL_J1200.2+0201_daily_bin965.fits
.....................!
real 189.53
user 185.22
sys 3.92

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/244208/ft1_filtered_4FGL_J1200.2+0201_daily_bin965.fits scfile=/scratch/kocevski/244208/ft2_4FGL_J1200.2+0201_daily_bin965.fits outfile=/scratch/kocevski/244208/cmap_489456001_489715201_4FGL_J1200.2+0201_daily_bin965.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244208/ft1_filtered_4FGL_J1200.2+0201_daily_bin965.fits scfile=/scratch/kocevski/244208/ft2_4FGL_J1200.2+0201_daily_bin965.fits outfile=/scratch/kocevski/244208/cmap_HighResolution_489456001_489715201_4FGL_J1200.2+0201_daily_bin965.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0921       1.0000         .10000E-03   10000.    
     2 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7406       1.0000         .10000E-03   10000.    
     4 'Prefactor '    60.761       1.0000         .10000E-03   10000.    
     5 'norm      '    6.9327       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .87669E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1384       1.0000         .10000E-03   10000.    
    10 'Prefactor '    55.376       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.084       1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.110       1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.788       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.647       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.114       1.0000         .10000E-03   10000.    
    20 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.1015       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    159.95       1.0000         .10000E-03   10000.    
    25 'norm      '    .11013       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.9617       1.0000         .10000E-03   10000.    
    27 'norm      '    2.1186       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3271       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .94375       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=   5167.556     FROM MIGRAD    STATUS=CONVERGED    799 CALLS     4204 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0930        9.4759        .23095E-05    .64523E-04
   2  norm          .10000E-03    61.187       -.29569E-05** at limit **
   3  Prefactor     3.7407        2.7827        .37681E-07   -.12377E-04
   4  Prefactor     60.761        51.979       -.13177E-05   -.38643E-05
   5  norm          6.9370        8.6120        .57796E-06   -.21794E-03
   6  Prefactor     .10004E-03    3.3559        .91066E-06** at limit **
   7  Prefactor     .10000E-03    10.340       -.86435E-06** at limit **
   8  Prefactor     .10000E-03    72.054       -.17761E-05** at limit **
   9  Prefactor     5.1411        18.376        .47579E-07   -.22215E-04
  10  Prefactor     55.396        68.697       -.27633E-05   -.80437E-04
  11  Prefactor     .10000E-03    12.674        .65765E-06** at limit **
  12  Prefactor     .10000E-03    8.9399        .45415E-06** at limit **
  13  Prefactor     .10000E-03    7.0564        .11835E-06** at limit **
  14  Prefactor     .10000E-03    88.931        .56013E-05** at limit **
  15  Prefactor     34.080        63.195        .10658E-05   -.37068E-04
  16  Prefactor     42.097        62.605        .18226E-05   -.14085E-04
  17  Prefactor     53.795        37.390       -.77375E-06   -.26991E-04
  18  Prefactor     20.644        33.333        .28500E-06   -.77547E-05
  19  Prefactor     30.087        21.141        .18708E-06   -.37482E-04
  20  norm          .10000E-03    2.7860       -.99873E-07** at limit **
  21  norm          3.1028        6.3724       -.28584E-06   -.12546E-03
  22  Prefactor     .10000E-03    26.054        .16058E-05** at limit **
  23  norm          .10000E-03    18.484       -.16978E-05** at limit **
  24  Prefactor     159.89        165.08        .48833E-05   -.45334E-05
  25  norm          .11066        .75261        .12644E-06   -.23171E-03
  26  Prefactor     2.9616        6.0664        .19153E-05    .31528E-04
  27  norm          2.1184        2.1475        .33390E-07   -.79580E-04
  28  Prefactor     .10000E-03    7.5491       -.10093E-06** at limit **
  29  Prefactor     .10000E-03    14.965        .75221E-07** at limit **
  30  Normalizat    1.3269        .27224        .90609E-07   -.14384E-03
  31  Prefactor     .94389        .20215       -.11176E-05   -.14701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.09304
  norm       = 0.0001
  Prefactor  = 3.74068
  Prefactor  = 60.7606
  norm       = 6.937
  Prefactor  = 0.00010004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.14107
  Prefactor  = 55.3957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.0804
  Prefactor  = 42.0969
  Prefactor  = 53.7947
  Prefactor  = 20.6442
  Prefactor  = 30.0866
  norm       = 0.0001
  norm       = 3.10278
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 159.895
  norm       = 0.110658
  Prefactor  = 2.96162
  norm       = 2.11839
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32687
  Prefactor  = 0.943886
 **********
 **   18 **HESSE 
 **********

 FCN=   5167.556     FROM HESSE     STATUS=OK           624 CALLS     4828 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0930        9.4658        .89089E-03   -1.5257    
   2  norm          .10000E-03    61.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7407        2.7830        .99430E-04   -1.5321    
   4  Prefactor     60.761        51.902        .51474E-04   -1.4147    
   5  norm          6.9370        8.4111        .76185E-03   -1.5181    
   6  Prefactor     .10004E-03    24.959        .23567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    72.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1411        18.481        .17736E-03   -1.5254    
  10  Prefactor     55.396        68.288        .53904E-04   -1.4218    
  11  Prefactor     .10000E-03    13.137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.9491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.0646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    88.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     34.080        63.170        .68640E-04   -1.4540    
  16  Prefactor     42.097        62.814        .61775E-04   -1.4409    
  17  Prefactor     53.795        37.401        .54690E-04   -1.4240    
  18  Prefactor     20.644        33.176        .88146E-04   -1.4799    
  19  Prefactor     30.087        20.530        .73012E-04   -1.4610    
  20  norm          .10000E-03    2.8329        .23172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.1028        5.9776        .19333E-03   -1.5356    
  22  Prefactor     .10000E-03    26.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    18.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     159.89        164.83        .15942E-03   -1.3172    
  25  norm          .11066        1.1150        .91643E-03   -1.5641    
  26  Prefactor     2.9616        6.0477        .11798E-02   -1.5364    
  27  norm          2.1184        2.1143        .98761E-04   -1.5417    
  28  Prefactor     .10000E-03    7.5784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    14.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3269        .32190        .29628E-03   -.82768    
  31  Prefactor     .94389        .23608        .27095E-03   -.94624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43772e-08
Minuit parameter uncertainties:
  1  9.46861
  2  2.60298e-06
  3  2.78314
  4  51.9402
  5  8.41251
  6  0.00199595
  7  1.87918e-06
  8  3.68006e-05
  9  18.5017
  10  68.3845
  11  4.33566e-05
  12  9.95661e-07
  13  7.37364e-06
  14  1.75332e-05
  15  63.2947
  16  62.9126
  17  37.4174
  18  33.2054
  19  20.5343
  20  4.06814e-06
  21  5.97872
  22  5.1194e-05
  23  3.20683e-06
  24  165.305
  25  0.702232
  26  6.04892
  27  2.11442
  28  1.21303e-06
  29  2.69333e-07
  30  0.322391
  31  0.236334
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.336e-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.439e-01  2.363e-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.327e+00  3.224e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/244208/likelihoodResults_489456001_489715201_4FGL_J1200.2+0201_daily_bin965.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) = 5167.55595816
delta logL = -0.000363386614481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5167.55559453
delta logL = 2.42626811087e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11458E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0386       1.0000          .0000       10.000    
     3 'Normalizat'    1.3268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94395       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=   5167.556     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      222 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .23182        .90712E-01** at limit **
   2  Index         1.9637        9.0152        .50000        .29402E-04
   3  Normalizat    1.3269        .13110E-02    .66972E-01    .51173E-05
   4  Prefactor     .94389        .10372E-02    .45563E-01    .22104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 1.96368
  Normalizat = 1.32687
  Prefactor  = 0.943887
 **********
 **   18 **HESSE 
 **********

 FCN=   5167.556     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      257 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    56.691        .32867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9637        5.3572        .50000       -.65261    
   3  Normalizat    1.3269        .10682E-01    .29628E-03   -.82768    
   4  Prefactor     .94389        .84556E-02    .27095E-03   -.94624    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0469e-06
Minuit parameter uncertainties:
  1  0.00165718
  2  132.769
  3  0.0106815
  4  0.00845559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244208': 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) = 5167.55559342
delta logL = 1.35874961416e-06

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.657e-03  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.964e+00  1.328e+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:  9.439e-01  8.456e-03  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.327e+00  1.068e-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/244208/cmap_HighResolution_489456001_489715201_4FGL_J1200.2+0201_daily_bin965.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2021-09-04 20:06:40.629076', job_id='244208', GAL2='0.94', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630811200.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.36e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='965' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:06:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 244208: <4FGL_J1200.2+0201_daily_bin965> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin965 180.055 2.0172 489456001 489715201 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 :                                   806.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             253.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            966 sec.

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

