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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin504
RA = 180.187, Dec = 20.1354
tmin = 369964801, tmax = 370224001
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='258588', job_status='RUN', time_executed='2021-09-04 20:35:48.514759', time_epoch_executed='1630812948.51' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258588

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258588/ft1_4FGL_J1200.7+2008_daily_bin504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258588/ft2_4FGL_J1200.7+2008_daily_bin504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258588/ft1_4FGL_J1200.7+2008_daily_bin504.fits outfile=/scratch/kocevski/258588/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin504.fits ra=180.187 dec=20.1354 rad=12.0 tmin=369964801.0 tmax=370224001.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 7.63
user 7.31
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/258588/ft2_4FGL_J1200.7+2008_daily_bin504.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/258588/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin504.fits evtable="EVENTS" outfile="/scratch/kocevski/258588/ft1_filtered_4FGL_J1200.7+2008_daily_bin504.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258588/ft1_filtered_4FGL_J1200.7+2008_daily_bin504.fits" evtable="EVENTS" scfile=/scratch/kocevski/258588/ft2_4FGL_J1200.7+2008_daily_bin504.fits sctable="SC_DATA" outfile=/scratch/kocevski/258588/ltcube_369964801_370224001_4FGL_J1200.7+2008_daily_bin504.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/258588/ft2_4FGL_J1200.7+2008_daily_bin504.fits
.....................!
real 11.38
user 11.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258588/ft1_filtered_4FGL_J1200.7+2008_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/258588/ft2_4FGL_J1200.7+2008_daily_bin504.fits sctable="SC_DATA" expcube=/scratch/kocevski/258588/ltcube_369964801_370224001_4FGL_J1200.7+2008_daily_bin504.fits outfile=/scratch/kocevski/258588/expmap_369964801_370224001_4FGL_J1200.7+2008_daily_bin504.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/258588/ltcube_369964801_370224001_4FGL_J1200.7+2008_daily_bin504.fits
.....................!
real 191.37
user 186.87
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 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/258588/ft1_filtered_4FGL_J1200.7+2008_daily_bin504.fits scfile=/scratch/kocevski/258588/ft2_4FGL_J1200.7+2008_daily_bin504.fits outfile=/scratch/kocevski/258588/cmap_369964801_370224001_4FGL_J1200.7+2008_daily_bin504.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258588/ft1_filtered_4FGL_J1200.7+2008_daily_bin504.fits scfile=/scratch/kocevski/258588/ft2_4FGL_J1200.7+2008_daily_bin504.fits outfile=/scratch/kocevski/258588/cmap_HighResolution_369964801_370224001_4FGL_J1200.7+2008_daily_bin504.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258588/ft1_filtered_4FGL_J1200.7+2008_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/258588/ft2_4FGL_J1200.7+2008_daily_bin504.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258588/Model_4FGL_J1200.7+2008_daily_bin504.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/258588/ft1_filtered_4FGL_J1200.7+2008_daily_bin504.fits.....................!
real 55.68
user 54.43
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/258588/ft1_filtered_4FGL_J1200.7+2008_daily_bin504.fits', '/scratch/kocevski/258588/ft2_4FGL_J1200.7+2008_daily_bin504.fits', expMap='/scratch/kocevski/258588/expmap_369964801_370224001_4FGL_J1200.7+2008_daily_bin504.fits', expCube='/scratch/kocevski/258588/ltcube_369964801_370224001_4FGL_J1200.7+2008_daily_bin504.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/258588/Model_4FGL_J1200.7+2008_daily_bin504.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/258588/ft1_filtered_4FGL_J1200.7+2008_daily_bin504.fits
Spacecraft file(s): /scratch/kocevski/258588/ft2_4FGL_J1200.7+2008_daily_bin504.fits
Exposure map: /scratch/kocevski/258588/expmap_369964801_370224001_4FGL_J1200.7+2008_daily_bin504.fits
Exposure cube: /scratch/kocevski/258588/ltcube_369964801_370224001_4FGL_J1200.7+2008_daily_bin504.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/258588/Model_4FGL_J1200.7+2008_daily_bin504.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) = 5772.43383839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4130       1.0000         .10000E-03   10000.    
     2 'norm      '    7.3169       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.540       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .67022       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3608       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.9037       1.0000         .10000E-03   10000.    
    10 'norm      '    3.1533       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6811       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6476       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.062       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7080       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .82534       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10457E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5827       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0521       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.5570       1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.261       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .78054       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2530       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.

 FCN=   5772.423     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3108 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4128        6.2232        .26141E-06    .79168E-04
   2  norm          7.3164        7.2615       -.88981E-07   -.24199E-05
   3  Prefactor     .10000E-03    9.1865       -.56380E-05** at limit **
   4  Prefactor     .10000E-03    33.043        .17430E-05** at limit **
   5  Prefactor     .10000E-03    11.512       -.87257E-05** at limit **
   6  Prefactor     14.537        17.476        .28701E-06    .39945E-04
   7  Prefactor     .66302        9.3688       -.41447E-05    .42498E-03
   8  Prefactor     2.3606        1.6348       -.26603E-08    .92852E-04
   9  Prefactor     8.9024        12.176        .18039E-06   -.46587E-04
  10  norm          3.1531        1.3783        .19239E-07    .89522E-04
  11  Prefactor     .10000E-03    7.5955        .76021E-06** at limit **
  12  Prefactor     3.6808        4.5572        .13082E-05    .88697E-04
  13  Prefactor     .10000E-03    33.062        .34945E-06** at limit **
  14  Prefactor     1.6468        2.5265       -.29802E-06   -.29005E-03
  15  Prefactor     12.062        4.3897       -.41071E-07    .61607E-04
  16  norm          2.7080        2.2083        .28627E-07    .63106E-04
  17  Prefactor     .10000E-03    .67751       -.46472E-07** at limit **
  18  Prefactor     .82500        1.8039       -.31918E-06   -.10788E-02
  19  Prefactor     .10006E-03    4.6103        .16043E-06** at limit **
  20  norm          1.5825        .40225       -.19204E-07    .18945E-03
  21  norm          1.0507        3.4527       -.14220E-05   -.97925E-03
  22  Prefactor     .10000E-03    10.800        .11996E-04** at limit **
  23  Prefactor     5.5569        6.5785       -.24763E-08   -.55768E-04
  24  Prefactor     26.273        28.354        .82832E-05   -.18319E-03
  25  Normalizat    .78071        .20167        .88649E-07    .30028E-03
  26  Prefactor     1.2528        .20148       -.68803E-06    .31843E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.41277
  norm       = 7.31643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5366
  Prefactor  = 0.663018
  Prefactor  = 2.36058
  Prefactor  = 8.90239
  norm       = 3.15307
  Prefactor  = 0.0001
  Prefactor  = 3.68082
  Prefactor  = 0.0001
  Prefactor  = 1.6468
  Prefactor  = 12.062
  norm       = 2.70801
  Prefactor  = 0.0001
  Prefactor  = 0.825004
  Prefactor  = 0.000100055
  norm       = 1.58248
  norm       = 1.05072
  Prefactor  = 0.000100001
  Prefactor  = 5.5569
  Prefactor  = 26.2729
  Normalizat = 0.78071
  Prefactor  = 1.25281
 **********
 **   18 **HESSE 
 **********

 FCN=   5772.423     FROM HESSE     STATUS=OK           474 CALLS     3582 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4128        6.2256        .15849E-03   -1.5201    
   2  norm          7.3164        7.2617        .14828E-03   -1.5167    
   3  Prefactor     .10000E-03    9.3217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.537        17.505        .10504E-03   -1.4945    
   7  Prefactor     .66302        33.557        .42430E-02   -1.5545    
   8  Prefactor     2.3606        1.6287        .76468E-04   -1.5401    
   9  Prefactor     8.9024        12.170        .13433E-03   -1.5111    
  10  norm          3.1531        1.3777        .55665E-04   -1.5353    
  11  Prefactor     .10000E-03    7.6096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6808        4.4959        .16598E-03   -1.5324    
  13  Prefactor     .10000E-03    33.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6468        2.4880        .13952E-03   -1.5451    
  15  Prefactor     12.062        4.3741        .89649E-04   -1.5013    
  16  norm          2.7080        2.1952        .97045E-04   -1.5379    
  17  Prefactor     .10000E-03    .68058        .61014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .82500        1.6300        .14014E-02   -1.5526    
  19  Prefactor     .10006E-03    4.8139        .51376E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5825        .40282        .22499E-04   -1.5456    
  21  norm          1.0507        3.4255        .24531E-03   -1.5503    
  22  Prefactor     .10000E-03    10.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.5569        6.5608        .17043E-03   -1.5236    
  24  Prefactor     26.273        27.803        .78173E-04   -1.4682    
  25  Normalizat    .78071        .23466        .29497E-03   -1.0079    
  26  Prefactor     1.2528        .23720        .25596E-03   -.84721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83971e-09
