/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 197 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.2+0201_daily_bin73
RA = 180.055, Dec = 2.0172
tmin = 258249601, tmax = 258508801
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='239614', job_status='RUN', time_executed='2021-09-04 19:39:07.294698', time_epoch_executed='1630809547.29' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/239614

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/239614/ft1_4FGL_J1200.2+0201_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/239614/ft2_4FGL_J1200.2+0201_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/239614/ft1_4FGL_J1200.2+0201_daily_bin73.fits outfile=/scratch/kocevski/239614/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin73.fits ra=180.055 dec=2.0172 rad=12.0 tmin=258249601.0 tmax=258508801.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 1.19
user 0.99
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/239614/ft1_filtered_4FGL_J1200.2+0201_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/239614/ft2_4FGL_J1200.2+0201_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/239614/ltcube_258249601_258508801_4FGL_J1200.2+0201_daily_bin73.fits outfile=/scratch/kocevski/239614/expmap_258249601_258508801_4FGL_J1200.2+0201_daily_bin73.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/239614/ltcube_258249601_258508801_4FGL_J1200.2+0201_daily_bin73.fits
.....................!
real 189.94
user 184.85
sys 4.69

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/239614/ft1_filtered_4FGL_J1200.2+0201_daily_bin73.fits scfile=/scratch/kocevski/239614/ft2_4FGL_J1200.2+0201_daily_bin73.fits outfile=/scratch/kocevski/239614/cmap_258249601_258508801_4FGL_J1200.2+0201_daily_bin73.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/239614/ft1_filtered_4FGL_J1200.2+0201_daily_bin73.fits scfile=/scratch/kocevski/239614/ft2_4FGL_J1200.2+0201_daily_bin73.fits outfile=/scratch/kocevski/239614/cmap_HighResolution_258249601_258508801_4FGL_J1200.2+0201_daily_bin73.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3495       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6228       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1583       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-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 '    12.663       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1441       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4704       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .18988E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    245.17       1.0000         .10000E-03   10000.    
    25 'norm      '    4.3752       1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.243       1.0000         .10000E-03   10000.    
    27 'norm      '    1.0885       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.441       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3554       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .66763       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=   4335.534     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     4188 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3491        6.1796        .56314E-07   -.88104E-04
   2  norm          .10000E-03    15.797       -.15288E-05** at limit **
   3  Prefactor     1.6229        2.2440        .76140E-07   -.10095E-03
   4  Prefactor     .10000E-03    20.104        .42991E-05** at limit **
   5  norm          .10000E-03    3.8994        .72852E-08** at limit **
   6  Prefactor     6.1580        5.1935       -.35095E-06   -.37018E-03
   7  Prefactor     .10000E-03    7.2774       -.52422E-06** at limit **
   8  Prefactor     .10000E-03    61.920        .32041E-05** at limit **
   9  Prefactor     .10000E-03    6.5409        .20460E-06** at limit **
  10  Prefactor     .10000E-03    17.020       -.26535E-05** at limit **
  11  Prefactor     .10000E-03    2.9318       -.26998E-08** at limit **
  12  Prefactor     .10000E-03    8.8514       -.67846E-06** at limit **
  13  Prefactor     12.661        14.477       -.81351E-07   -.46552E-04
  14  Prefactor     .10000E-03    153.53       -.38552E-05** at limit **
  15  Prefactor     .10000E-03    14.223        .38555E-05** at limit **
  16  Prefactor     .10000E-03    17.388       -.23636E-05** at limit **
  17  Prefactor     4.1433        16.150        .35687E-05   -.40423E-03
  18  Prefactor     2.5027        63.412        .10795E-04   -.20168E-03
  19  Prefactor     .10000E-03    7.5430        .15680E-05** at limit **
  20  norm          .10000E-03    1.5809       -.55222E-07** at limit **
  21  norm          .10000E-03    2.5806       -.10478E-05** at limit **
  22  Prefactor     .10000E-03    28.009       -.44251E-05** at limit **
  23  norm          .10000E-03    20.182        .44334E-05** at limit **
  24  Prefactor     245.18        245.30        .21729E-05    .74719E-04
  25  norm          4.3756        .96062       -.10192E-08    .13985E-02
  26  Prefactor     19.242        13.916       -.46542E-07    .68068E-05
  27  norm          1.0888        1.7837        .91398E-07   -.85813E-05
  28  Prefactor     10.440        12.474        .52055E-06   -.25129E-03
  29  Prefactor     .10000E-03    16.801       -.27256E-05** at limit **
  30  Normalizat    1.3554        .24616       -.33419E-06    .12686E-03
  31  Prefactor     .66765        .19374       -.29174E-06    .69352E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.34907
  norm       = 0.0001
  Prefactor  = 1.62287
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 6.15797
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6613
  Prefactor  = 0.000100003
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 4.1433
  Prefactor  = 2.50267
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100004
  norm       = 0.000100004
  Prefactor  = 245.185
  norm       = 4.37559
  Prefactor  = 19.2424
  norm       = 1.08878
  Prefactor  = 10.4403
  Prefactor  = 0.000100002
  Normalizat = 1.35536
  Prefactor  = 0.667649
 **********
 **   18 **HESSE 
 **********

 FCN=   4335.534     FROM HESSE     STATUS=OK           612 CALLS     4800 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3491        6.1827        .13498E-03   -1.5130    
   2  norm          .10000E-03    15.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6229        2.2212        .11144E-03   -1.5453    
   4  Prefactor     .10000E-03    20.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.9101        .12690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1580        5.2174        .13128E-03   -1.5212    
   7  Prefactor     .10000E-03    7.2840        .17356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    62.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.5705        .16447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.9356        .11011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.8697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.661        14.478        .11257E-03   -1.4996    
  14  Prefactor     .10000E-03    154.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.1433        18.235        .99002E-03   -1.5301    
  18  Prefactor     2.5027        80.884        .13008E-02   -1.5392    
  19  Prefactor     .10000E-03    7.6192        .17715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.6035        .80791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.2280        .19342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    20.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     245.18        244.60        .12933E-03   -1.2563    
  25  norm          4.3756        .94939        .27943E-04   -1.5290    
  26  Prefactor     19.242        13.910        .91303E-04   -1.4830    
  27  norm          1.0888        1.7364        .10704E-03   -1.5499    
  28  Prefactor     10.440        12.548        .62000E-03   -1.5062    
  29  Prefactor     .10000E-03    16.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3554        .29171        .25728E-03   -.81929    
  31  Prefactor     .66765        .22857        .28064E-03   -1.0481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55858e-09
