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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin718
RA = 180.055, Dec = 2.0172
tmin = 425433601, tmax = 425692801
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='242591', job_status='RUN', time_executed='2021-09-04 19:48:27.002242', time_epoch_executed='1630810107.0' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242591

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

Retrieving the FT1 file...

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

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

Retrieving 38 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242591/ft1_4FGL_J1200.2+0201_daily_bin718.fits


Retrieving the FT1 file...

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

Retrieving 38 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242591/ft2_4FGL_J1200.2+0201_daily_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242591/ft1_4FGL_J1200.2+0201_daily_bin718.fits outfile=/scratch/kocevski/242591/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin718.fits ra=180.055 dec=2.0172 rad=12.0 tmin=425433601.0 tmax=425692801.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.10
user 2.85
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242591/ft1_filtered_4FGL_J1200.2+0201_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/242591/ft2_4FGL_J1200.2+0201_daily_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/242591/ltcube_425433601_425692801_4FGL_J1200.2+0201_daily_bin718.fits outfile=/scratch/kocevski/242591/expmap_425433601_425692801_4FGL_J1200.2+0201_daily_bin718.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/242591/ltcube_425433601_425692801_4FGL_J1200.2+0201_daily_bin718.fits
.....................!
real 192.81
user 185.76
sys 5.32

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/242591/ft1_filtered_4FGL_J1200.2+0201_daily_bin718.fits scfile=/scratch/kocevski/242591/ft2_4FGL_J1200.2+0201_daily_bin718.fits outfile=/scratch/kocevski/242591/cmap_425433601_425692801_4FGL_J1200.2+0201_daily_bin718.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.53
user 0.36
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .84641E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .95569       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.204       1.0000         .10000E-03   10000.    
     5 'norm      '    2.5359       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.836       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.368       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .84270       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10963E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    51.549       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.5595       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.943       1.0000         .10000E-03   10000.    
    20 'norm      '    .10196E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0229       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.8288       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.9327       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3034       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .93627       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=   4932.962     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     4232 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7813        .25241E-07** at limit **
   2  norm          .10064E-03    37.127        .58867E-05** at limit **
   3  Prefactor     .95581        2.5395       -.43540E-07   -.17285E-03
   4  Prefactor     20.304        40.501       -.70428E-05   -.34043E-03
   5  norm          2.5351        3.6902        .92289E-06   -.15435E-02
   6  Prefactor     .10000E-03    2.8360       -.22107E-06** at limit **
   7  Prefactor     .10000E-03    12.203       -.64174E-08** at limit **
   8  Prefactor     .10000E-03    329.01       -.17741E-04** at limit **
   9  Prefactor     .10000E-03    4.3863        .15524E-07** at limit **
  10  Prefactor     34.827        42.462       -.53183E-06    .41477E-04
  11  Prefactor     .10000E-03    13.350        .26390E-06** at limit **
  12  Prefactor     10.360        20.412       -.12545E-05    .57264E-05
  13  Prefactor     .85317        12.590       -.16649E-05    .17412E-03
  14  Prefactor     .10000E-03    133.41       -.22002E-05** at limit **
  15  Prefactor     .10000E-03    29.991        .59107E-07** at limit **
  16  Prefactor     51.498        57.101       -.13711E-04   -.66920E-04
  17  Prefactor     9.5484        32.379        .26076E-05    .54100E-04
  18  Prefactor     .10000E-03    10.354        .43334E-07** at limit **
  19  Prefactor     14.940        18.035       -.28511E-06    .43799E-04
  20  norm          .10000E-03    2.5076       -.29791E-07** at limit **
  21  norm          1.0258        4.8926        .82423E-06   -.57831E-04
  22  Prefactor     .10000E-03    8.9101        .18534E-08** at limit **
  23  norm          .10000E-03    70.398        .24381E-06** at limit **
  24  Prefactor     .10000E-03    39.702       -.21353E-06** at limit **
  25  norm          1.8287        .85842       -.72507E-07    .51170E-04
  26  Prefactor     .10000E-03    3.7328       -.50424E-08** at limit **
  27  norm          .10000E-03    1.1924       -.32270E-07** at limit **
  28  Prefactor     6.9344        12.599       -.41883E-06   -.51777E-05
  29  Prefactor     .10000E-03    13.167        .96523E-07** at limit **
  30  Normalizat    1.3030        .25577        .31806E-05   -.87827E-04
  31  Prefactor     .93640        .18582       -.38563E-06   -.91011E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100642
  Prefactor  = 0.955809
  Prefactor  = 20.3041
  norm       = 2.5351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.8268
  Prefactor  = 0.0001
  Prefactor  = 10.3602
  Prefactor  = 0.853165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.4985
  Prefactor  = 9.54844
  Prefactor  = 0.0001
  Prefactor  = 14.9401
  norm       = 0.0001
  norm       = 1.0258
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.82869
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.93441
  Prefactor  = 0.0001
  Normalizat = 1.30303
  Prefactor  = 0.936397
 **********
 **   18 **HESSE 
 **********

 FCN=   4932.962     FROM HESSE     STATUS=OK           618 CALLS     4850 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7916        .11429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10064E-03    295.15        .72820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .95581        2.4722        .17268E-03   -1.5512    
   4  Prefactor     20.304        37.744        .89107E-04   -1.4806    
   5  norm          2.5351        8.2943        .12823E-02   -1.5390    
   6  Prefactor     .10000E-03    2.8767        .11546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    327.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3898        .14365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.827        42.516        .67896E-04   -1.4527    
  11  Prefactor     .10000E-03    13.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.360        20.454        .12443E-03   -1.5064    
  13  Prefactor     .85317        99.531        .44694E-02   -1.5523    
  14  Prefactor     .10000E-03    133.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    30.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     51.498        56.525        .55859E-04   -1.4271    
  17  Prefactor     9.5484        32.282        .12961E-03   -1.5090    
  18  Prefactor     .10000E-03    10.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.940        17.847        .10361E-03   -1.4935    
  20  norm          .10000E-03    2.5334        .21526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0258        4.7009        .26179E-03   -1.5505    
  22  Prefactor     .10000E-03    8.9107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    70.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    39.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.8287        .82953        .37275E-04   -1.5438    
  26  Prefactor     .10000E-03    3.7366        .13251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.2441        .14948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.9344        12.596        .15237E-03   -1.5181    
  29  Prefactor     .10000E-03    13.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3030        .29696        .27611E-03   -.83476    
  31  Prefactor     .93640        .21665        .25164E-03   -.94881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06314e-08
