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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin319
RA = 180.055, Dec = 2.0172
tmin = 322012801, tmax = 322272001
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='240996', job_status='RUN', time_executed='2021-09-04 19:40:37.788144', time_epoch_executed='1630809637.79' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240996

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240996/ft1_4FGL_J1200.2+0201_daily_bin319.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240996/ft2_4FGL_J1200.2+0201_daily_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240996/ft1_4FGL_J1200.2+0201_daily_bin319.fits outfile=/scratch/kocevski/240996/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin319.fits ra=180.055 dec=2.0172 rad=12.0 tmin=322012801.0 tmax=322272001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.51
user 3.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/240996/ft2_4FGL_J1200.2+0201_daily_bin319.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/240996/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin319.fits evtable="EVENTS" outfile="/scratch/kocevski/240996/ft1_filtered_4FGL_J1200.2+0201_daily_bin319.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.56
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/240996/ft1_filtered_4FGL_J1200.2+0201_daily_bin319.fits" evtable="EVENTS" scfile=/scratch/kocevski/240996/ft2_4FGL_J1200.2+0201_daily_bin319.fits sctable="SC_DATA" outfile=/scratch/kocevski/240996/ltcube_322012801_322272001_4FGL_J1200.2+0201_daily_bin319.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/240996/ft2_4FGL_J1200.2+0201_daily_bin319.fits
.....................!
real 12.65
user 12.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240996/ft1_filtered_4FGL_J1200.2+0201_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/240996/ft2_4FGL_J1200.2+0201_daily_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/240996/ltcube_322012801_322272001_4FGL_J1200.2+0201_daily_bin319.fits outfile=/scratch/kocevski/240996/expmap_322012801_322272001_4FGL_J1200.2+0201_daily_bin319.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/240996/ltcube_322012801_322272001_4FGL_J1200.2+0201_daily_bin319.fits
.....................!
real 190.37
user 185.16
sys 4.83

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    16.064       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9243       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9716       1.0000         .10000E-03   10000.    
     5 'norm      '    13.134       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.327       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10763E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8207       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.379       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0033       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.090       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.786       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17863E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    1.1596       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .54751E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.4781       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.7105       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3317       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .87024       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=   6142.681     FROM MIGRAD    STATUS=CONVERGED    802 CALLS     4162 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0029       -.15861E-05** at limit **
   2  norm          16.062        17.845        .15355E-08    .35305E-04
   3  Prefactor     2.9237        2.4758        .51767E-07    .30336E-03
   4  Prefactor     4.9561        63.252        .18715E-05    .20573E-04
   5  norm          13.132        8.3632       -.17472E-08    .87658E-04
   6  Prefactor     .10000E-03    1.7387       -.55367E-07** at limit **
   7  Prefactor     13.323        23.342       -.21382E-07    .14207E-04
   8  Prefactor     .10000E-03    86.846        .64874E-07** at limit **
   9  Prefactor     .10000E-03    4.3951        .18888E-07** at limit **
  10  Prefactor     .10000E-03    129.91       -.20670E-05** at limit **
  11  Prefactor     .10000E-03    2.3685       -.97313E-08** at limit **
  12  Prefactor     4.8234        15.728        .57990E-06    .13443E-03
  13  Prefactor     26.373        21.692       -.12185E-06    .27075E-04
  14  Prefactor     .10000E-03    89.360       -.52163E-07** at limit **
  15  Prefactor     8.9898        32.673        .11447E-05    .23489E-04
  16  Prefactor     .10000E-03    27.927        .70547E-07** at limit **
  17  Prefactor     33.086        26.704       -.75444E-07   -.42386E-04
  18  Prefactor     .10000E-03    13.872        .38837E-06** at limit **
  19  Prefactor     .10000E-03    3.4625       -.44984E-08** at limit **
  20  norm          .10000E-03    1.0050       -.17139E-07** at limit **
  21  norm          .10000E-03    1.2845        .15765E-05** at limit **
  22  Prefactor     .10000E-03    11.403        .11365E-08** at limit **
  23  norm          10.820        41.376       -.33360E-05    .61264E-04
  24  Prefactor     .10001E-03    194.61        .15906E-05** at limit **
  25  norm          1.1597        .61878        .10950E-06   -.92280E-04
  26  Prefactor     .10001E-03    19.854        .14693E-04** at limit **
  27  norm          4.4785        2.0890        .76887E-08    .28833E-05
  28  Prefactor     .10000E-03    3.3901        .98336E-08** at limit **
  29  Prefactor     4.7102        80.414        .14125E-05    .96458E-06
  30  Normalizat    1.3318        .22220        .62365E-06    .99441E-05
  31  Prefactor     .87038        .17072       -.21600E-06   -.11162E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 16.0622
  Prefactor  = 2.92365
  Prefactor  = 4.95613
  norm       = 13.1319
  Prefactor  = 0.0001
  Prefactor  = 13.3229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 4.82338
  Prefactor  = 26.3726
  Prefactor  = 0.000100001
  Prefactor  = 8.98981
  Prefactor  = 0.0001
  Prefactor  = 33.0857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 10.8195
  Prefactor  = 0.000100006
  norm       = 1.15969
  Prefactor  = 0.000100009
  norm       = 4.47848
  Prefactor  = 0.0001
  Prefactor  = 4.71021
  Normalizat = 1.33182
  Prefactor  = 0.87038
 **********
 **   18 **HESSE 
 **********

 FCN=   6142.681     FROM HESSE     STATUS=OK           622 CALLS     4784 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.062        17.804        .99928E-04   -1.4906    
   3  Prefactor     2.9237        2.4702        .10836E-03   -1.5366    
   4  Prefactor     4.9561        63.038        .18037E-03   -1.5263    
   5  norm          13.132        8.3476        .11053E-03   -1.4983    
   6  Prefactor     .10000E-03    1.7473        .10080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.323        23.338        .10972E-03   -1.4978    
   8  Prefactor     .10000E-03    86.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.4018        .16045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    131.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3712        .11779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.8234        15.755        .18323E-03   -1.5269    
  13  Prefactor     26.373        21.755        .77998E-04   -1.4680    
  14  Prefactor     .10000E-03    89.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.9898        32.760        .13358E-03   -1.5108    
  16  Prefactor     .10000E-03    27.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.086        26.690        .69660E-04   -1.4557    
  18  Prefactor     .10000E-03    13.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4687        .14241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0368        .15334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.4000        .89990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.820        41.416        .12199E-03   -1.5050    
  24  Prefactor     .10001E-03    194.97        .20328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.1597        .61012        .40152E-04   -1.5493    
  26  Prefactor     .10001E-03    20.077        .36893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.4785        2.0858        .73148E-04   -1.5285    
  28  Prefactor     .10000E-03    3.3932        .14092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.7102        80.134        .18541E-03   -1.5274    
  30  Normalizat    1.3318        .26160        .27306E-03   -.82622    
  31  Prefactor     .87038        .19930        .26073E-03   -.97184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92486e-09
