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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin806
RA = 180.055, Dec = 2.0172
tmin = 448243201, tmax = 448502401
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='243980', job_status='RUN', time_executed='2021-09-04 19:52:27.295768', time_epoch_executed='1630810347.3' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/243980

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/243980/ft1_4FGL_J1200.2+0201_daily_bin806.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/243980/ft2_4FGL_J1200.2+0201_daily_bin806.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/243980/ft1_4FGL_J1200.2+0201_daily_bin806.fits outfile=/scratch/kocevski/243980/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin806.fits ra=180.055 dec=2.0172 rad=12.0 tmin=448243201.0 tmax=448502401.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 5.21
user 4.95
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/243980/ft1_filtered_4FGL_J1200.2+0201_daily_bin806.fits" evtable="EVENTS" scfile=/scratch/kocevski/243980/ft2_4FGL_J1200.2+0201_daily_bin806.fits sctable="SC_DATA" outfile=/scratch/kocevski/243980/ltcube_448243201_448502401_4FGL_J1200.2+0201_daily_bin806.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/243980/ft2_4FGL_J1200.2+0201_daily_bin806.fits
.....................!
real 11.76
user 11.45
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/243980/ft1_filtered_4FGL_J1200.2+0201_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/243980/ft2_4FGL_J1200.2+0201_daily_bin806.fits sctable="SC_DATA" expcube=/scratch/kocevski/243980/ltcube_448243201_448502401_4FGL_J1200.2+0201_daily_bin806.fits outfile=/scratch/kocevski/243980/expmap_448243201_448502401_4FGL_J1200.2+0201_daily_bin806.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/243980/ltcube_448243201_448502401_4FGL_J1200.2+0201_daily_bin806.fits
.....................!
real 190.44
user 185.54
sys 4.43

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/243980/ft1_filtered_4FGL_J1200.2+0201_daily_bin806.fits scfile=/scratch/kocevski/243980/ft2_4FGL_J1200.2+0201_daily_bin806.fits outfile=/scratch/kocevski/243980/cmap_448243201_448502401_4FGL_J1200.2+0201_daily_bin806.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/243980/ft1_filtered_4FGL_J1200.2+0201_daily_bin806.fits scfile=/scratch/kocevski/243980/ft2_4FGL_J1200.2+0201_daily_bin806.fits outfile=/scratch/kocevski/243980/cmap_HighResolution_448243201_448502401_4FGL_J1200.2+0201_daily_bin806.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.57
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.223       1.0000         .10000E-03   10000.    
     2 'norm      '    .20658E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6269       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28182E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .88680E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7077       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .25399E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .48789E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10920E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.153       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.802       1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.819       1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.771       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.390       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11377E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15224E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0895       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.5077       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .66454E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .47291E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    62.428       1.0000         .10000E-03   10000.    
    25 'norm      '    1.4914       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.564       1.0000         .10000E-03   10000.    
    27 'norm      '    2.0853       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.7952       1.0000         .10000E-03   10000.    
    29 'Prefactor '    45.103       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .67850       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1189       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=   4462.035     FROM MIGRAD    STATUS=CONVERGED    256 CALLS     3074 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.181        6.8636        .84169E-06   -.21860E-04
   2  norm          .10000E-03    10.833        .25403E-05** at limit **
   3  Prefactor     4.6028        3.5897        .23634E-06    .26637E-04
   4  Prefactor     .10000E-03    50.741        .16696E-04** at limit **
   5  norm          .10000E-03    69.595        .68973E-05** at limit **
   6  Prefactor     2.7038        2.7498       -.40404E-05   -.17813E-03
   7  Prefactor     .10000E-03    11.770       -.13381E-05** at limit **
   8  Prefactor     .10000E-03    122.30       -.44806E-05** at limit **
   9  Prefactor     .10000E-03    7.8779       -.96953E-05** at limit **
  10  Prefactor     .10000E-03    14.877       -.78429E-05** at limit **
  11  Prefactor     13.279        11.879       -.27850E-05   -.13423E-03
  12  Prefactor     .10000E-03    8.4495        .10478E-04** at limit **
  13  Prefactor     37.859        22.240       -.74392E-05    .20543E-02
  14  Prefactor     29.499        99.754       -.50904E-04   -.17502E-03
  15  Prefactor     41.782        15.592        .16781E-05   -.18562E-01
  16  Prefactor     16.805        47.066        .24481E-04    .18163E-02
  17  Prefactor     .10000E-03    11.989        .28508E-05** at limit **
  18  Prefactor     .10000E-03    80.558       -.36562E-04** at limit **
  19  Prefactor     4.0198        13.576       -.50765E-06   -.35900E-07
  20  norm          .10000E-03    1.3674        .95713E-06** at limit **
  21  norm          2.4541        5.6742        .10092E-04   -.61651E-05
  22  Prefactor     .10000E-03    32.791        .44317E-04** at limit **
  23  norm          .10000E-03    19.615        .11166E-04** at limit **
  24  Prefactor     77.814        192.98        .41534E-04   -.95328E-04
  25  norm          1.4926        .87970       -.62173E-06    .56171E-03
  26  Prefactor     11.524        9.9558        .15044E-05    .62843E-04
  27  norm          2.0727        2.0867       -.29990E-06    .15344E-03
  28  Prefactor     7.8540        8.1015        .64898E-06   -.55687E-04
  29  Prefactor     43.748        45.037       -.42962E-06   -.60111E-02
  30  Normalizat    .68569        .29130        .23066E-04   -.32531E-04
  31  Prefactor     1.1159        .21775       -.22180E-04   -.88676E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1808
  norm       = 0.0001
  Prefactor  = 4.6028
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 2.70382
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2793
  Prefactor  = 0.0001
  Prefactor  = 37.859
  Prefactor  = 29.499
  Prefactor  = 41.7821
  Prefactor  = 16.8055
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 4.01984
  norm       = 0.0001
  norm       = 2.45406
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 77.8137
  norm       = 1.49263
  Prefactor  = 11.524
  norm       = 2.07274
  Prefactor  = 7.85402
  Prefactor  = 43.7475
  Normalizat = 0.685689
  Prefactor  = 1.11587
 **********
 **   18 **HESSE 
 **********

 FCN=   4462.035     FROM HESSE     STATUS=OK           692 CALLS     3766 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.181        6.8766        .31329E-02   -1.5070    
   2  norm          .10000E-03    10.840        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6028        3.5983        .46778E-02   -1.5279    
   4  Prefactor     .10000E-03    50.518        .99476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.7268        .67511E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7038        2.7677        .61885E-02   -1.5379    
   7  Prefactor     .10000E-03    11.781        .10729E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    122.01        .92642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.8199        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.890        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.279        11.887        .27611E-02   -1.4979    
  12  Prefactor     .10000E-03    8.4179        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     37.859        22.844        .16297E-02   -1.4477    
  14  Prefactor     29.499        98.206        .16293E-02   -1.4621    
  15  Prefactor     41.782        44.647        .15506E-02   -1.4414    
  16  Prefactor     16.805        47.664        .22739E-02   -1.4888    
  17  Prefactor     .10000E-03    11.966        .10338E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    78.772        .90989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.0198        13.673        .49840E-02   -1.5307    
  20  norm          .10000E-03    1.3644        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.4541        5.7510        .64509E-02   -1.5395    
  22  Prefactor     .10000E-03    32.045        .93913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    19.628        .10592E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     77.814        190.68        .12696E-02   -1.3941    
  25  norm          1.4926        .89551        .86297E-02   -1.5464    
  26  Prefactor     11.524        9.9587        .29452E-02   -1.5029    
  27  norm          2.0727        2.1119        .71482E-02   -1.5420    
  28  Prefactor     7.8540        8.1007        .35905E-02   -1.5147    
  29  Prefactor     43.748        47.149        .14925E-02   -1.4384    
  30  Normalizat    .68569        .26073        .76134E-01   -1.0446    
  31  Prefactor     1.1159        .19402        .36910E-01   -.88961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94613e-06
