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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin1122
RA = 180.055, Dec = 2.0172
tmin = 530150401, tmax = 530409601
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='245783', job_status='RUN', time_executed='2021-09-04 19:56:09.632581', time_epoch_executed='1630810569.63' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='1122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/245783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/245783/ft1_4FGL_J1200.2+0201_daily_bin1122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/245783/ft2_4FGL_J1200.2+0201_daily_bin1122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/245783/ft1_4FGL_J1200.2+0201_daily_bin1122.fits outfile=/scratch/kocevski/245783/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin1122.fits ra=180.055 dec=2.0172 rad=12.0 tmin=530150401.0 tmax=530409601.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.64
user 3.31
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/245783/ft1_filtered_4FGL_J1200.2+0201_daily_bin1122.fits evtable="EVENTS" scfile=/scratch/kocevski/245783/ft2_4FGL_J1200.2+0201_daily_bin1122.fits sctable="SC_DATA" expcube=/scratch/kocevski/245783/ltcube_530150401_530409601_4FGL_J1200.2+0201_daily_bin1122.fits outfile=/scratch/kocevski/245783/expmap_530150401_530409601_4FGL_J1200.2+0201_daily_bin1122.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/245783/ltcube_530150401_530409601_4FGL_J1200.2+0201_daily_bin1122.fits
.....................!
real 189.70
user 184.97
sys 4.18

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/245783/ft1_filtered_4FGL_J1200.2+0201_daily_bin1122.fits scfile=/scratch/kocevski/245783/ft2_4FGL_J1200.2+0201_daily_bin1122.fits outfile=/scratch/kocevski/245783/cmap_530150401_530409601_4FGL_J1200.2+0201_daily_bin1122.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.55
user 0.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10702E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .14648E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1501       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .96638E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2372       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.299       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .69143E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7964       1.0000         .10000E-03   10000.    
    10 'Prefactor '    58.757       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3813       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.955       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8069       1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.549       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14353E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17689E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39105E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.098       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .59500E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.8353       1.0000         .10000E-03   10000.    
    21 'norm      '    .16023E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.186       1.0000         .10000E-03   10000.    
    23 'norm      '    67.465       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .73813       1.0000         .10000E-03   10000.    
    25 'norm      '    .28529       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.968       1.0000         .10000E-03   10000.    
    27 'norm      '    4.3205       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.6902       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .66432E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .61497       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2203       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5244.462     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     2936 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2977       -.12797E-05** at limit **
   2  norm          .10000E-03    8.2836       -.32017E-05** at limit **
   3  Prefactor     1.1475        2.2549        .71432E-06   -.16671E-04
   4  Prefactor     .10000E-03    15.992        .17879E-05** at limit **
   5  norm          .10000E-03    1.9139        .60153E-06** at limit **
   6  Prefactor     4.2105        3.9407       -.79119E-06   -.21194E-04
   7  Prefactor     23.557        30.490       -.10285E-04    .22668E-02
   8  Prefactor     .11928E-03    48.142       -.27073E-04** at limit **
   9  Prefactor     7.7696        9.8450       -.20801E-04   -.28314E-02
  10  Prefactor     57.892        22.610        .12658E-05   -.43668E-02
  11  Prefactor     1.4341        6.1541        .33565E-06   -.55255E-04
  12  Prefactor     13.875        5.0561        .88473E-06   -.43946E-02
  13  Prefactor     2.8924        15.859        .17679E-06   -.77017E-03
  14  Prefactor     41.418        22.989       -.31110E-05    .36334E-02
  15  Prefactor     .10002E-03    47.294       -.60002E-05** at limit **
  16  Prefactor     .10000E-03    11.861        .91830E-06** at limit **
  17  Prefactor     .10000E-03    18.274        .21350E-06** at limit **
  18  Prefactor     17.148        2.4054        .23229E-06    .21814E-02
  19  Prefactor     .10000E-03    4.3284       -.16113E-05** at limit **
  20  norm          2.8295        2.4473       -.13119E-06   -.10193E-03
  21  norm          .10000E-03    4.8077        .24141E-05** at limit **
  22  Prefactor     24.642        31.794        .17024E-04   -.86404E-03
  23  norm          65.784        48.103       -.10458E-04    .49376E-02
  24  Prefactor     .10381E-03    191.03        .25813E-05** at limit **
  25  norm          .29058        .55578        .37603E-06   -.14782E-03
  26  Prefactor     16.979        9.8910        .38251E-07    .14283E-03
  27  norm          4.3212        1.9508       -.54866E-06   -.14324E-03
  28  Prefactor     9.6216        11.974       -.25099E-05   -.56457E-03
  29  Prefactor     .10000E-03    16.252        .40015E-05** at limit **
  30  Normalizat    .61532        .25135        .27297E-05   -.12491E-04
  31  Prefactor     1.2214        .21062        .13781E-05   -.12252E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.14745
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.21054
  Prefactor  = 23.5572
  Prefactor  = 0.00011928
  Prefactor  = 7.76961
  Prefactor  = 57.8924
  Prefactor  = 1.43408
  Prefactor  = 13.8752
  Prefactor  = 2.89242
  Prefactor  = 41.4183
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.148
  Prefactor  = 0.0001
  norm       = 2.82953
  norm       = 0.0001
  Prefactor  = 24.6419
  norm       = 65.7845
  Prefactor  = 0.000103806
  norm       = 0.290579
  Prefactor  = 16.9791
  norm       = 4.32121
  Prefactor  = 9.62164
  Prefactor  = 0.0001
  Normalizat = 0.615319
  Prefactor  = 1.22139
 **********
 **   18 **HESSE 
 **********

 FCN=   5244.462     FROM HESSE     STATUS=OK           692 CALLS     3628 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2755        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.2778        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1475        2.3031        .10790E-01   -1.5494    
   4  Prefactor     .10000E-03    15.928        .10392E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9132        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.2105        3.9937        .48938E-02   -1.5298    
   7  Prefactor     23.557        31.913        .20315E-02   -1.4737    
   8  Prefactor     .11928E-03    124.22        .93631E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7696        9.9774        .35902E-02   -1.5150    
  10  Prefactor     57.892        52.117        .13085E-02   -1.4185    
  11  Prefactor     1.4341        6.2589        .92576E-02   -1.5468    
  12  Prefactor     13.875        16.792        .26805E-02   -1.4963    
  13  Prefactor     2.8924        18.004        .60701E-02   -1.5368    
  14  Prefactor     41.418        52.721        .15737E-02   -1.4420    
  15  Prefactor     .10002E-03    47.513        .90946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.851        .10168E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.126        .10637E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.148        21.948        .24215E-02   -1.4880    
  19  Prefactor     .10000E-03    4.3227        .10534E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.8295        2.4563        .60376E-02   -1.5372    
  21  norm          .10000E-03    3.0737        .37384E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.642        38.838        .19955E-02   -1.4715    
  23  norm          65.784        59.468        .12216E-02   -1.4084    
  24  Prefactor     .10381E-03    206.46        .12207E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .29058        .60922        .10360E-01   -1.5600    
  26  Prefactor     16.979        9.9066        .24308E-02   -1.4884    
  27  norm          4.3212        1.9650        .48451E-02   -1.5292    
  28  Prefactor     9.6216        12.035        .32183E-02   -1.5087    
  29  Prefactor     .10000E-03    16.239        .10504E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .61532        .23133        .76400E-01   -1.0734    
  31  Prefactor     1.2214        .18694        .34167E-01   -.85676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82459e-07