Minuit parameter uncertainties:
  1  0.00027816
  2  17.8096
  3  2.47024
  4  35.3968
  5  8.34838
  6  5.22304e-06
  7  23.3541
  8  0.00015676
  9  1.33e-06
  10  0.000970469
  11  1.52521e-06
  12  15.7688
  13  21.7618
  14  0.000593001
  15  32.8255
  16  3.84714e-05
  17  26.6994
  18  4.11056e-05
  19  4.49634e-06
  20  3.2275e-06
  21  0.000118516
  22  1.88911e-05
  23  41.5263
  24  0.00211007
  25  0.610125
  26  0.000833778
  27  2.08579
  28  8.4281e-06
  29  38.917
  30  0.26186
  31  0.199465
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.525e-06  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  8.704e-01  1.995e-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.332e+00  2.619e-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: 4.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/240996/likelihoodResults_322012801_322272001_4FGL_J1200.2+0201_daily_bin319.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) = 6142.68324416
delta logL = -0.001946704685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6142.68129728
delta logL = 1.79848939297e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0942       1.0000          .0000       10.000    
     3 'Normalizat'    1.3318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87039       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=   6142.681     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      241 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9209        .11893E-01** at limit **
   2  Index         1.6272        5.3623        .50000        .10232E-05
   3  Normalizat    1.3317        .10133E-01    .27306E-03   -.19738E-02
   4  Prefactor     .87044        .80602E-02    .26073E-03    .27921E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.62725
  Normalizat = 1.33174
  Prefactor  = 0.870443
 **********
 **   18 **HESSE 
 **********

 FCN=   6142.681     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    353.85        .12872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6272        7.6966        .50000       -.74036    
   3  Normalizat    1.3317        .73458E-01    .54612E-04   -.82624    
   4  Prefactor     .87044        .58382E-01    .52146E-04   -.97182    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.23358e-07
Minuit parameter uncertainties:
  1  4.45695e-05
  2  1703.43
  3  0.0734638
  4  0.0583865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240996': 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) = 6142.6812941
delta logL = 3.36003995471e-06

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.457e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.627e+00  1.703e+03  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.704e-01  5.839e-02  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.332e+00  7.346e-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/240996/cmap_HighResolution_322012801_322272001_4FGL_J1200.2+0201_daily_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-03', job_status='DONE', photon_flux_upper_limit='4.81e-08', time_completed='2021-09-04 19:55:24.268115', job_id='240996', GAL2='0.87', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630810524.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.36e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='319' 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@bullet0220>
Subject: Job 240996: <4FGL_J1200.2+0201_daily_bin319> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin319 180.055 2.0172 322012801 322272001 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 :                                   884.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

