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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin575
RA = 180.055, Dec = 2.0172
tmin = 388368001, tmax = 388627201
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='241379', job_status='RUN', time_executed='2021-09-04 19:41:15.720513', time_epoch_executed='1630809675.72' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241379

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241379/ft1_4FGL_J1200.2+0201_daily_bin575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241379/ft2_4FGL_J1200.2+0201_daily_bin575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241379/ft1_4FGL_J1200.2+0201_daily_bin575.fits outfile=/scratch/kocevski/241379/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin575.fits ra=180.055 dec=2.0172 rad=12.0 tmin=388368001.0 tmax=388627201.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 4.52
user 4.26
sys 0.22

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241379/ft1_filtered_4FGL_J1200.2+0201_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/241379/ft2_4FGL_J1200.2+0201_daily_bin575.fits sctable="SC_DATA" expcube=/scratch/kocevski/241379/ltcube_388368001_388627201_4FGL_J1200.2+0201_daily_bin575.fits outfile=/scratch/kocevski/241379/expmap_388368001_388627201_4FGL_J1200.2+0201_daily_bin575.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/241379/ltcube_388368001_388627201_4FGL_J1200.2+0201_daily_bin575.fits
.....................!
real 191.43
user 186.13
sys 4.87

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241379/ft1_filtered_4FGL_J1200.2+0201_daily_bin575.fits scfile=/scratch/kocevski/241379/ft2_4FGL_J1200.2+0201_daily_bin575.fits outfile=/scratch/kocevski/241379/cmap_HighResolution_388368001_388627201_4FGL_J1200.2+0201_daily_bin575.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=180.055 yref=2.0172 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1782       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11215E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.698       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.450       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.326       1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .12097E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.667       1.0000         .10000E-03   10000.    
    23 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    124.88       1.0000         .10000E-03   10000.    
    25 'norm      '    .84211       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.8529       1.0000         .10000E-03   10000.    
    27 'norm      '    4.6589       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0906       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0631       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=   5445.902     FROM MIGRAD    STATUS=CONVERGED    771 CALLS     4104 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8519       -.16481E-06** at limit **
   2  norm          .10000E-03    6.9314       -.48930E-07** at limit **
   3  Prefactor     .10000E-03    .67095       -.14161E-06** at limit **
   4  Prefactor     .10000E-03    12.491       -.33841E-06** at limit **
   5  norm          .10000E-03    2.0516       -.38073E-07** at limit **
   6  Prefactor     .10000E-03    1.6987       -.51617E-07** at limit **
   7  Prefactor     .10000E-03    12.974       -.15830E-06** at limit **
   8  Prefactor     .10000E-03    37.491        .16907E-06** at limit **
   9  Prefactor     8.1765        11.252        .82422E-06   -.14846E-04
  10  Prefactor     .10000E-03    18.512        .10633E-06** at limit **
  11  Prefactor     .10000E-03    2.7603       -.11827E-06** at limit **
  12  Prefactor     .10000E-03    17.909        .98890E-05** at limit **
  13  Prefactor     32.715        23.999        .60814E-06    .89274E-05
  14  Prefactor     32.634        91.965       -.78015E-06   -.34330E-05
  15  Prefactor     .10000E-03    16.668        .13035E-06** at limit **
  16  Prefactor     .10000E-03    17.049       -.15735E-06** at limit **
  17  Prefactor     .10000E-03    22.701       -.20105E-06** at limit **
  18  Prefactor     .10000E-03    22.321       -.23968E-06** at limit **
  19  Prefactor     31.328        16.530        .23899E-06   -.58437E-04
  20  norm          .10000E-03    1.7851       -.44297E-07** at limit **
  21  norm          .10005E-03    2.2058        .63666E-06** at limit **
  22  Prefactor     21.675        37.031        .98340E-06   -.13388E-04
  23  norm          .10000E-03    53.139       -.45483E-06** at limit **
  24  Prefactor     124.86        170.47        .12919E-05   -.17080E-04
  25  norm          .84227        .66716        .21647E-06   -.32998E-03
  26  Prefactor     7.8517        8.1437       -.10917E-06   -.63023E-05
  27  norm          4.6591        2.1827        .66874E-07   -.15126E-03
  28  Prefactor     .10000E-03    4.1050       -.95818E-07** at limit **
  29  Prefactor     .10000E-03    25.860       -.16183E-06** at limit **
  30  Normalizat    1.0898        .24997       -.61850E-05   -.35294E-04
  31  Prefactor     1.0637        .19290        .46825E-05   -.24258E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.17654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 32.7153
  Prefactor  = 32.6338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.3276
  norm       = 0.0001
  norm       = 0.000100048
  Prefactor  = 21.6747
  norm       = 0.0001
  Prefactor  = 124.864
  norm       = 0.842272
  Prefactor  = 7.85169
  norm       = 4.65908
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08979
  Prefactor  = 1.06369
 **********
 **   18 **HESSE 
 **********

 FCN=   5445.902     FROM HESSE     STATUS=OK           610 CALLS     4714 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8590        .98065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.9322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .67348        .59015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.0566        .10322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.7125        .93910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1765        11.232        .14019E-03   -1.5136    
  10  Prefactor     .10000E-03    18.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7655        .11973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     32.715        24.031        .70075E-04   -1.4563    
  14  Prefactor     32.634        91.863        .35171E-03   -1.4565    
  15  Prefactor     .10000E-03    16.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.328        16.389        .71589E-04   -1.4588    
  20  norm          .10000E-03    1.8077        .95743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10005E-03    13.446        .19256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.675        36.998        .86049E-04   -1.4777    
  23  norm          .10000E-03    53.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     124.86        169.47        .36020E-04   -1.3468    
  25  norm          .84227        .62213        .47057E-04   -1.5524    
  26  Prefactor     7.8517        8.1424        .14309E-03   -1.5147    
  27  norm          4.6591        2.1730        .70538E-04   -1.5276    
  28  Prefactor     .10000E-03    4.1155        .14603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    25.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0898        .26759        .29183E-03   -.90080    
  31  Prefactor     1.0637        .20728        .24016E-03   -.90635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88365e-09
