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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin55
RA = 180.187, Dec = 20.1354
tmin = 253584001, tmax = 253843201
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='255916', job_status='RUN', time_executed='2021-09-04 20:29:34.723655', time_epoch_executed='1630812574.72' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255916

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255916/ft1_4FGL_J1200.7+2008_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255916/ft2_4FGL_J1200.7+2008_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255916/ft1_4FGL_J1200.7+2008_daily_bin55.fits outfile=/scratch/kocevski/255916/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin55.fits ra=180.187 dec=20.1354 rad=12.0 tmin=253584001.0 tmax=253843201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.47
user 1.25
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/255916/ft2_4FGL_J1200.7+2008_daily_bin55.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255916/ft2_4FGL_J1200.7+2008_daily_bin55.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/255916/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin55.fits evtable="EVENTS" outfile="/scratch/kocevski/255916/ft1_filtered_4FGL_J1200.7+2008_daily_bin55.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.52
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255916/ft1_filtered_4FGL_J1200.7+2008_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/255916/ft2_4FGL_J1200.7+2008_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/255916/ltcube_253584001_253843201_4FGL_J1200.7+2008_daily_bin55.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/255916/ft2_4FGL_J1200.7+2008_daily_bin55.fits
.....................!
real 12.31
user 11.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255916/ft1_filtered_4FGL_J1200.7+2008_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/255916/ft2_4FGL_J1200.7+2008_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/255916/ltcube_253584001_253843201_4FGL_J1200.7+2008_daily_bin55.fits outfile=/scratch/kocevski/255916/expmap_253584001_253843201_4FGL_J1200.7+2008_daily_bin55.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/255916/ltcube_253584001_253843201_4FGL_J1200.7+2008_daily_bin55.fits
.....................!
real 190.30
user 185.05
sys 4.74

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 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.7+2008 @ 180.187 20.1354

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/255916/ft1_filtered_4FGL_J1200.7+2008_daily_bin55.fits scfile=/scratch/kocevski/255916/ft2_4FGL_J1200.7+2008_daily_bin55.fits outfile=/scratch/kocevski/255916/cmap_253584001_253843201_4FGL_J1200.7+2008_daily_bin55.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.187 yref=20.1354 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.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255916/ft1_filtered_4FGL_J1200.7+2008_daily_bin55.fits scfile=/scratch/kocevski/255916/ft2_4FGL_J1200.7+2008_daily_bin55.fits outfile=/scratch/kocevski/255916/cmap_HighResolution_253584001_253843201_4FGL_J1200.7+2008_daily_bin55.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.187 yref=20.1354 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.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255916/ft1_filtered_4FGL_J1200.7+2008_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/255916/ft2_4FGL_J1200.7+2008_daily_bin55.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255916/Model_4FGL_J1200.7+2008_daily_bin55.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/255916/ft1_filtered_4FGL_J1200.7+2008_daily_bin55.fits.....................!
real 49.94
user 48.02
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/255916/ft1_filtered_4FGL_J1200.7+2008_daily_bin55.fits', '/scratch/kocevski/255916/ft2_4FGL_J1200.7+2008_daily_bin55.fits', expMap='/scratch/kocevski/255916/expmap_253584001_253843201_4FGL_J1200.7+2008_daily_bin55.fits', expCube='/scratch/kocevski/255916/ltcube_253584001_253843201_4FGL_J1200.7+2008_daily_bin55.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/255916/Model_4FGL_J1200.7+2008_daily_bin55.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.7+2008'

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.085e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/255916/ft1_filtered_4FGL_J1200.7+2008_daily_bin55.fits
Spacecraft file(s): /scratch/kocevski/255916/ft2_4FGL_J1200.7+2008_daily_bin55.fits
Exposure map: /scratch/kocevski/255916/expmap_253584001_253843201_4FGL_J1200.7+2008_daily_bin55.fits
Exposure cube: /scratch/kocevski/255916/ltcube_253584001_253843201_4FGL_J1200.7+2008_daily_bin55.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/255916/Model_4FGL_J1200.7+2008_daily_bin55.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) = 5317.11909676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25036E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.347       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2272       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.840       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8029       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .31830E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.6274       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10814E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6043       1.0000         .10000E-03   10000.    
    13 'Prefactor '    60.573       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0886       1.0000         .10000E-03   10000.    
    16 'norm      '    6.6796       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6940       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8535       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .30507       1.0000         .10000E-03   10000.    
    21 'norm      '    5.6979       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.280       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.415       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .94075       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85901       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+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=   5317.116     FROM MIGRAD    STATUS=CONVERGED   1091 CALLS     4050 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.737        .30748E-02** at limit **
   2  norm          .10000E-03    9.5136        .18142E-02** at limit **
   3  Prefactor     .10000E-03    9.5181        .36285E-03** at limit **
   4  Prefactor     25.336        27.943        .79568E-04    .23290E-04
   5  Prefactor     9.2261        12.264        .13194E-03    .32744E-05
   6  Prefactor     .10000E-03    3.9097        .14077E-02** at limit **
   7  Prefactor     18.841        12.353        .46138E-03    .12641E-04
   8  Prefactor     2.8039        1.7789        .74384E-04    .56397E-04
   9  Prefactor     .10000E-03    9.9976        .64422E-01** at limit **
  10  norm          5.6276        1.6574        .48794E-04    .64539E-04
  11  Prefactor     .10000E-03    27.028        .18142E-02** at limit **
  12  Prefactor     1.6029        2.6111        .14591E-03    .99811E-04
  13  Prefactor     60.492        73.593        .25776E-03   -.11026E-04
  14  Prefactor     .10000E-03    2.2207        .15927E-02** at limit **
  15  Prefactor     4.0860        2.9189        .10054E-03    .51108E-03
  16  norm          6.6790        3.3726        .90209E-04    .19282E-04
  17  Prefactor     3.6936        2.2673        .82336E-04    .15741E-04
  18  Prefactor     1.8544        2.4159        .12094E-03   -.38730E-04
  19  Prefactor     .10000E-03    3.1507        .12611E-02** at limit **
  20  norm          .30506        .21125        .27173E-04    .36273E-03
  21  norm          5.6943        5.1995        .15083E-03    .25326E-04
  22  Prefactor     .10000E-03    5.4745        .16632E-02** at limit **
  23  Prefactor     26.273        14.040        .78145E-04    .20513E-04
  24  Prefactor     22.422        24.510        .84603E-04    .24188E-05
  25  Normalizat    .94073        .20716        .24428E-03    .20014E-03
  26  Prefactor     .85902        .20281        .26296E-03   -.22308E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.3365
  Prefactor  = 9.22613
  Prefactor  = 0.0001
  Prefactor  = 18.8408
  Prefactor  = 2.8039
  Prefactor  = 0.0001
  norm       = 5.62757
  Prefactor  = 0.0001
  Prefactor  = 1.60286
  Prefactor  = 60.4924
  Prefactor  = 0.0001
  Prefactor  = 4.08604
  norm       = 6.67901
  Prefactor  = 3.69364
  Prefactor  = 1.85445
  Prefactor  = 0.0001
  norm       = 0.305063
  norm       = 5.69427
  Prefactor  = 0.0001
  Prefactor  = 26.2735
  Prefactor  = 22.4218
  Normalizat = 0.940725
  Prefactor  = 0.85902
 **********
 **   18 **HESSE 
 **********

 FCN=   5317.116     FROM HESSE     STATUS=OK           440 CALLS     4490 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.822        .61496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.5174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.5185        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.336        27.949        .31827E-05   -1.4701    
   5  Prefactor     9.2261        12.264        .52775E-05   -1.5100    
   6  Prefactor     .10000E-03    3.9097        .28154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.841        12.353        .18455E-04   -1.4840    
   8  Prefactor     2.8039        1.7789        .29754E-05   -1.5373    
   9  Prefactor     .10000E-03    9.6428        .66206E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.6276        1.6574        .19518E-05   -1.5233    
  11  Prefactor     .10000E-03    27.047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6029        2.6110        .58364E-05   -1.5455    
  13  Prefactor     60.492        73.589        .10311E-04   -1.4151    
  14  Prefactor     .10000E-03    2.2255        .31853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.0860        2.9184        .40218E-05   -1.5304    
  16  norm          6.6790        3.3725        .36084E-05   -1.5191    
  17  Prefactor     3.6936        2.2673        .32934E-05   -1.5324    
  18  Prefactor     1.8544        2.4156        .48375E-05   -1.5436    
  19  Prefactor     .10000E-03    3.1509        .25223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .30506        .21125        .10869E-05   -1.5598    
  21  norm          5.6943        5.1992        .60332E-05   -1.5231    
  22  Prefactor     .10000E-03    5.4750        .33264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.273        14.040        .31258E-05   -1.4682    
  24  Prefactor     22.422        24.509        .33841E-05   -1.4761    
  25  Normalizat    .94073        .20730        .48856E-04   -.95044    
  26  Prefactor     .85902        .20296        .10519E-04   -.97588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68303e-10