Minuit parameter uncertainties:
  1  6.87714
  2  8.99913e-06
  3  3.5985
  4  0.000556107
  5  6.72829e-06
  6  2.76781
  7  2.94758e-05
  8  0.00146375
  9  6.84368e-06
  10  2.07198e-05
  11  11.889
  12  3.25144e-05
  13  22.8497
  14  98.7503
  15  44.683
  16  47.7722
  17  1.29446e-05
  18  0.000933243
  19  13.6835
  20  1.3322e-06
  21  5.75232
  22  0.000575231
  23  7.3659e-06
  24  192.21
  25  0.89552
  26  9.96017
  27  2.11197
  28  8.10179
  29  47.1896
  30  0.261199
  31  0.194145
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.328e+01  1.189e+01  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.116e+00  1.941e-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.857e-01  2.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.12
Ra Dec: 180.055 2.017
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 5.00e-08 +/- 4.47e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 2.41e-05

TS (Fixed Index): 2.12
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/243980/likelihoodResults_448243201_448502401_4FGL_J1200.2+0201_daily_bin806.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) = 4461.88128704
delta logL = 0.153988449261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4461.85789442
delta logL = 0.177381070449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0812       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5254       1.0000          .0000       10.000    
     3 'Normalizat'    .65603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1310       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=   4461.858     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      266 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0817        13.894        .14104E-03   -.46494E-03
   2  Index         2.5270        .89983        .46481E-02   -.12026E-03
   3  Normalizat    .65562        .26770        .34415E-03    .31478E-03
   4  Prefactor     1.1313        .21594        .21948E-03    .48775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.08166
  Index      = 2.52702
  Normalizat = 0.655619
  Prefactor  = 1.13131
 **********
 **   18 **HESSE 
 **********

 FCN=   4461.858     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0817        11.826        .56415E-05   -1.5139    
   2  Index         2.5270        .76612        .18592E-03   -.51737    
   3  Normalizat    .65562        .26630        .13766E-04   -1.0567    
   4  Prefactor     1.1313        .21511        .43897E-04   -.88472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97658e-10