Minuit parameter uncertainties:
  1  6.22626
  2  7.26254
  3  3.85211e-05
  4  2.87051e-05
  5  3.08603e-05
  6  17.5107
  7  9.43868
  8  1.62877
  9  12.1739
  10  1.37774
  11  6.28086e-07
  12  4.4963
  13  2.54461e-06
  14  2.48815
  15  4.37419
  16  2.19526
  17  1.16624e-06
  18  1.63008
  19  0.00103126
  20  0.402819
  21  3.42615
  22  0.000219374
  23  6.56162
  24  27.817
  25  0.23496
  26  0.237401
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.681e+00  4.496e+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:  1.253e+00  2.374e-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:  7.807e-01  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.95
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258588/likelihoodResults_369964801_370224001_4FGL_J1200.7+2008_daily_bin504.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) = 5772.34973735
delta logL = 0.0735498773383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5772.34792468
delta logL = 0.0753625451089

Fit tolerance = 1e-08

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

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

 FCN=   5772.348     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      271 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9076        68.985        .59579E-02    .47770E-03
   2  Index         2.8891        3.7023        .22373        .61522E-04
   3  Normalizat    .76673        .50994E-01    .67209E-01    .75576E-05
   4  Prefactor     1.2620        .53532E-01    .57699E-01   -.38369E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.9076
  Index      = 2.88908
  Normalizat = 0.766728
  Prefactor  = 1.26203
 **********
 **   18 **HESSE 
 **********

 FCN=   5772.348     FROM HESSE     STATUS=OK            33 CALLS      304 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9076        4.7538        .13281E-03   -1.5367    
   2  Index         2.8891        1.0934        .76267E-02   -.43585    
   3  Normalizat    .76673        .22294        .29737E-03   -1.0131    
   4  Prefactor     1.2620        .23663        .25514E-03   -.84443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00723e-11
