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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin933
RA = 180.055, Dec = 2.0172
tmin = 481161601, tmax = 481420801
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='244163', job_status='RUN', time_executed='2021-09-04 19:55:01.988881', time_epoch_executed='1630810501.99' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='933'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244163

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244163/ft1_4FGL_J1200.2+0201_daily_bin933.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244163/ft2_4FGL_J1200.2+0201_daily_bin933.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244163/ft1_4FGL_J1200.2+0201_daily_bin933.fits outfile=/scratch/kocevski/244163/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin933.fits ra=180.055 dec=2.0172 rad=12.0 tmin=481161601.0 tmax=481420801.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 2.73
user 2.47
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/244163/ft2_4FGL_J1200.2+0201_daily_bin933.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/244163/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin933.fits evtable="EVENTS" outfile="/scratch/kocevski/244163/ft1_filtered_4FGL_J1200.2+0201_daily_bin933.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.40
user 0.25
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244163/ft1_filtered_4FGL_J1200.2+0201_daily_bin933.fits" evtable="EVENTS" scfile=/scratch/kocevski/244163/ft2_4FGL_J1200.2+0201_daily_bin933.fits sctable="SC_DATA" outfile=/scratch/kocevski/244163/ltcube_481161601_481420801_4FGL_J1200.2+0201_daily_bin933.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/244163/ft2_4FGL_J1200.2+0201_daily_bin933.fits
.....................!
real 8.74
user 8.47
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244163/ft1_filtered_4FGL_J1200.2+0201_daily_bin933.fits evtable="EVENTS" scfile=/scratch/kocevski/244163/ft2_4FGL_J1200.2+0201_daily_bin933.fits sctable="SC_DATA" expcube=/scratch/kocevski/244163/ltcube_481161601_481420801_4FGL_J1200.2+0201_daily_bin933.fits outfile=/scratch/kocevski/244163/expmap_481161601_481420801_4FGL_J1200.2+0201_daily_bin933.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/244163/ltcube_481161601_481420801_4FGL_J1200.2+0201_daily_bin933.fits
.....................!
real 140.34
user 136.96
sys 3.10

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/244163/ft1_filtered_4FGL_J1200.2+0201_daily_bin933.fits scfile=/scratch/kocevski/244163/ft2_4FGL_J1200.2+0201_daily_bin933.fits outfile=/scratch/kocevski/244163/cmap_481161601_481420801_4FGL_J1200.2+0201_daily_bin933.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.45
user 0.31
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244163/ft1_filtered_4FGL_J1200.2+0201_daily_bin933.fits scfile=/scratch/kocevski/244163/ft2_4FGL_J1200.2+0201_daily_bin933.fits outfile=/scratch/kocevski/244163/cmap_HighResolution_481161601_481420801_4FGL_J1200.2+0201_daily_bin933.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.44
user 0.30
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4054       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9522       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7472       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.682       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .64333       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    53.751       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.366       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9094       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.160       1.0000         .10000E-03   10000.    
    20 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.965       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.7312       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.7305       1.0000         .10000E-03   10000.    
    27 'norm      '    3.5107       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.7949       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2755       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .63335       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=   6723.318     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4196 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4055        2.7540       -.42139E-06    .10020E-03
   2  norm          .10000E-03    6.0685        .87809E-07** at limit **
   3  Prefactor     1.9520        1.4154       -.28082E-07   -.12753E-04
   4  Prefactor     .10000E-03    21.405        .16241E-06** at limit **
   5  norm          .10000E-03    1.1814       -.72531E-08** at limit **
   6  Prefactor     4.7486        2.8723        .85733E-07    .10200E-03
   7  Prefactor     11.681        14.194       -.93525E-07    .41791E-05
   8  Prefactor     .10002E-03    306.57        .77384E-05** at limit **
   9  Prefactor     .10000E-03    3.4337       -.31817E-07** at limit **
  10  Prefactor     .10000E-03    10.807       -.10355E-06** at limit **
  11  Prefactor     .10000E-03    1.7957       -.24914E-07** at limit **
  12  Prefactor     .10000E-03    46.359       -.41785E-05** at limit **
  13  Prefactor     .57632        55.428       -.17014E-04    .62656E-04
  14  Prefactor     .10002E-03    60.492        .58977E-05** at limit **
  15  Prefactor     .10000E-03    15.739       -.17232E-07** at limit **
  16  Prefactor     53.750        37.001       -.91272E-07   -.10549E-04
  17  Prefactor     16.370        15.921        .24083E-06    .51180E-04
  18  Prefactor     6.9086        19.013       -.27649E-05    .18374E-03
  19  Prefactor     18.161        11.404       -.78299E-07    .23426E-04
  20  norm          .10000E-03    1.0798       -.48222E-07** at limit **
  21  norm          .10000E-03    2.0225        .25533E-06** at limit **
  22  Prefactor     26.957        31.299       -.37443E-06   -.34864E-05
  23  norm          .10000E-03    14.772       -.14701E-07** at limit **
  24  Prefactor     .10001E-03    114.32       -.57386E-05** at limit **
  25  norm          1.7311        .51763       -.14312E-07    .15960E-03
  26  Prefactor     4.7300        4.9172       -.24789E-07    .19418E-04
  27  norm          3.5105        1.4502       -.19856E-07    .89262E-04
  28  Prefactor     .10000E-03    2.9619       -.33559E-07** at limit **
  29  Prefactor     7.7891        28.994       -.79053E-06   -.69733E-05
  30  Normalizat    1.2757        .18846        .11369E-05    .12110E-03
  31  Prefactor     .63337        .13891        .11400E-06    .19950E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40551
  norm       = 0.0001
  Prefactor  = 1.95197
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.7486
  Prefactor  = 11.6813
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.576321
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 53.7503
  Prefactor  = 16.37
  Prefactor  = 6.90865
  Prefactor  = 18.1609
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.9571
  norm       = 0.0001
  Prefactor  = 0.000100014
  norm       = 1.73109
  Prefactor  = 4.72999
  norm       = 3.5105
  Prefactor  = 0.0001
  Prefactor  = 7.78913
  Normalizat = 1.27571
  Prefactor  = 0.633375
 **********
 **   18 **HESSE 
 **********

 FCN=   6723.318     FROM HESSE     STATUS=OK           622 CALLS     4818 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4055        2.7281        .18426E-03   -1.5471    
   2  norm          .10000E-03    6.0720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9520        1.4187        .80535E-04   -1.5429    
   4  Prefactor     .10000E-03    21.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1843        .87022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.7486        2.8649        .10338E-03   -1.5272    
   7  Prefactor     11.681        14.193        .11721E-03   -1.5024    
   8  Prefactor     .10002E-03    311.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4393        .14838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.7974        .10730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.521        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .57632        56.858        .46080E-02   -1.5556    
  14  Prefactor     .10002E-03    62.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     53.750        37.220        .54709E-04   -1.4240    
  17  Prefactor     16.370        15.920        .99003E-04   -1.4899    
  18  Prefactor     6.9086        19.236        .76315E-03   -1.5182    
  19  Prefactor     18.161        11.348        .93986E-04   -1.4855    
  20  norm          .10000E-03    1.0899        .82766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.0976        .22741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.957        31.297        .77148E-04   -1.4669    
  23  norm          .10000E-03    14.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    116.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.7311        .51617        .30278E-04   -1.5445    
  26  Prefactor     4.7300        4.9165        .18008E-03   -1.5273    
  27  norm          3.5105        1.4493        .61060E-04   -1.5333    
  28  Prefactor     .10000E-03    2.9694        .13781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.7891        28.975        .14362E-03   -1.5150    
  30  Normalizat    1.2757        .21885        .24295E-03   -.84294    
  31  Prefactor     .63337        .16102        .25983E-03   -1.0620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09948e-09