Minuit parameter uncertainties:
  1  1.77789e-06
  2  2.09293e-06
  3  6.97946e-07
  4  1.99341e-05
  5  1.04617e-06
  6  2.05697e-06
  7  5.3591e-06
  8  0.000120195
  9  11.2344
  10  6.11275e-06
  11  4.87057e-07
  12  0.000511908
  13  24.0382
  14  92.2645
  15  1.40946e-05
  16  5.50156e-06
  17  2.85259e-05
  18  4.58306e-05
  19  16.3916
  20  6.40693e-06
  21  0.00159968
  22  37.0368
  23  0.000280384
  24  170.138
  25  0.622135
  26  8.14356
  27  2.17302
  28  4.90283e-06
  29  2.3823e-05
  30  0.267927
  31  0.207436
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.871e-07  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.064e+00  2.074e-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.090e+00  2.679e-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: 5.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/241379/likelihoodResults_388368001_388627201_4FGL_J1200.2+0201_daily_bin575.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) = 5445.90409825
delta logL = -0.00168063325418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5445.90241761
delta logL = 8.08449840406e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0987       1.0000          .0000       10.000    
     3 'Normalizat'    1.0897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0637       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5445.902     FROM MIGRAD    STATUS=FAILED        89 CALLS      240 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    558.97        .12031E-02** at limit **
   2  Index         2.0876        5.3270        .50000        .31634E-04
   3  Normalizat    1.0898        .12945        .29184E-03    .46357E-05
   4  Prefactor     1.0637        .10600        .24016E-03    .40238E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5445.902     FROM SIMPLEX   STATUS=UNCHANGED    184 CALLS      424 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    558.97        .24556E-03** at limit **
   2  Index         2.0876        5.3270        .13763E-05    .31634E-04
   3  Normalizat    1.0898        .12945        .90784E-07    .46357E-05
   4  Prefactor     1.0637        .10600        .10077E-06    .40238E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5445.902     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      458 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0837        .24062E-03** at limit **
   2  Index         2.0874        6.0306        .50000        .31621E-04
   3  Normalizat    1.0898        .24977        .11674E-04    .72068E-05
   4  Prefactor     1.0637        .20464        .96063E-05    .68641E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.0874
  Normalizat = 1.08978
  Prefactor  = 1.0637
 **********
 **   18 **HESSE 
 **********

 FCN=   5445.902     FROM HESSE     STATUS=OK            29 CALLS      487 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7992        .48124E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0874        6.0402        .50000       -.62182    
   3  Normalizat    1.0898        .25042        .23347E-05   -.90081    
   4  Prefactor     1.0637        .20518        .19213E-05   -.90635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89607e-09
Minuit parameter uncertainties:
  1  0.000177774
  2  4.07137
  3  0.250688
  4  0.20533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241379': 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) = 5445.90241744
delta logL = 1.72720319824e-07

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.778e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.087e+00  4.071e+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.064e+00  2.053e-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.090e+00  2.507e-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/241379/cmap_HighResolution_388368001_388627201_4FGL_J1200.2+0201_daily_bin575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-03', job_status='DONE', photon_flux_upper_limit='5.28e-08', time_completed='2021-09-04 19:55:23.985780', job_id='241379', GAL2='1.06', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630810523.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='575' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:55:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 241379: <4FGL_J1200.2+0201_daily_bin575> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin575 180.055 2.0172 388368001 388627201 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 :                                   844.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            867 sec.

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