Minuit parameter uncertainties:
  1  4.75439
  2  1.10429
  3  0.223206
  4  0.236832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258588': 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) = 5772.34792379
delta logL = 0.0753634402981

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  2.908e+00  4.754e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.889e+00  1.104e+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:  1.262e+00  2.368e-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:  7.667e-01  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 180.187 20.135
Photon Index (Free Index): 2.89 +/- 1.10
Photon Flux (Free Index): 4.74e-08 +/- 5.47e-08
Energy Flux (Free Index): 1.00e-05 +/- 1.12e-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/258588/cmap_HighResolution_369964801_370224001_4FGL_J1200.7+2008_daily_bin504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', energy_flux2='1.00e-05', dlogl='7.54e-02', photon_flux2='4.74e-08', job_status='DONE', time_completed='2021-09-04 20:48:26.328148', photon_index_error2='1.10', photon_index2='2.89', ts='0.95', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.12e-05', EG='0.78', time_epoch_completed='1630813706.33', return_code='0', job_id='258588', GAL2='1.26', EG2='0.77', return_code2='0', photon_flux_error2='5.47e-08', ts2='1.11', photon_index='2.52' WHERE bin_id='504' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:48:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 258588: <4FGL_J1200.7+2008_daily_bin504> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin504> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:35:29 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:35: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 20:35:31 2021
Terminated at Sat Sep  4 20:48:26 2021
Results reported at Sat Sep  4 20:48:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin504 180.187 20.1354 369964801 370224001 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 :                                   753.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            777 sec.

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

