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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin678
RA = 180.055, Dec = 2.0172
tmin = 415065601, tmax = 415324801
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='242531', job_status='RUN', time_executed='2021-09-04 19:47:39.830327', time_epoch_executed='1630810059.83' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='678'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242531

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242531/ft1_4FGL_J1200.2+0201_daily_bin678.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242531/ft2_4FGL_J1200.2+0201_daily_bin678.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242531/ft1_4FGL_J1200.2+0201_daily_bin678.fits outfile=/scratch/kocevski/242531/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin678.fits ra=180.055 dec=2.0172 rad=12.0 tmin=415065601.0 tmax=415324801.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.83
user 3.44
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242531/ft1_filtered_4FGL_J1200.2+0201_daily_bin678.fits" evtable="EVENTS" scfile=/scratch/kocevski/242531/ft2_4FGL_J1200.2+0201_daily_bin678.fits sctable="SC_DATA" outfile=/scratch/kocevski/242531/ltcube_415065601_415324801_4FGL_J1200.2+0201_daily_bin678.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/242531/ft2_4FGL_J1200.2+0201_daily_bin678.fits
.....................!
real 11.74
user 11.31
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242531/ft1_filtered_4FGL_J1200.2+0201_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/242531/ft2_4FGL_J1200.2+0201_daily_bin678.fits sctable="SC_DATA" expcube=/scratch/kocevski/242531/ltcube_415065601_415324801_4FGL_J1200.2+0201_daily_bin678.fits outfile=/scratch/kocevski/242531/expmap_415065601_415324801_4FGL_J1200.2+0201_daily_bin678.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/242531/ltcube_415065601_415324801_4FGL_J1200.2+0201_daily_bin678.fits
.....................!
real 190.01
user 184.87
sys 4.58

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/242531/ft1_filtered_4FGL_J1200.2+0201_daily_bin678.fits scfile=/scratch/kocevski/242531/ft2_4FGL_J1200.2+0201_daily_bin678.fits outfile=/scratch/kocevski/242531/cmap_415065601_415324801_4FGL_J1200.2+0201_daily_bin678.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.56
user 0.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    41.819       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.966       1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.635       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 '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10622E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    184.26       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2544.2       1.0000         .10000E-03   10000.    
    17 'Prefactor '    284.36       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-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      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .48961       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=   232.8974     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     6039 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.050        .13941E-06** at limit **
   2  norm          41.820        162.74        .89777E-06   -.21608E-04
   3  Prefactor     21.965        26.447       -.40260E-06   -.16556E-03
   4  Prefactor     45.634        144.36       -.12364E-05   -.31880E-04
   5  norm          .10000E-03    6.6492        .39710E-07** at limit **
   6  Prefactor     .10000E-03    4.2100        .72080E-07** at limit **
   7  Prefactor     .10000E-03    461.55        .31056E-03** at limit **
   8  Prefactor     .10021E-03    8689.0       -.18952E-02** at limit **
   9  Prefactor     .10000E-03    1303.7       -.70071E-03** at limit **
  10  Prefactor     .10000E-03    87.473        .38339E-04** at limit **
  11  Prefactor     .10000E-03    142.33       -.24089E-04** at limit **
  12  Prefactor     .10000E-03    2181.2       -.11497E-02** at limit **
  13  Prefactor     .10000E-03    80.569        .60795E-04** at limit **
  14  Prefactor     .10000E-03    7614.2       -.16349E-02** at limit **
  15  Prefactor     184.26        176.89       -.64866E-06   -.14024E-03
  16  Prefactor     2543.2        2692.1       -.24802E-03    .11694E-04
  17  Prefactor     284.36        233.98       -.18701E-05   -.30969E-04
  18  Prefactor     .10000E-03    1116.0       -.54326E-03** at limit **
  19  Prefactor     .10000E-03    61.670       -.35872E-04** at limit **
  20  norm          .10000E-03    12.891        .22537E-06** at limit **
  21  norm          .10000E-03    109.81       -.49169E-04** at limit **
  22  Prefactor     .10000E-03    1269.7       -.67506E-03** at limit **
  23  norm          .10000E-03    720.10       -.79347E-04** at limit **
  24  Prefactor     .10000E-03    7127.7       -.15479E-02** at limit **
  25  norm          .10000E-03    7.5623        .24795E-06** at limit **
  26  Prefactor     .10000E-03    106.54       -.42519E-04** at limit **
  27  norm          .10000E-03    32.728       -.19939E-06** at limit **
  28  Prefactor     .10000E-03    47.894        .68307E-05** at limit **
  29  Prefactor     .10000E-03    445.70        .33307E-03** at limit **
  30  Normalizat    .10000E-01    .24704        .33214E-06** at limit **
  31  Prefactor     .48960        .33919        .14428E-06   -.11315E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 41.8196
  Prefactor  = 21.9654
  Prefactor  = 45.6339
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100207
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 184.257
  Prefactor  = 2543.16
  Prefactor  = 284.356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.489605
 **********
 **   18 **HESSE 
 **********

 FCN=   232.8974     FROM HESSE     STATUS=OK           590 CALLS     6629 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.055        .51741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          41.820        163.07        .61989E-04   -1.4414    
   3  Prefactor     21.965        26.474        .82797E-04   -1.4770    
   4  Prefactor     45.634        144.45        .59351E-04   -1.4356    
   5  norm          .10000E-03    6.6493        .38471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2112        .30609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    462.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10021E-03    8683.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1303.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    87.476        .13972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    142.35        .17840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2181.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    80.821        .13398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7614.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     184.26        178.86        .29743E-04   -1.2985    
  16  Prefactor     2543.2        2690.7        .45920E-04   -.51366    
  17  Prefactor     284.36        234.05        .12033E-03   -1.2319    
  18  Prefactor     .10000E-03    1116.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    61.679        .11728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    12.899        .53570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    109.81        .15662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1269.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    720.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7127.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    7.6402        .41013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    107.10        .15422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    32.728        .85397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    47.929        .10333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    445.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .24716        .23541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .48960        .34414        .18946E-03   -1.1246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03226e-10
