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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin765
RA = 180.055, Dec = 2.0172
tmin = 437616001, tmax = 437875201
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='242662', job_status='RUN', time_executed='2021-09-04 19:48:27.782962', time_epoch_executed='1630810107.78' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242662

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242662/ft1_4FGL_J1200.2+0201_daily_bin765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242662/ft2_4FGL_J1200.2+0201_daily_bin765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242662/ft1_4FGL_J1200.2+0201_daily_bin765.fits outfile=/scratch/kocevski/242662/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin765.fits ra=180.055 dec=2.0172 rad=12.0 tmin=437616001.0 tmax=437875201.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.59
user 5.33
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242662/ft1_filtered_4FGL_J1200.2+0201_daily_bin765.fits" evtable="EVENTS" scfile=/scratch/kocevski/242662/ft2_4FGL_J1200.2+0201_daily_bin765.fits sctable="SC_DATA" outfile=/scratch/kocevski/242662/ltcube_437616001_437875201_4FGL_J1200.2+0201_daily_bin765.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/242662/ft2_4FGL_J1200.2+0201_daily_bin765.fits
.....................!
real 11.94
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242662/ft1_filtered_4FGL_J1200.2+0201_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/242662/ft2_4FGL_J1200.2+0201_daily_bin765.fits sctable="SC_DATA" expcube=/scratch/kocevski/242662/ltcube_437616001_437875201_4FGL_J1200.2+0201_daily_bin765.fits outfile=/scratch/kocevski/242662/expmap_437616001_437875201_4FGL_J1200.2+0201_daily_bin765.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/242662/ltcube_437616001_437875201_4FGL_J1200.2+0201_daily_bin765.fits
.....................!
real 190.40
user 185.16
sys 4.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/242662/ft1_filtered_4FGL_J1200.2+0201_daily_bin765.fits scfile=/scratch/kocevski/242662/ft2_4FGL_J1200.2+0201_daily_bin765.fits outfile=/scratch/kocevski/242662/cmap_437616001_437875201_4FGL_J1200.2+0201_daily_bin765.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.58
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242662/ft1_filtered_4FGL_J1200.2+0201_daily_bin765.fits scfile=/scratch/kocevski/242662/ft2_4FGL_J1200.2+0201_daily_bin765.fits outfile=/scratch/kocevski/242662/cmap_HighResolution_437616001_437875201_4FGL_J1200.2+0201_daily_bin765.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.58
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2198       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10323E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3553       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1262       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.539       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    71.466       1.0000         .10000E-03   10000.    
    17 'Prefactor '    124.23       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3967       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .89557       1.0000         .10000E-03   10000.    
    21 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.515       1.0000         .10000E-03   10000.    
    23 'norm      '    .10163E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .55966E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    2.3774       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.3135       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1448       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .86728       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=   4434.545     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     4141 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4907       -.11874E-06** at limit **
   2  norm          .10000E-03    31.286        .16457E-04** at limit **
   3  Prefactor     4.2197        3.3553       -.21861E-06   -.97748E-04
   4  Prefactor     .10000E-03    9.2550        .29529E-06** at limit **
   5  norm          .10000E-03    11.542        .14957E-07** at limit **
   6  Prefactor     5.3606        5.2561       -.78002E-06   -.89305E-04
   7  Prefactor     .10000E-03    8.2752       -.11644E-06** at limit **
   8  Prefactor     .10000E-03    82.640        .68635E-05** at limit **
   9  Prefactor     .10000E-03    3.8249       -.34959E-07** at limit **
  10  Prefactor     .10000E-03    25.803       -.12403E-04** at limit **
  11  Prefactor     .10000E-03    5.7728        .18867E-06** at limit **
  12  Prefactor     4.1290        17.825       -.17381E-06   -.62254E-04
  13  Prefactor     25.550        21.969       -.25747E-05    .10938E-03
  14  Prefactor     .10000E-03    35.243        .45822E-05** at limit **
  15  Prefactor     .10000E-03    24.501       -.14752E-04** at limit **
  16  Prefactor     71.381        54.949       -.24398E-04   -.15617E-04
  17  Prefactor     124.22        40.556        .17343E-05    .58548E-04
  18  Prefactor     7.3796        20.071        .15378E-06   -.36934E-04
  19  Prefactor     .10000E-03    3.6468        .11404E-07** at limit **
  20  norm          .89548        2.2859       -.40758E-06   -.82463E-03
  21  norm          .10000E-03    3.0579        .52986E-06** at limit **
  22  Prefactor     34.474        36.873        .11625E-04   -.57866E-05
  23  norm          .10000E-03    31.418        .16587E-04** at limit **
  24  Prefactor     .10000E-03    441.21       -.89136E-05** at limit **
  25  norm          2.3772        .79465        .28222E-07    .54598E-03
  26  Prefactor     .10000E-03    37.108       -.25258E-04** at limit **
  27  norm          8.3109        2.7244       -.15340E-06   -.91446E-04
  28  Prefactor     .10000E-03    5.1739        .58446E-08** at limit **
  29  Prefactor     .10000E-03    22.096        .11559E-04** at limit **
  30  Normalizat    1.1443        .25633        .38038E-05    .46385E-04
  31  Prefactor     .86754        .19819        .44896E-07    .24378E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.21972
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.36056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.12903
  Prefactor  = 25.5502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.3808
  Prefactor  = 124.225
  Prefactor  = 7.37962
  Prefactor  = 0.0001
  norm       = 0.895476
  norm       = 0.000100001
  Prefactor  = 34.4737
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 2.37716
  Prefactor  = 0.000100002
  norm       = 8.31092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14433
  Prefactor  = 0.867541
 **********
 **   18 **HESSE 
 **********

 FCN=   4434.545     FROM HESSE     STATUS=OK           616 CALLS     4757 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5566        .12147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    31.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2197        3.3574        .10334E-03   -1.5297    
   4  Prefactor     .10000E-03    9.2615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.822        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.3606        5.2402        .14397E-03   -1.5245    
   7  Prefactor     .10000E-03    8.2761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    82.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8286        .12719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8009        .15623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1290        17.811        .19844E-03   -1.5302    
  13  Prefactor     25.550        21.986        .79268E-04   -1.4697    
  14  Prefactor     .10000E-03    35.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     71.381        55.167        .47488E-04   -1.4016    
  17  Prefactor     124.22        40.472        .18057E-03   -1.3474    
  18  Prefactor     7.3796        19.967        .14747E-03   -1.5165    
  19  Prefactor     .10000E-03    3.6480        .12419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .89548        1.9612        .15453E-02   -1.5519    
  21  norm          .10000E-03    6.0288        .22063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     34.474        36.844        .68211E-04   -1.4533    
  23  norm          .10000E-03    31.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    442.60        .19043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.3772        .78723        .32238E-04   -1.5400    
  26  Prefactor     .10000E-03    38.221        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.3109        2.7224        .60211E-04   -1.5131    
  28  Prefactor     .10000E-03    5.1855        .14793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    22.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1443        .29666        .29075E-03   -.88341    
  31  Prefactor     .86754        .22884        .26305E-03   -.97285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92564e-10
