/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 123 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 = 7589
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.2+0201_daily_bin437
RA = 180.055, Dec = 2.0172
tmin = 352598401, tmax = 352857601
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='241180', job_status='RUN', time_executed='2021-09-04 19:42:52.565006', time_epoch_executed='1630809772.57' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241180

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241180/ft1_4FGL_J1200.2+0201_daily_bin437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241180/ft2_4FGL_J1200.2+0201_daily_bin437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241180/ft1_4FGL_J1200.2+0201_daily_bin437.fits outfile=/scratch/kocevski/241180/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin437.fits ra=180.055 dec=2.0172 rad=12.0 tmin=352598401.0 tmax=352857601.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 4.10
user 3.86
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/241180/ft1_filtered_4FGL_J1200.2+0201_daily_bin437.fits" evtable="EVENTS" scfile=/scratch/kocevski/241180/ft2_4FGL_J1200.2+0201_daily_bin437.fits sctable="SC_DATA" outfile=/scratch/kocevski/241180/ltcube_352598401_352857601_4FGL_J1200.2+0201_daily_bin437.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/241180/ft2_4FGL_J1200.2+0201_daily_bin437.fits
.....................!
real 11.85
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241180/ft1_filtered_4FGL_J1200.2+0201_daily_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/241180/ft2_4FGL_J1200.2+0201_daily_bin437.fits sctable="SC_DATA" expcube=/scratch/kocevski/241180/ltcube_352598401_352857601_4FGL_J1200.2+0201_daily_bin437.fits outfile=/scratch/kocevski/241180/expmap_352598401_352857601_4FGL_J1200.2+0201_daily_bin437.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/241180/ltcube_352598401_352857601_4FGL_J1200.2+0201_daily_bin437.fits
.....................!
real 190.12
user 184.89
sys 4.88

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/241180/ft1_filtered_4FGL_J1200.2+0201_daily_bin437.fits scfile=/scratch/kocevski/241180/ft2_4FGL_J1200.2+0201_daily_bin437.fits outfile=/scratch/kocevski/241180/cmap_352598401_352857601_4FGL_J1200.2+0201_daily_bin437.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241180/ft1_filtered_4FGL_J1200.2+0201_daily_bin437.fits scfile=/scratch/kocevski/241180/ft2_4FGL_J1200.2+0201_daily_bin437.fits outfile=/scratch/kocevski/241180/cmap_HighResolution_352598401_352857601_4FGL_J1200.2+0201_daily_bin437.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .63934       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3947       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4082       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.842       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25340E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.3790       1.0000         .10000E-03   10000.    
    14 'Prefactor '    121.65       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12888E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.309       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9943       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4759       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0279       1.0000         .10000E-03   10000.    
    21 'norm      '    .82954       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.854       1.0000         .10000E-03   10000.    
    23 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .91111       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.4475       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .15567E-02   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .83467       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0757       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.

 FCN=   6336.915     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4200 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8068        .52094E-08** at limit **
   2  norm          .10000E-03    7.9601        .27997E-08** at limit **
   3  Prefactor     .64144        1.4293       -.50505E-07   -.14056E-03
   4  Prefactor     .10000E-03    31.493        .16610E-07** at limit **
   5  norm          .10000E-03    1.4097        .12660E-07** at limit **
   6  Prefactor     1.3949        2.6316        .92247E-07    .13448E-03
   7  Prefactor     .10000E-03    19.827        .95591E-07** at limit **
   8  Prefactor     .10000E-03    48.956        .11708E-05** at limit **
   9  Prefactor     .10000E-03    3.3611       -.14232E-06** at limit **
  10  Prefactor     4.4551        46.090        .43053E-05    .10355E-03
  11  Prefactor     14.843        9.7729       -.91203E-07    .34055E-04
  12  Prefactor     .10049E-03    11.279        .31846E-06** at limit **
  13  Prefactor     9.3928        14.833       -.37664E-06    .94660E-04
  14  Prefactor     121.61        85.482        .51153E-05    .14894E-03
  15  Prefactor     .10000E-03    55.411       -.21944E-05** at limit **
  16  Prefactor     17.304        31.883       -.60137E-09    .11492E-04
  17  Prefactor     2.9957        18.474        .52179E-05    .27307E-03
  18  Prefactor     6.4771        20.546        .59357E-07    .12065E-04
  19  Prefactor     .10000E-03    2.3265        .23294E-07** at limit **
  20  norm          1.0279        1.0360       -.18330E-07   -.67856E-04
  21  norm          .83131        2.8541        .21079E-06    .12837E-03
  22  Prefactor     12.855        14.716       -.10191E-06   -.13152E-04
  23  norm          .10000E-03    15.127        .27886E-07** at limit **
  24  Prefactor     .10000E-03    48.864        .13495E-05** at limit **
  25  norm          .91087        .49439        .48857E-08    .38034E-03
  26  Prefactor     .10001E-03    7.0384        .14247E-05** at limit **
  27  norm          4.4475        1.7266        .60071E-07    .61908E-03
  28  Prefactor     .10000E-03    3.7593        .74230E-08** at limit **
  29  Prefactor     .10491E-03    25.407       -.52526E-05** at limit **
  30  Normalizat    .83475        .19905        .44640E-06    .24699E-03
  31  Prefactor     1.0755        .15501       -.42304E-06    .29460E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.641444
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.39494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.45511
  Prefactor  = 14.8435
  Prefactor  = 0.00010049
  Prefactor  = 9.39285
  Prefactor  = 121.609
  Prefactor  = 0.000100001
  Prefactor  = 17.304
  Prefactor  = 2.99568
  Prefactor  = 6.47715
  Prefactor  = 0.0001
  norm       = 1.02789
  norm       = 0.831308
  Prefactor  = 12.855
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.910875
  Prefactor  = 0.000100013
  norm       = 4.44755
  Prefactor  = 0.0001
  Prefactor  = 0.000104909
  Normalizat = 0.834749
  Prefactor  = 1.07552
 **********
 **   18 **HESSE 
 **********

 FCN=   6336.915     FROM HESSE     STATUS=OK           644 CALLS     4844 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8366        .10446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.9667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .64144        1.2750        .13725E-02   -1.5548    
   4  Prefactor     .10000E-03    32.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4129        .92269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3949        2.5835        .16744E-03   -1.5472    
   7  Prefactor     .10000E-03    19.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    48.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3675        .14256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.4551        45.890        .95907E-03   -1.5286    
  11  Prefactor     14.843        9.7675        .10396E-03   -1.4937    
  12  Prefactor     .10049E-03    14.473        .85113E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.3928        14.839        .13086E-03   -1.5095    
  14  Prefactor     121.61        90.053        .18244E-03   -1.3498    
  15  Prefactor     .10000E-03    55.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.304        31.839        .96269E-04   -1.4876    
  17  Prefactor     2.9957        19.068        .11730E-02   -1.5362    
  18  Prefactor     6.4771        20.359        .15771E-03   -1.5199    
  19  Prefactor     .10000E-03    2.3282        .11856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0279        1.0649        .79158E-03   -1.5505    
  21  norm          .83131        2.7951        .21582E-03   -1.5526    
  22  Prefactor     12.855        14.715        .55863E-03   -1.4991    
  23  norm          .10000E-03    15.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    48.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .91087        .47503        .36829E-04   -1.5517    
  26  Prefactor     .10001E-03    31.577        .37427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.4475        1.7228        .31141E-03   -1.5286    
  28  Prefactor     .10000E-03    3.7678        .15070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10491E-03    18.444        .11505       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .83475        .23029        .29259E-03   -.98792    
  31  Prefactor     1.0755        .18007        .21550E-03   -.90253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.36095e-09