Minuit parameter uncertainties:
  1  8.03878e-06
  2  0.0276626
  3  2.47244
  4  37.7884
  5  8.29809
  6  1.98721e-06
  7  2.55178e-06
  8  0.000225818
  9  2.4814e-06
  10  42.5526
  11  0.000148911
  12  20.4682
  13  18.4604
  14  1.32443e-06
  15  3.78469e-06
  16  56.5838
  17  32.341
  18  1.70865e-05
  19  17.8529
  20  6.97587e-06
  21  4.39225
  22  7.60056e-07
  23  8.8654e-05
  24  7.49723e-06
  25  0.829539
  26  1.99786e-06
  27  6.49085e-06
  28  12.6009
  29  1.18739e-06
  30  0.297347
  31  0.216847
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.364e-01  2.168e-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.303e+00  2.973e-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: 9.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242591/likelihoodResults_425433601_425692801_4FGL_J1200.2+0201_daily_bin718.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): 0
logL (Free Index) = 4932.96265507
delta logL = -0.000351921164111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4932.96230362
delta logL = -4.79840309708e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1359       1.0000          .0000       10.000    
     3 'Normalizat'    1.3028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93660       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.

 FCN=   4932.962     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    195.19        .90712E-02** at limit **
   2  Index         2.1655        8.7371        .50000       -.18968E-04
   3  Normalizat    1.3030        .22799E-01    .62425E-01   -.15143E-03
   4  Prefactor     .93640        .18052E-01    .45470E-01   -.10918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16548
  Normalizat = 1.30303
  Prefactor  = 0.936396
 **********
 **   18 **HESSE 
 **********

 FCN=   4932.962     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      239 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6259.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1655        5.9631        .50000       -.60274    
   3  Normalizat    1.3030        .12591        .27611E-03   -.83476    
   4  Prefactor     .93640        .99568E-01    .25164E-03   -.94881    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.79539e-08
Minuit parameter uncertainties:
  1  0.00100034
  2  57.0266
  3  0.125938
  4  0.0995877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242591': 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) = 4932.9623029
delta logL = 2.42125679506e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.364e-01  9.959e-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.303e+00  1.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.49e-03', job_status='DONE', photon_flux_upper_limit='9.90e-08', time_completed='2021-09-04 20:01:30.884279', job_id='242591', GAL2='0.94', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630810890.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='718' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:01:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 242591: <4FGL_J1200.2+0201_daily_bin718> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin718 180.055 2.0172 425433601 425692801 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 :                                   780.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             283.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            956 sec.

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