Minuit parameter uncertainties:
  1  2.01106e-05
  2  0.00010593
  3  3.35759
  4  7.69921e-06
  5  5.55459e-05
  6  5.24068
  7  5.15355e-06
  8  0.000134634
  9  5.95646e-07
  10  4.06827e-05
  11  7.7561e-05
  12  17.1597
  13  21.9934
  14  1.27389e-05
  15  3.98167e-05
  16  55.2069
  17  40.4812
  18  19.985
  19  3.94451e-06
  20  1.96135
  21  0.000132887
  22  36.8686
  23  1.64551e-05
  24  0.00181188
  25  0.787229
  26  0.000571955
  27  2.72242
  28  5.18975e-06
  29  9.97664e-06
  30  0.297098
  31  0.229089
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  7.756e-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:  8.675e-01  2.291e-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.144e+00  2.971e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242662/likelihoodResults_437616001_437875201_4FGL_J1200.2+0201_daily_bin765.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) = 4434.54627089
delta logL = -0.000818313291347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4434.54545258
delta logL = -1.35241862154e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1057       1.0000          .0000       10.000    
     3 'Normalizat'    1.1443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86755       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=   4434.545     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      231 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    81.499        .15633E-02** at limit **
   2  Index         1.9389        8.3992        .10086       -.32802E-07
   3  Normalizat    1.1443        .28023        .29075E-03    .16813E-04
   4  Prefactor     .86754        .22535        .26305E-03    .21134E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.93891
  Normalizat = 1.14433
  Prefactor  = 0.867537
 **********
 **   18 **HESSE 
 **********

 FCN=   4434.545     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8767        .31266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9389        5.0306        .40343E-02   -.65886    
   3  Normalizat    1.1443        .28049        .11630E-04   -.88341    
   4  Prefactor     .86754        .22556        .10522E-04   -.97285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46766e-12
Minuit parameter uncertainties:
  1  1.4976e-06
  2  347.825
  3  0.280854
  4  0.225804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242662': 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) = 4434.54545246
delta logL = 1.09567736217e-07

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.498e-06  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.939e+00  3.478e+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:  8.675e-01  2.258e-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.144e+00  2.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.055 2.017

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', job_status='DONE', photon_flux_upper_limit='8.40e-08', time_completed='2021-09-04 20:00:57.806992', job_id='242662', GAL2='0.87', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630810857.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='765' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:00:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 242662: <4FGL_J1200.2+0201_daily_bin765> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin765> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:45:42 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:45:43 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:45:43 2021
Terminated at Sat Sep  4 20:00:58 2021
Results reported at Sat Sep  4 20:00:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin765 180.055 2.0172 437616001 437875201 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 :                                   744.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            916 sec.

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

