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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin661
RA = 180.055, Dec = 2.0172
tmin = 410659201, tmax = 410918401
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='242506', job_status='RUN', time_executed='2021-09-04 19:49:00.775734', time_epoch_executed='1630810140.78' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242506

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242506/ft1_4FGL_J1200.2+0201_daily_bin661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242506/ft2_4FGL_J1200.2+0201_daily_bin661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242506/ft1_4FGL_J1200.2+0201_daily_bin661.fits outfile=/scratch/kocevski/242506/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin661.fits ra=180.055 dec=2.0172 rad=12.0 tmin=410659201.0 tmax=410918401.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 6.96
user 6.71
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/242506/ft2_4FGL_J1200.2+0201_daily_bin661.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/242506/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin661.fits evtable="EVENTS" outfile="/scratch/kocevski/242506/ft1_filtered_4FGL_J1200.2+0201_daily_bin661.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.49
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242506/ft1_filtered_4FGL_J1200.2+0201_daily_bin661.fits" evtable="EVENTS" scfile=/scratch/kocevski/242506/ft2_4FGL_J1200.2+0201_daily_bin661.fits sctable="SC_DATA" outfile=/scratch/kocevski/242506/ltcube_410659201_410918401_4FGL_J1200.2+0201_daily_bin661.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/242506/ft2_4FGL_J1200.2+0201_daily_bin661.fits
.....................!
real 12.08
user 11.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242506/ft1_filtered_4FGL_J1200.2+0201_daily_bin661.fits evtable="EVENTS" scfile=/scratch/kocevski/242506/ft2_4FGL_J1200.2+0201_daily_bin661.fits sctable="SC_DATA" expcube=/scratch/kocevski/242506/ltcube_410659201_410918401_4FGL_J1200.2+0201_daily_bin661.fits outfile=/scratch/kocevski/242506/expmap_410659201_410918401_4FGL_J1200.2+0201_daily_bin661.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/242506/ltcube_410659201_410918401_4FGL_J1200.2+0201_daily_bin661.fits
.....................!
real 191.55
user 186.20
sys 4.97

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/242506/ft1_filtered_4FGL_J1200.2+0201_daily_bin661.fits scfile=/scratch/kocevski/242506/ft2_4FGL_J1200.2+0201_daily_bin661.fits outfile=/scratch/kocevski/242506/cmap_410659201_410918401_4FGL_J1200.2+0201_daily_bin661.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=180.055 yref=2.0172 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242506/ft1_filtered_4FGL_J1200.2+0201_daily_bin661.fits scfile=/scratch/kocevski/242506/ft2_4FGL_J1200.2+0201_daily_bin661.fits outfile=/scratch/kocevski/242506/cmap_HighResolution_410659201_410918401_4FGL_J1200.2+0201_daily_bin661.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.51
user 0.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2603       1.0000         .10000E-03   10000.    
     4 'Prefactor '    51.637       1.0000         .10000E-03   10000.    
     5 'norm      '    .77442E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3846       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18835E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3455       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .40011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.404       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16165E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5394       1.0000         .10000E-03   10000.    
    20 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .28554E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    33.947       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16466E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .18318E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.2091       1.0000         .10000E-03   10000.    
    27 'norm      '    10.041       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.7385       1.0000         .10000E-03   10000.    
    29 'Prefactor '    23.165       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0183       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .93558       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=   4339.762     FROM MIGRAD    STATUS=CONVERGED    844 CALLS     4243 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8027       -.29705E-07** at limit **
   2  norm          .10000E-03    181.65        .13354E-05** at limit **
   3  Prefactor     3.2595        4.1187        .22489E-06   -.90713E-04
   4  Prefactor     51.637        41.933        .35260E-06   -.10948E-03
   5  norm          .10002E-03    82.604       -.21068E-04** at limit **
   6  Prefactor     5.3877        4.7706       -.11519E-06   -.92485E-04
   7  Prefactor     .10000E-03    12.345       -.15665E-06** at limit **
   8  Prefactor     .10006E-03    255.73       -.33923E-05** at limit **
   9  Prefactor     .10000E-03    18.342        .77930E-06** at limit **
  10  Prefactor     .10002E-03    122.68        .24921E-05** at limit **
  11  Prefactor     .10000E-03    3.9103        .18786E-06** at limit **
  12  Prefactor     .10000E-03    42.741        .13936E-05** at limit **
  13  Prefactor     4.3444        12.930        .41228E-06   -.11852E-04
  14  Prefactor     .10001E-03    519.24        .90286E-06** at limit **
  15  Prefactor     22.379        47.994       -.38520E-07   -.99657E-04
  16  Prefactor     .10003E-03    163.60        .67925E-05** at limit **
  17  Prefactor     .10000E-03    7.6830        .13351E-06** at limit **
  18  Prefactor     .10000E-03    12.951        .53828E-06** at limit **
  19  Prefactor     1.5522        24.922        .22784E-05   -.19017E-04
  20  norm          .10000E-03    1.5134        .28555E-06** at limit **
  21  norm          .10000E-03    10.101        .54028E-05** at limit **
  22  Prefactor     .10000E-03    10.534        .14956E-06** at limit **
  23  norm          33.819        45.074       -.23600E-05   -.50249E-03
  24  Prefactor     .10048E-03    841.48       -.12038E-04** at limit **
  25  norm          .10001E-03    .72492       -.16833E-05** at limit **
  26  Prefactor     5.2059        9.1217        .14737E-05   -.84026E-04
  27  norm          10.039        2.6295        .34201E-08   -.22777E-03
  28  Prefactor     9.7387        9.9491       -.20504E-06   -.82266E-04
  29  Prefactor     23.160        29.392       -.64838E-07   -.39450E-05
  30  Normalizat    1.0183        .23831       -.27234E-05   -.41905E-03
  31  Prefactor     .93582        .18765        .67887E-06   -.21424E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 3.25951
  Prefactor  = 51.637
  norm       = 0.000100022
  Prefactor  = 5.38773
  Prefactor  = 0.0001
  Prefactor  = 0.000100057
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.34438
  Prefactor  = 0.000100008
  Prefactor  = 22.3791
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.55225
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 33.8192
  Prefactor  = 0.000100484
  norm       = 0.000100008
  Prefactor  = 5.20594
  norm       = 10.0394
  Prefactor  = 9.73872
  Prefactor  = 23.1598
  Normalizat = 1.01827
  Prefactor  = 0.935816
 **********
 **   18 **HESSE 
 **********

 FCN=   4339.762     FROM HESSE     STATUS=OK           622 CALLS     4865 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8130        .12529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    184.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2595        4.1162        .14143E-03   -1.5347    
   4  Prefactor     51.637        41.729        .55812E-04   -1.4270    
   5  norm          .10002E-03    6.0041        .51354E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.3877        4.7649        .12864E-03   -1.5244    
   7  Prefactor     .10000E-03    12.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10006E-03    258.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    125.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.9209        .12725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3444        12.904        .19323E-03   -1.5291    
  14  Prefactor     .10001E-03    525.30        .21264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.379        48.150        .84623E-04   -1.4761    
  16  Prefactor     .10003E-03    170.10        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.6902        .17837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.5522        28.627        .34368E-03   -1.5459    
  20  norm          .10000E-03    2.3010        .15485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    10.524        .18777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          33.819        45.688        .68777E-04   -1.4544    
  24  Prefactor     .10048E-03    864.87        .20396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10001E-03    6.9098        .67591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.2059        9.1394        .88064E-03   -1.5252    
  27  norm          10.039        2.6328        .51328E-04   -1.5074    
  28  Prefactor     9.7387        9.9359        .12841E-03   -1.5084    
  29  Prefactor     23.160        29.368        .83225E-04   -1.4745    
  30  Normalizat    1.0183        .27735        .28657E-03   -.92421    
  31  Prefactor     .93582        .21712        .23774E-03   -.94901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12237e-09
