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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin684
RA = 180.055, Dec = 2.0172
tmin = 416620801, tmax = 416880001
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='242540', job_status='RUN', time_executed='2021-09-04 19:48:41.230834', time_epoch_executed='1630810121.23' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242540

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242540/ft1_4FGL_J1200.2+0201_daily_bin684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242540/ft2_4FGL_J1200.2+0201_daily_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242540/ft1_4FGL_J1200.2+0201_daily_bin684.fits outfile=/scratch/kocevski/242540/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin684.fits ra=180.055 dec=2.0172 rad=12.0 tmin=416620801.0 tmax=416880001.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.21
user 4.94
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242540/ft1_filtered_4FGL_J1200.2+0201_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/242540/ft2_4FGL_J1200.2+0201_daily_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/242540/ltcube_416620801_416880001_4FGL_J1200.2+0201_daily_bin684.fits outfile=/scratch/kocevski/242540/expmap_416620801_416880001_4FGL_J1200.2+0201_daily_bin684.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/242540/ltcube_416620801_416880001_4FGL_J1200.2+0201_daily_bin684.fits
.....................!
real 190.28
user 185.04
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/242540/ft1_filtered_4FGL_J1200.2+0201_daily_bin684.fits scfile=/scratch/kocevski/242540/ft2_4FGL_J1200.2+0201_daily_bin684.fits outfile=/scratch/kocevski/242540/cmap_416620801_416880001_4FGL_J1200.2+0201_daily_bin684.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242540/ft1_filtered_4FGL_J1200.2+0201_daily_bin684.fits scfile=/scratch/kocevski/242540/ft2_4FGL_J1200.2+0201_daily_bin684.fits outfile=/scratch/kocevski/242540/cmap_HighResolution_416620801_416880001_4FGL_J1200.2+0201_daily_bin684.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7278       1.0000         .10000E-03   10000.    
     2 'norm      '    .10428E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8338       1.0000         .10000E-03   10000.    
     4 'Prefactor '    51.876       1.0000         .10000E-03   10000.    
     5 'norm      '    2.1583       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .65288       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.543       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10488       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21526E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10134E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10743E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.371       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.729       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10489E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.203       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .88555E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.175       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .97271E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5224       1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.7344       1.0000         .10000E-03   10000.    
    22 'Prefactor '    58.523       1.0000         .10000E-03   10000.    
    23 'norm      '    23.541       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .18668E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    1.1975       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.3320       1.0000         .10000E-03   10000.    
    27 'norm      '    .26961E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10631E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .52236E-02   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .99484       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .95572       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=   4600.456     FROM MIGRAD    STATUS=CONVERGED    869 CALLS     3636 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6370        9.1480       -.47132E-06   -.48900E-05
   2  norm          .10000E-03    19.224        .23575E-06** at limit **
   3  Prefactor     1.8055        3.9830        .23566E-06   -.41250E-04
   4  Prefactor     53.522        53.456        .57829E-05    .68823E-04
   5  norm          2.2291        6.3548        .27194E-06    .53578E-04
   6  Prefactor     .64028        3.8485       -.24936E-06   -.75259E-04
   7  Prefactor     20.306        24.898        .19350E-05    .15514E-04
   8  Prefactor     .10000E-03    118.95       -.18979E-05** at limit **
   9  Prefactor     .10016E-03    9.2971       -.35282E-05** at limit **
  10  Prefactor     .10000E-03    52.045       -.91197E-05** at limit **
  11  Prefactor     .10000E-03    2.8280       -.11983E-07** at limit **
  12  Prefactor     11.537        20.475        .58043E-06    .48418E-04
  13  Prefactor     19.573        19.972       -.65620E-06    .60910E-04
  14  Prefactor     .10000E-03    75.342        .78856E-06** at limit **
  15  Prefactor     47.230        54.897        .12055E-04    .96299E-04
  16  Prefactor     .10000E-03    34.234       -.28459E-05** at limit **
  17  Prefactor     28.959        24.654        .30066E-06   -.11439E-04
  18  Prefactor     .10000E-03    40.092        .12903E-07** at limit **
  19  Prefactor     1.4689        12.653        .13166E-04    .20500E-04
  20  norm          .10000E-03    1.1823        .65138E-06** at limit **
  21  norm          3.7515        4.4948        .59992E-07   -.99466E-05
  22  Prefactor     56.176        51.958       -.27378E-05   -.15087E-04
  23  norm          23.246        32.539        .37979E-05    .15574E-04
  24  Prefactor     .10000E-03    82.961       -.60647E-05** at limit **
  25  norm          1.1983        .69715       -.44308E-07   -.30660E-03
  26  Prefactor     7.3398        8.8763        .66410E-07   -.29770E-04
  27  norm          .10000E-03    1.2671        .49351E-06** at limit **
  28  Prefactor     .10000E-03    4.0737        .22436E-07** at limit **
  29  Prefactor     .10000E-03    51.100        .22223E-05** at limit **
  30  Normalizat    .99511        .25553       -.33240E-05    .10736E-03
  31  Prefactor     .95670        .18787       -.33652E-07    .13143E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.63705
  norm       = 0.0001
  Prefactor  = 1.80548
  Prefactor  = 53.5216
  norm       = 2.22913
  Prefactor  = 0.640281
  Prefactor  = 20.3056
  Prefactor  = 0.0001
  Prefactor  = 0.000100161
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 11.5368
  Prefactor  = 19.5731
  Prefactor  = 0.0001
  Prefactor  = 47.2295
  Prefactor  = 0.0001
  Prefactor  = 28.9585
  Prefactor  = 0.0001
  Prefactor  = 1.46889
  norm       = 0.0001
  norm       = 3.75146
  Prefactor  = 56.1757
  norm       = 23.2455
  Prefactor  = 0.0001
  norm       = 1.1983
  Prefactor  = 7.33981
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.995107
  Prefactor  = 0.956702
 **********
 **   18 **HESSE 
 **********

 FCN=   4600.456     FROM HESSE     STATUS=OK           628 CALLS     4264 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6370        9.0853        .77349E-03   -1.5193    
   2  norm          .10000E-03    19.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8055        3.9417        .17919E-03   -1.5439    
   4  Prefactor     53.522        53.230        .55684E-04   -1.4243    
   5  norm          2.2291        6.2422        .25613E-03   -1.5409    
   6  Prefactor     .64028        6.5856        .23186E-02   -1.5548    
   7  Prefactor     20.306        24.893        .88369E-04   -1.4806    
   8  Prefactor     .10000E-03    119.11        .19069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10016E-03    34.323        .38255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    52.738        .20754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8300        .11139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.537        20.430        .11880E-03   -1.5029    
  13  Prefactor     19.573        19.906        .90174E-04   -1.4823    
  14  Prefactor     .10000E-03    75.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     47.230        55.144        .28584E-03   -1.4332    
  16  Prefactor     .10000E-03    34.290        .20840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.959        24.653        .74174E-04   -1.4631    
  18  Prefactor     .10000E-03    40.412        .20781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4689        12.827        .17311E-02   -1.5466    
  20  norm          .10000E-03    1.2004        .72120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.7515        4.4687        .13751E-03   -1.5321    
  22  Prefactor     56.176        51.958        .52443E-04   -1.4208    
  23  norm          23.246        32.528        .82557E-04   -1.4743    
  24  Prefactor     .10000E-03    82.907        .18232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.1983        .68763        .38405E-04   -1.5489    
  26  Prefactor     7.3398        8.8691        .14812E-03   -1.5166    
  27  norm          .10000E-03    3.1720        .14680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.0762        .13370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    51.369        .19141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .99511        .28766        .29007E-03   -.93195    
  31  Prefactor     .95670        .21357        .23720E-03   -.94187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32253e-08
