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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin6
RA = 180.173, Dec = 12.4922
tmin = 240883201, tmax = 241142401
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='247653', job_status='RUN', time_executed='2021-09-04 20:02:56.414022', time_epoch_executed='1630810976.41' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/247653

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/247653/ft1_4FGL_J1200.6+1229_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/247653/ft2_4FGL_J1200.6+1229_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/247653/ft1_4FGL_J1200.6+1229_daily_bin6.fits outfile=/scratch/kocevski/247653/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin6.fits ra=180.173 dec=12.4922 rad=12.0 tmin=240883201.0 tmax=241142401.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.53
user 1.32
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/247653/ft2_4FGL_J1200.6+1229_daily_bin6.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/247653/ft2_4FGL_J1200.6+1229_daily_bin6.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/247653/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin6.fits evtable="EVENTS" outfile="/scratch/kocevski/247653/ft1_filtered_4FGL_J1200.6+1229_daily_bin6.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/247653/ft1_filtered_4FGL_J1200.6+1229_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/247653/ft2_4FGL_J1200.6+1229_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/247653/ltcube_240883201_241142401_4FGL_J1200.6+1229_daily_bin6.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/247653/ft2_4FGL_J1200.6+1229_daily_bin6.fits
.....................!
real 16.28
user 15.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/247653/ft1_filtered_4FGL_J1200.6+1229_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/247653/ft2_4FGL_J1200.6+1229_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/247653/ltcube_240883201_241142401_4FGL_J1200.6+1229_daily_bin6.fits outfile=/scratch/kocevski/247653/expmap_240883201_241142401_4FGL_J1200.6+1229_daily_bin6.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/247653/ltcube_240883201_241142401_4FGL_J1200.6+1229_daily_bin6.fits
.....................!
real 193.14
user 187.05
sys 4.77

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

Setting source of interest to:
4FGL J1200.6+1229 @ 180.173 12.4922

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/247653/ft1_filtered_4FGL_J1200.6+1229_daily_bin6.fits scfile=/scratch/kocevski/247653/ft2_4FGL_J1200.6+1229_daily_bin6.fits outfile=/scratch/kocevski/247653/cmap_240883201_241142401_4FGL_J1200.6+1229_daily_bin6.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.173 yref=12.4922 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/247653/ft1_filtered_4FGL_J1200.6+1229_daily_bin6.fits scfile=/scratch/kocevski/247653/ft2_4FGL_J1200.6+1229_daily_bin6.fits outfile=/scratch/kocevski/247653/cmap_HighResolution_240883201_241142401_4FGL_J1200.6+1229_daily_bin6.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.173 yref=12.4922 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/247653/ft1_filtered_4FGL_J1200.6+1229_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/247653/ft2_4FGL_J1200.6+1229_daily_bin6.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/247653/Model_4FGL_J1200.6+1229_daily_bin6.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/247653/ft1_filtered_4FGL_J1200.6+1229_daily_bin6.fits.....................!
real 64.97
user 63.45
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/247653/ft1_filtered_4FGL_J1200.6+1229_daily_bin6.fits', '/scratch/kocevski/247653/ft2_4FGL_J1200.6+1229_daily_bin6.fits', expMap='/scratch/kocevski/247653/expmap_240883201_241142401_4FGL_J1200.6+1229_daily_bin6.fits', expCube='/scratch/kocevski/247653/ltcube_240883201_241142401_4FGL_J1200.6+1229_daily_bin6.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/247653/Model_4FGL_J1200.6+1229_daily_bin6.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.6+1229'

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.077e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/247653/ft1_filtered_4FGL_J1200.6+1229_daily_bin6.fits
Spacecraft file(s): /scratch/kocevski/247653/ft2_4FGL_J1200.6+1229_daily_bin6.fits
Exposure map: /scratch/kocevski/247653/expmap_240883201_241142401_4FGL_J1200.6+1229_daily_bin6.fits
Exposure cube: /scratch/kocevski/247653/ltcube_240883201_241142401_4FGL_J1200.6+1229_daily_bin6.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/247653/Model_4FGL_J1200.6+1229_daily_bin6.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) = 7158.08742756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10434E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.994       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.128       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.317       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .47179E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.676       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.5323       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .32291       1.0000         .10000E-03   10000.    
    18 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2453       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92912       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2461       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7158.077     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2517 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.114       -.65547E-05** at limit **
   2  Prefactor     .10000E-03    5.6930       -.21163E-06** at limit **
   3  Prefactor     .10000E-03    11.811       -.11629E-05** at limit **
   4  Prefactor     10.993        12.753       -.26640E-05   -.12486E-02
   5  Prefactor     16.093        64.346       -.77687E-04    .17363E-05
   6  Prefactor     11.319        9.1216        .88795E-06    .52439E-04
   7  Prefactor     .10000E-03    3.8511        .37279E-05** at limit **
   8  Prefactor     .10000E-03    3.8716       -.37942E-05** at limit **
   9  Prefactor     .10000E-03    1.9506       -.13717E-06** at limit **
  10  Prefactor     14.676        38.568       -.12073E-05    .64609E-05
  11  Prefactor     .10000E-03    12.166       -.32205E-05** at limit **
  12  Prefactor     .10000E-03    1.5956       -.18284E-06** at limit **
  13  Prefactor     .10000E-03    1.9688       -.94209E-07** at limit **
  14  Prefactor     .10000E-03    10.822        .49911E-05** at limit **
  15  norm          6.5323        3.4260       -.21879E-06   -.42361E-03
  16  Prefactor     .10000E-03    8.8084       -.85011E-06** at limit **
  17  norm          .32290        .20515       -.48371E-07   -.48027E-03
  18  norm          .10000E-03    17.841        .80342E-05** at limit **
  19  Prefactor     .10000E-03    41.454       -.20114E-05** at limit **
  20  Prefactor     3.2454        3.7044       -.16035E-06    .13251E-03
  21  Prefactor     .10000E-03    8.8952        .41121E-06** at limit **
  22  Normalizat    .92898        .17737        .33062E-05    .92756E-04
  23  Prefactor     1.2462        .16334        .22762E-06    .20692E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9933
  Prefactor  = 16.0927
  Prefactor  = 11.3185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.6756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.53231
  Prefactor  = 0.0001
  norm       = 0.322897
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.24543
  Prefactor  = 0.0001
  Normalizat = 0.92898
  Prefactor  = 1.24624
 **********
 **   18 **HESSE 
 **********

 FCN=   7158.077     FROM HESSE     STATUS=OK           366 CALLS     2883 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.713        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.7113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.993        12.771        .60415E-03   -1.5045    
   5  Prefactor     16.093        63.912        .99733E-04   -1.4905    
   6  Prefactor     11.319        9.1163        .11909E-03   -1.5035    
   7  Prefactor     .10000E-03    3.8885        .16203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.8726        .16252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.730        .21889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.676        38.556        .10455E-03   -1.4942    
  11  Prefactor     .10000E-03    12.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.1893        .20288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0185        .23118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.5323        3.4254        .10811E-03   -1.5197    
  16  Prefactor     .10000E-03    8.8181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .32290        .20287        .29367E-04   -1.5594    
  18  norm          .10000E-03    17.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.2454        3.7049        .16970E-03   -1.5348    
  21  Prefactor     .10000E-03    8.9089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .92898        .20464        .27841E-03   -.95449    
  23  Prefactor     1.2462        .19068        .23509E-03   -.84920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61538e-09