Minuit parameter uncertainties:
  1  1.22715e-05
  2  3.10048e-06
  3  2.3033
  4  0.000138799
  5  1.01769e-06
  6  3.99394
  7  31.936
  8  0.0980805
  9  9.97957
  10  52.1576
  11  5.99276
  12  16.7976
  13  14.4387
  14  52.7802
  15  0.00198567
  16  4.51112e-06
  17  9.67295e-06
  18  21.9586
  19  1.18052e-05
  20  2.45644
  21  8.1569e-06
  22  38.8774
  23  59.5216
  24  0.0562574
  25  0.609233
  26  9.90752
  27  1.96501
  28  12.0382
  29  0.000101664
  30  0.231698
  31  0.187043
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.434e+00  5.993e+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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.221e+00  1.870e-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:  6.153e-01  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 7.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/245783/likelihoodResults_530150401_530409601_4FGL_J1200.2+0201_daily_bin1122.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) = 5243.42424964
delta logL = 1.03820219676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5243.38849893
delta logL = 1.07395289963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6418       1.0000         .10000E-03   10000.    
     2 'Index     '    .76795       1.0000          .0000       10.000    
     3 'Normalizat'    .60339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2292       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=   5243.388     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6459        3.1661        .62712E-02   -.17592E-03
   2  Index         .76803        .47907        .26956       -.40930E-04
   3  Normalizat    .60299        .21427        .77031E-01    .51956E-04
   4  Prefactor     1.2296        .18388        .33974E-01   -.20668E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.64593
  Index      = 0.768028
  Normalizat = 0.602995
  Prefactor  = 1.22962
 **********
 **   18 **HESSE 
 **********

 FCN=   5243.388     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6459        5.2990        .13331E-03   -1.5383    
   2  Index         .76803        .76391        .12387E-01   -1.0092    
   3  Normalizat    .60299        .24041        .34108E-03   -1.0786    
   4  Prefactor     1.2296        .20687        .21023E-03   -.85425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01328e-09
Minuit parameter uncertainties:
  1  5.29989
  2  0.774802
  3  0.240831
  4  0.207009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/245783': 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): 0
logL (Free Index) = 5243.38849634
delta logL = 1.07395549535

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  2.646e+00  5.300e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  7.680e-01  7.748e-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:  1.230e+00  2.070e-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:  6.030e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.22
Ra Dec: 180.055 2.017
Photon Index (Free Index): 0.77 +/- 0.77
Photon Flux (Free Index): 4.07e-09 +/- 5.12e-09
Energy Flux (Free Index): 9.60e-05 +/- 1.39e-04

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/245783/cmap_HighResolution_530150401_530409601_4FGL_J1200.2+0201_daily_bin1122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', comment='SUCCESS', energy_flux2='9.60e-05', dlogl='1.07e+00', photon_flux2='4.07e-09', job_status='DONE', time_completed='2021-09-04 20:08:16.655110', photon_index_error2='0.77', photon_index2='0.77', ts='0.07', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='7.31e-08', energy_flux_error2='1.39e-04', EG='0.62', time_epoch_completed='1630811296.66', return_code='0', job_id='245783', GAL2='1.23', EG2='0.60', return_code2='0', photon_flux_error2='5.12e-09', ts2='2.22', photon_index='2.11' WHERE bin_id='1122' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:08:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 245783: <4FGL_J1200.2+0201_daily_bin1122> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin1122> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 19:55:47 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:55:50 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:55:50 2021
Terminated at Sat Sep  4 20:08:17 2021
Results reported at Sat Sep  4 20:08:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin1122 180.055 2.0172 530150401 530409601 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 :                                   721.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            750 sec.

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