Minuit parameter uncertainties:
  1  4.40952e-07
  2  2.40652e-07
  3  1.27504
  4  1.44251e-05
  5  3.35864e-08
  6  2.58372
  7  8.85988e-07
  8  0.000196805
  9  1.69251e-05
  10  28.625
  11  9.76854
  12  0.00532695
  13  14.8447
  14  90.1546
  15  0.000413878
  16  31.8707
  17  15.1228
  18  20.3809
  19  1.53635e-07
  20  1.06489
  21  2.79555
  22  14.7187
  23  3.24973e-06
  24  0.000163086
  25  0.475034
  26  0.00130191
  27  1.7228
  28  1.35575e-06
  29  0.0190367
  30  0.230561
  31  0.180169
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.484e+01  9.769e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.076e+00  1.802e-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:  8.347e-01  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.40
Ra Dec: 180.055 2.017
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 5.59e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 1.98e-05

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) = 6336.57207629
delta logL = 0.343328848458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6336.57085484
delta logL = 0.344550290103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8631       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5145       1.0000          .0000       10.000    
     3 'Normalizat'    .80579       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0910       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6336.571     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      266 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8675        98.676        .33659E-02    .17465E-03
   2  Index         2.5143        2.5710        .11240        .14462E-03
   3  Normalizat    .80587        .80371E-01    .67194E-01    .21958E-04
   4  Prefactor     1.0906        .57685E-01    .37938E-01    .30725E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.8675
  Index      = 2.51426
  Normalizat = 0.805873
  Prefactor  = 1.09063
 **********
 **   18 **HESSE 
 **********

 FCN=   6336.571     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8675        10.641        .13208E-03   -1.5112    
   2  Index         2.5143        .59155        .41908E-02   -.52031    
   3  Normalizat    .80587        .21873        .29729E-03   -.99851    
   4  Prefactor     1.0906        .17890        .21416E-03   -.89767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26211e-09
Minuit parameter uncertainties:
  1  10.6431
  2  0.593395
  3  0.218964
  4  0.178998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241180': 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) = 6336.57084727
delta logL = 0.344557861994

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  8.868e+00  1.064e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.514e+00  5.934e-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.091e+00  1.790e-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:  8.059e-01  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.11
Ra Dec: 180.055 2.017
Photon Index (Free Index): 2.51 +/- 0.59
Photon Flux (Free Index): 7.80e-08 +/- 5.01e-08
Energy Flux (Free Index): 2.23e-05 +/- 1.56e-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/241180/cmap_HighResolution_352598401_352857601_4FGL_J1200.2+0201_daily_bin437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.59e-08', energy_flux2='2.23e-05', photon_flux_error='3.67e-08', dlogl='3.45e-01', energy_flux='3.01e-05', photon_flux2='7.80e-08', job_status='DONE', time_completed='2021-09-04 19:56:15.012708', photon_index_error2='0.59', photon_index2='2.51', ts='4.40', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='0.83', time_epoch_completed='1630810575.01', return_code='0', job_id='241180', GAL2='1.09', EG2='0.81', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='5.01e-08', ts2='5.11', photon_index='2.11' WHERE bin_id='437' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:56:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 241180: <4FGL_J1200.2+0201_daily_bin437> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin437> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 19:40:40 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:40:41 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:40:41 2021
Terminated at Sat Sep  4 19:56:15 2021
Results reported at Sat Sep  4 19:56:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin437 180.055 2.0172 352598401 352857601 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 :                                   798.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             259.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