Minuit parameter uncertainties:
  1  1.0369e-06
  2  164.859
  3  26.4877
  4  145.577
  5  1.17791e-06
  6  1.87006e-06
  7  0.000276218
  8  0.192186
  9  0.00191699
  10  3.68509e-05
  11  0.00102477
  12  0.00130541
  13  0.000201051
  14  0.00192327
  15  179.389
  16  2900.38
  17  234.834
  18  0.00138789
  19  7.53143e-05
  20  2.00084e-05
  21  0.000479351
  22  0.000375832
  23  0.000264854
  24  0.000583112
  25  5.79198e-05
  26  0.000220313
  27  2.63596e-05
  28  3.88426e-05
  29  9.75081e-05
  30  2.74377e-07
  31  0.345611
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.025e-03  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:  4.896e-01  3.456e-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.000e-02  2.744e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 2.34e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.77e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242531/likelihoodResults_415065601_415324801_4FGL_J1200.2+0201_daily_bin678.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) = 232.89738758
delta logL = -3.32454170291e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 232.897354579
delta logL = -2.44365566004e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10502E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5470       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48968       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=   232.8974     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      255 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10233E-03    930.51        .14913E-02** at limit **
   2  Index         2.4786        6.2114        .50000        .21486E-05
   3  Normalizat    .10000E-01    .46634E-02    .23541E-02** at limit **
   4  Prefactor     .48961        .37470E-01    .18946E-03    .10824E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102332
  Index      = 2.47858
  Normalizat = 0.01
  Prefactor  = 0.489613
 **********
 **   18 **HESSE 
 **********

 FCN=   232.8974     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10233E-03    6722.2        .29826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4786        6.1729        .50000       -.52855    
   3  Normalizat    .10000E-01    .20255E-01    .47083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .48961        .78098E-01    .37893E-04   -1.1246    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.87648e-09
Minuit parameter uncertainties:
  1  0.191576
  2  1931.64
  3  7.18831e-07
  4  0.0781146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242531': 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) = 232.897354475
delta logL = -1.40259771797e-07

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.023e-04  1.916e-01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.479e+00  1.932e+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:  4.896e-01  7.811e-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.000e-02  7.188e-07  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/242531/cmap_HighResolution_415065601_415324801_4FGL_J1200.2+0201_daily_bin678.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-01', job_status='DONE', photon_flux_upper_limit='2.34e-06', time_completed='2021-09-04 19:53:34.827603', job_id='242531', GAL2='0.49', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630810414.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='-1.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='678' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:53:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 242531: <4FGL_J1200.2+0201_daily_bin678> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin678> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:45:30 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:45:32 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:32 2021
Terminated at Sat Sep  4 19:53:37 2021
Results reported at Sat Sep  4 19:53:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin678 180.055 2.0172 415065601 415324801 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 :                                   354.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             195.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   483 sec.
    Turnaround time :                            487 sec.

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