Minuit parameter uncertainties:
  1  0.000223327
  2  1.31632e-05
  3  2.12982e-05
  4  27.963
  5  12.2676
  6  1.07854e-07
  7  12.3543
  8  1.77889
  9  9.10051e-05
  10  1.65742
  11  0.000165866
  12  2.61114
  13  73.7003
  14  4.41998e-05
  15  2.91847
  16  3.3726
  17  2.26737
  18  2.41576
  19  9.28745e-07
  20  0.211251
  21  5.19959
  22  1.62602e-05
  23  14.0413
  24  24.5198
  25  0.207479
  26  0.203136
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.603e+00  2.611e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  8.590e-01  2.031e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  9.407e-01  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.60
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 8.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255916/likelihoodResults_253584001_253843201_4FGL_J1200.7+2008_daily_bin55.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) = 5317.10194738
delta logL = 0.0138478272675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5317.09796601
delta logL = 0.017829189087

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8596       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1741       1.0000          .0000       10.000    
     3 'Normalizat'    .94672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85451       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+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=   5317.098     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      255 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8598        3.0883        .15667E-03   -.94844E-04
   2  Index         2.1745        1.5193        .10020E-01   -.37034E-05
   3  Normalizat    .94666        .19547        .24360E-03    .49470E-04
   4  Prefactor     .85459        .20216        .26357E-03    .11629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85978
  Index      = 2.17448
  Normalizat = 0.946663
  Prefactor  = 0.854591
 **********
 **   18 **HESSE 
 **********

 FCN=   5317.098     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8598        3.0639        .62666E-05   -1.5435    
   2  Index         2.1745        1.5076        .40079E-03   -.60056    
   3  Normalizat    .94666        .19553        .97439E-05   -.94839    
   4  Prefactor     .85459        .20226        .10543E-04   -.97746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00139e-11
Minuit parameter uncertainties:
  1  3.06413
  2  1.54331
  3  0.195675
  4  0.20244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255916': 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) = 5317.0979659
delta logL = 0.0178293037588

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.860e+00  3.064e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.174e+00  1.543e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  8.546e-01  2.024e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  9.467e-01  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
Ra Dec: 180.187 20.135

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/255916/cmap_HighResolution_253584001_253843201_4FGL_J1200.7+2008_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', job_status='DONE', photon_flux_upper_limit='8.95e-08', time_completed='2021-09-04 20:42:04.267473', job_id='255916', GAL2='0.85', fit_tolerance='1e-08', EG2='0.95', EG='0.94', time_epoch_completed='1630813324.27', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.78e-02', ts2='0.64', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='55' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:42:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 255916: <4FGL_J1200.7+2008_daily_bin55> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin55> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:26:09 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:26:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 20:26:11 2021
Terminated at Sat Sep  4 20:42:05 2021
Results reported at Sat Sep  4 20:42:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin55 180.187 20.1354 253584001 253843201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.7+2008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   748.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.03 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.