Minuit parameter uncertainties:
  1  2.72836
  2  1.38784e-05
  3  1.4187
  4  5.78397e-05
  5  1.78475e-08
  6  2.86502
  7  14.197
  8  0.00513718
  9  2.46875e-06
  10  1.09656e-05
  11  1.7686e-06
  12  0.000946333
  13  11.459
  14  0.00203951
  15  3.85762e-06
  16  37.2357
  17  15.9239
  18  19.2529
  19  11.349
  20  1.14289e-07
  21  2.37008e-05
  22  31.3163
  23  2.28557e-06
  24  0.00255868
  25  0.516172
  26  4.91689
  27  1.44936
  28  2.6984e-06
  29  29.0276
  30  0.219007
  31  0.161133
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.769e-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:  6.334e-01  1.611e-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.276e+00  2.190e-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: 3.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/244163/likelihoodResults_481161601_481420801_4FGL_J1200.2+0201_daily_bin933.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) = 6723.32068751
delta logL = -0.00253737055118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6723.31814983
delta logL = 3.09644747176e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0920       1.0000          .0000       10.000    
     3 'Normalizat'    1.2757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63339       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=   6723.318     FROM MIGRAD    STATUS=FAILED        86 CALLS      237 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10189E-03    38.501        .10868E-02** at limit **
   2  Index         2.0157        5.2469        .50000        .68318E-04
   3  Normalizat    1.2757        .20614E-01    .24295E-03    .51942E-04
   4  Prefactor     .63337        .16160E-01    .25983E-03    .40822E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6723.318     FROM SIMPLEX   STATUS=PROGRESS     134 CALLS      371 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10080E-03    38.501        .20203E-03** at limit **
   2  Index         2.0150        5.2469        .24286E-03    .68318E-04
   3  Normalizat    1.2757        .20614E-01    .14222E-05    .51942E-04
   4  Prefactor     .63337        .16160E-01    .80234E-06    .40822E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6723.318     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      422 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.869        .21736E-02** at limit **
   2  Index         1.5819        6.3939        .50000       -.71241E-06
   3  Normalizat    1.2757        .21622E-01    .97180E-05    .31282E-03
   4  Prefactor     .63337        .16950E-01    .10393E-04    .28681E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.58188
  Normalizat = 1.27572
  Prefactor  = 0.633374
 **********
 **   18 **HESSE 
 **********

 FCN=   6723.318     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      451 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    209.28        .43472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5819        5.7356        .50000       -.75272    
   3  Normalizat    1.2757        .49717E-01    .19436E-05   -.84294    
   4  Prefactor     .63337        .38969E-01    .20787E-05   -1.0620    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.27844e-08
Minuit parameter uncertainties:
  1  0.000160763
  2  873.496
  3  0.0497191
  4  0.0389707
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244163': 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) = 6723.31814482
delta logL = 5.32241665496e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  6.334e-01  3.897e-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.276e+00  4.972e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/244163/cmap_HighResolution_481161601_481420801_4FGL_J1200.2+0201_daily_bin933.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-03', job_status='DONE', photon_flux_upper_limit='3.74e-08', time_completed='2021-09-04 20:07:07.424725', job_id='244163', GAL2='0.63', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630811227.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='5.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='933' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:07:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 244163: <4FGL_J1200.2+0201_daily_bin933> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin933> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 19:50:32 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:50:34 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:50:34 2021
Terminated at Sat Sep  4 20:07:10 2021
Results reported at Sat Sep  4 20:07:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin933 180.055 2.0172 481161601 481420801 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 :                                   724.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             225.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            998 sec.

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