Minuit parameter uncertainties:
  1  6.18315
  2  0.000175358
  3  2.22133
  4  0.00056463
  5  7.99642e-06
  6  5.21783
  7  4.09331e-05
  8  0.0007272
  9  1.4417e-05
  10  0.000310382
  11  1.87886e-08
  12  5.85984e-05
  13  14.4822
  14  0.00138594
  15  0.000428632
  16  0.000284229
  17  17.3929
  18  28.4969
  19  0.00012452
  20  2.64576e-06
  21  0.000208201
  22  0.000700899
  23  0.000585009
  24  245.629
  25  0.949395
  26  13.9121
  27  1.73651
  28  12.5514
  29  0.00032447
  30  0.292064
  31  0.228887
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.879e-08  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.676e-01  2.289e-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.355e+00  2.921e-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/239614/likelihoodResults_258249601_258508801_4FGL_J1200.2+0201_daily_bin73.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) = 4335.53509184
delta logL = -0.00154736774766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4335.53354422
delta logL = 2.49216100201e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0866       1.0000          .0000       10.000    
     3 'Normalizat'    1.3555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66757       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=   4335.534     FROM MIGRAD    STATUS=FAILED        89 CALLS      245 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10196E-03    47.048        .11252E-02** at limit **
   2  Index         2.0165        5.5062        .50000        .53804E-04
   3  Normalizat    1.3554        .23764E-01    .25728E-03    .27573E-04
   4  Prefactor     .66765        .18954E-01    .28064E-03    .29451E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4335.534     FROM SIMPLEX   STATUS=UNCHANGED    133 CALLS      378 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10196E-03    47.048        .31695E-03** at limit **
   2  Index         2.0165        5.5062        .28042E-03    .53804E-04
   3  Normalizat    1.3554        .23764E-01    .18465E-05    .27573E-04
   4  Prefactor     .66765        .18954E-01    .14434E-05    .29451E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4335.534     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      424 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.554        .22503E-02** at limit **
   2  Index         1.5721        5.1821        .50000        .25373E-06
   3  Normalizat    1.3554        .24038E-01    .10291E-04   -.45270E-03
   4  Prefactor     .66765        .19172E-01    .11225E-04   -.41462E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.57214
  Normalizat = 1.35536
  Prefactor  = 0.667649
 **********
 **   18 **HESSE 
 **********

 FCN=   4335.534     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      453 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    260.69        .45006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5721        7.8729        .50000       -.75539    
   3  Normalizat    1.3554        .54390E-01    .20583E-05   -.81929    
   4  Prefactor     .66765        .43363E-01    .22451E-05   -1.0481    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.80546e-10
Minuit parameter uncertainties:
  1  0.000598485
  2  788.052
  3  0.0543928
  4  0.0433651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/239614': 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) = 4335.5335403
delta logL = 4.17092633143e-06

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.985e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.572e+00  7.881e+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.676e-01  4.337e-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.355e+00  5.439e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.055 2.017

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/239614/cmap_HighResolution_258249601_258508801_4FGL_J1200.2+0201_daily_bin73.png

Cleaning up...

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

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 19:51:18.110908', job_id='239614', GAL2='0.67', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630810278.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='4.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='73' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:51:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 239614: <4FGL_J1200.2+0201_daily_bin73> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin73> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:35:39 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:35:40 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:35:40 2021
Terminated at Sat Sep  4 19:51:18 2021
Results reported at Sat Sep  4 19:51:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin73 180.055 2.0172 258249601 258508801 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 :                                   731.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            939 sec.

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