Minuit parameter uncertainties:
  1  1.67363e-05
  2  8.32714e-06
  3  1.13071e-05
  4  12.7744
  5  64.1864
  6  9.11742
  7  4.54542e-06
  8  2.63616e-07
  9  0.000165538
  10  38.6216
  11  3.57219e-05
  12  4.61825e-05
  13  1.27236e-05
  14  1.76158e-06
  15  3.42554
  16  4.89408e-06
  17  0.202867
  18  4.51672e-06
  19  9.16647e-06
  20  3.70519
  21  1.74965e-05
  22  0.204807
  23  0.190791
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  2.636e-07  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.246e+00  1.908e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  9.290e-01  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 4.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/247653/likelihoodResults_240883201_241142401_4FGL_J1200.6+1229_daily_bin6.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7158.07820415
delta logL = -0.00122159147395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7158.07698231
delta logL = 2.52322934102e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3643       1.0000          .0000       10.000    
     3 'Normalizat'    .92900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2462       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+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=   7158.077     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      252 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.688        .16600E-01** at limit **
   2  Index         1.7941        5.8572        .50000        .57964E-06
   3  Normalizat    .92898        .70122E-02    .27841E-03   -.48525E-03
   4  Prefactor     1.2462        .67744E-02    .23509E-03   -.58259E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.79413
  Normalizat = 0.92898
  Prefactor  = 1.24624
 **********
 **   18 **HESSE 
 **********

 FCN=   7158.077     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    122.23        .18991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7941        5.1464        .50000       -.69603    
   3  Normalizat    .92898        .21446E-01    .55682E-04   -.95449    
   4  Prefactor     1.2462        .20718E-01    .47018E-04   -.84920    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.3945e-09
Minuit parameter uncertainties:
  1  9.07889e-05
  2  585.012
  3  0.0214459
  4  0.0207185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/247653': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7158.0769791
delta logL = 3.45674197888e-06

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  9.079e-05  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.794e+00  5.850e+02  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.246e+00  2.072e-02  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  9.290e-01  2.145e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.173 12.492

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/247653/cmap_HighResolution_240883201_241142401_4FGL_J1200.6+1229_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-03', job_status='DONE', photon_flux_upper_limit='4.40e-08', time_completed='2021-09-04 20:15:23.779855', job_id='247653', GAL2='1.25', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630811723.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='3.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='6' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:15:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 247653: <4FGL_J1200.6+1229_daily_bin6> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin6> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 20:01:07 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:01:08 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:01:08 2021
Terminated at Sat Sep  4 20:15:26 2021
Results reported at Sat Sep  4 20:15:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin6 180.173 12.4922 240883201 241142401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.6+1229 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   746.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            859 sec.

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