Minuit parameter uncertainties:
  1  9.0872
  2  9.75018e-06
  3  3.94225
  4  53.2768
  5  6.24407
  6  4.10714
  7  24.906
  8  0.000134225
  9  0.0047035
  10  0.000923921
  11  1.59353e-06
  12  20.4419
  13  19.9126
  14  8.82471e-05
  15  55.2036
  16  6.67841e-06
  17  24.6613
  18  9.15779e-05
  19  8.68353
  20  4.76637e-06
  21  4.46907
  22  51.9996
  23  32.5532
  24  5.8652e-05
  25  0.687638
  26  8.87071
  27  3.48821e-05
  28  1.23872e-06
  29  5.83842e-05
  30  0.288105
  31  0.213756
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.594e-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:  9.567e-01  2.138e-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:  9.951e-01  2.881e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242540/likelihoodResults_416620801_416880001_4FGL_J1200.2+0201_daily_bin684.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) = 4600.45808804
delta logL = -0.0016559407668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4600.4564318
delta logL = 2.98610757454e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0885       1.0000          .0000       10.000    
     3 'Normalizat'    .99514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95668       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=   4600.456     FROM MIGRAD    STATUS=FAILED        87 CALLS      235 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10610E-03    8.7960        .11336E-01** at limit **
   2  Index         1.7664        6.9574        .50000        .22659E-04
   3  Normalizat    .99510        .92131E-02    .29007E-03   -.32491E-04
   4  Prefactor     .95670        .74411E-02    .23720E-03    .55261E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4600.456     FROM SIMPLEX   STATUS=PROGRESS     101 CALLS      336 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10302E-03    8.7960        .21843E-03** at limit **
   2  Index         1.7595        6.9574        .25099E-02    .22659E-04
   3  Normalizat    .99509        .92131E-02    .84444E-05   -.32491E-04
   4  Prefactor     .95668        .74411E-02    .89495E-05    .55261E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4600.456     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      389 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    193.24        .12451E-02** at limit **
   2  Index         1.5652        5.5998        .50000       -.49487E-06
   3  Normalizat    .99511        .44968E-01    .11603E-04    .45464E-04
   4  Prefactor     .95670        .36318E-01    .94881E-05    .22526E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.56524
  Normalizat = 0.995107
  Prefactor  = 0.956701
 **********
 **   18 **HESSE 
 **********

 FCN=   4600.456     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      416 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    670.75        .24902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5652        6.6469        .50000       -.75729    
   3  Normalizat    .99511        .11672        .23205E-05   -.93195    
   4  Prefactor     .95670        .94177E-01    .18976E-05   -.94187    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.95617e-08
Minuit parameter uncertainties:
  1  0.000133234
  2  1766.47
  3  0.116747
  4  0.0941932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242540': 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) = 4600.45642801
delta logL = 4.09567201132e-06

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.332e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.565e+00  1.766e+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:  9.567e-01  9.419e-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:  9.951e-01  1.167e-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/242540/cmap_HighResolution_416620801_416880001_4FGL_J1200.2+0201_daily_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-03', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2021-09-04 20:00:58.906507', job_id='242540', GAL2='0.96', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630810858.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='684' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:00:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 242540: <4FGL_J1200.2+0201_daily_bin684> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin684 180.055 2.0172 416620801 416880001 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 :                                   733.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            928 sec.

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