Minuit parameter uncertainties:
  1  2.27483e-05
  2  0.000852973
  3  4.11653
  4  41.7526
  5  0.00073077
  6  4.76522
  7  9.54882e-05
  8  0.00771424
  9  9.90015e-05
  10  0.0029058
  11  1.34079e-05
  12  0.000456168
  13  12.9124
  14  0.00418023
  15  48.2342
  16  0.00460784
  17  2.8576e-05
  18  0.000159386
  19  13.339
  20  8.19247e-05
  21  0.000136432
  22  2.8621e-05
  23  45.7356
  24  0.0415356
  25  0.000472785
  26  9.1418
  27  2.6328
  28  9.93762
  29  29.3858
  30  0.277747
  31  0.217324
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.341e-05  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.358e-01  2.173e-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.018e+00  2.777e-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: 7.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242506/likelihoodResults_410659201_410918401_4FGL_J1200.2+0201_daily_bin661.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) = 4339.76300901
delta logL = -0.00120627983051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4339.7618026
delta logL = 1.34714355227e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0844       1.0000          .0000       10.000    
     3 'Normalizat'    1.0183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93583       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4339.762     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10103E-03    37.504        .13034E-02** at limit **
   2  Index         2.0365        8.2905        .50000        .42417E-04
   3  Normalizat    1.0183        .18044E-01    .28657E-03   -.15869E-04
   4  Prefactor     .93581        .14499E-01    .23774E-03   -.12194E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101028
  Index      = 2.03646
  Normalizat = 1.01827
  Prefactor  = 0.935813
 **********
 **   18 **HESSE 
 **********

 FCN=   4339.762     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10103E-03    157.37        .26067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0365        7.3367        .50000       -.63442    
   3  Normalizat    1.0183        .38254E-01    .11463E-04   -.92421    
   4  Prefactor     .93581        .30739E-01    .95095E-05   -.94901    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.53173e-08
Minuit parameter uncertainties:
  1  0.0255103
  2  299.675
  3  0.0382553
  4  0.0307394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242506': 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) = 4339.761802
delta logL = 7.28674422135e-07

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.010e-04  2.551e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.036e+00  2.997e+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:  9.358e-01  3.074e-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.018e+00  3.826e-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/242506/cmap_HighResolution_410659201_410918401_4FGL_J1200.2+0201_daily_bin661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='7.01e-08', time_completed='2021-09-04 20:01:21.721898', job_id='242506', GAL2='0.94', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630810881.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='7.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='661' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:01:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 242506: <4FGL_J1200.2+0201_daily_bin661> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin661 180.055 2.0172 410659201 410918401 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 :                                   739.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            954 sec.

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