Minuit parameter uncertainties:
  1  11.829
  2  0.770149
  3  0.266828
  4  0.215272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/243980': 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) = 4461.85788673
delta logL = 0.177388758854

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  8.082e+00  1.183e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.527e+00  7.701e-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.131e+00  2.153e-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.556e-01  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.48
Ra Dec: 180.055 2.017
Photon Index (Free Index): 2.53 +/- 0.77
Photon Flux (Free Index): 7.31e-08 +/- 6.76e-08
Energy Flux (Free Index): 2.06e-05 +/- 1.79e-05

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/243980/cmap_HighResolution_448243201_448502401_4FGL_J1200.2+0201_daily_bin806.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='5.00e-08', energy_flux2='2.06e-05', photon_flux_error='4.47e-08', dlogl='1.77e-01', energy_flux='2.69e-05', photon_flux2='7.31e-08', job_status='DONE', time_completed='2021-09-04 20:04:12.635745', photon_index_error2='0.77', photon_index2='2.53', ts='2.12', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.79e-05', EG='0.69', time_epoch_completed='1630811052.64', return_code='0', job_id='243980', GAL2='1.13', EG2='0.66', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='6.76e-08', ts2='2.48', photon_index='2.11' WHERE bin_id='806' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:04:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 243980: <4FGL_J1200.2+0201_daily_bin806> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin806> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 19:50:20 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:50:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:50:22 2021
Terminated at Sat Sep  4 20:04:13 2021
Results reported at Sat Sep  4 20:04:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin806 180.055 2.0172 448243201 448502401 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 :                                   701.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            833 sec.

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

