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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin466
RA = 180.055, Dec = 2.0172
tmin = 360115201, tmax = 360374401
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='241225', job_status='RUN', time_executed='2021-09-04 19:43:10.002862', time_epoch_executed='1630809790.0' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241225

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241225/ft1_4FGL_J1200.2+0201_daily_bin466.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241225/ft2_4FGL_J1200.2+0201_daily_bin466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241225/ft1_4FGL_J1200.2+0201_daily_bin466.fits outfile=/scratch/kocevski/241225/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin466.fits ra=180.055 dec=2.0172 rad=12.0 tmin=360115201.0 tmax=360374401.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 3.45
user 3.21
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/241225/ft1_filtered_4FGL_J1200.2+0201_daily_bin466.fits" evtable="EVENTS" scfile=/scratch/kocevski/241225/ft2_4FGL_J1200.2+0201_daily_bin466.fits sctable="SC_DATA" outfile=/scratch/kocevski/241225/ltcube_360115201_360374401_4FGL_J1200.2+0201_daily_bin466.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/241225/ft2_4FGL_J1200.2+0201_daily_bin466.fits
.....................!
real 12.38
user 12.02
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241225/ft1_filtered_4FGL_J1200.2+0201_daily_bin466.fits evtable="EVENTS" scfile=/scratch/kocevski/241225/ft2_4FGL_J1200.2+0201_daily_bin466.fits sctable="SC_DATA" expcube=/scratch/kocevski/241225/ltcube_360115201_360374401_4FGL_J1200.2+0201_daily_bin466.fits outfile=/scratch/kocevski/241225/expmap_360115201_360374401_4FGL_J1200.2+0201_daily_bin466.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/241225/ltcube_360115201_360374401_4FGL_J1200.2+0201_daily_bin466.fits
.....................!
real 192.88
user 187.61
sys 4.80

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/241225/ft1_filtered_4FGL_J1200.2+0201_daily_bin466.fits scfile=/scratch/kocevski/241225/ft2_4FGL_J1200.2+0201_daily_bin466.fits outfile=/scratch/kocevski/241225/cmap_360115201_360374401_4FGL_J1200.2+0201_daily_bin466.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=180.055 yref=2.0172 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241225/ft1_filtered_4FGL_J1200.2+0201_daily_bin466.fits scfile=/scratch/kocevski/241225/ft2_4FGL_J1200.2+0201_daily_bin466.fits outfile=/scratch/kocevski/241225/cmap_HighResolution_360115201_360374401_4FGL_J1200.2+0201_daily_bin466.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29305       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1735       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7125       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15231       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.624       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    87.193       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9622       1.0000         .10000E-03   10000.    
    20 'norm      '    .40256E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.3127       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    51.385       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.9216       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .38178       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    16.093       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0962       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .86284       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=   4967.415     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     4160 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28715        2.8832        .17091E-06    .49541E-04
   2  norm          .10000E-03    15.046        .21204E-07** at limit **
   3  Prefactor     5.1734        2.5802        .57899E-07   -.19243E-04
   4  Prefactor     .10000E-03    10.240        .11397E-06** at limit **
   5  norm          .10002E-03    8.4225       -.26773E-05** at limit **
   6  Prefactor     .10000E-03    2.4307       -.28476E-07** at limit **
   7  Prefactor     .10000E-03    9.0126       -.43880E-07** at limit **
   8  Prefactor     .10000E-03    40.060        .25222E-07** at limit **
   9  Prefactor     2.7123        7.1492        .10305E-05    .12816E-03
  10  Prefactor     .10000E-03    23.076        .22920E-06** at limit **
  11  Prefactor     .16682        6.1451        .50870E-06   -.78221E-04
  12  Prefactor     27.620        19.671        .54861E-06    .56868E-04
  13  Prefactor     .10000E-03    7.5692        .44171E-07** at limit **
  14  Prefactor     .10000E-03    55.575        .73661E-06** at limit **
  15  Prefactor     87.194        55.773        .18409E-06    .48587E-04
  16  Prefactor     .10000E-03    36.465        .92416E-07** at limit **
  17  Prefactor     .10000E-03    9.1092       -.25910E-07** at limit **
  18  Prefactor     .10000E-03    30.694        .36941E-06** at limit **
  19  Prefactor     1.9790        10.527        .35171E-05    .49351E-03
  20  norm          .10001E-03    2.0101       -.11749E-05** at limit **
  21  norm          3.3185        5.5566       -.40073E-06   -.25211E-03
  22  Prefactor     .10000E-03    35.272       -.12868E-06** at limit **
  23  norm          51.347        52.151        .10849E-07   -.83429E-04
  24  Prefactor     .10000E-03    103.66       -.41990E-06** at limit **
  25  norm          1.9205        .77756        .49365E-07    .17532E-03
  26  Prefactor     .10000E-03    4.3387       -.15722E-07** at limit **
  27  norm          .38105        1.3592        .64821E-06   -.62495E-04
  28  Prefactor     .10000E-03    3.1351       -.12081E-07** at limit **
  29  Prefactor     16.084        32.354       -.20140E-06   -.26597E-04
  30  Normalizat    1.0964        .21373       -.21460E-05    .49089E-04
  31  Prefactor     .86272        .16374        .76097E-06    .99631E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.28715
  norm       = 0.0001
  Prefactor  = 5.17336
  Prefactor  = 0.0001
  norm       = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.7123
  Prefactor  = 0.0001
  Prefactor  = 0.166825
  Prefactor  = 27.6205
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 87.1939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.97901
  norm       = 0.000100014
  norm       = 3.31846
  Prefactor  = 0.0001
  norm       = 51.3474
  Prefactor  = 0.000100001
  norm       = 1.92052
  Prefactor  = 0.0001
  norm       = 0.381053
  Prefactor  = 0.0001
  Prefactor  = 16.0842
  Normalizat = 1.09637
  Prefactor  = 0.862715
 **********
 **   18 **HESSE 
 **********

 FCN=   4967.415     FROM HESSE     STATUS=OK           624 CALLS     4784 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28715        16.525        .22903E-02   -1.5601    
   2  norm          .10000E-03    15.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1734        2.5800        .76912E-04   -1.5253    
   4  Prefactor     .10000E-03    10.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10002E-03    12.538        .30611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4647        .10713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7123        7.1200        .24730E-03   -1.5379    
  10  Prefactor     .10000E-03    23.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16682        42.428        .33254E-02   -1.5626    
  12  Prefactor     27.620        19.645        .76224E-04   -1.4656    
  13  Prefactor     .10000E-03    7.5900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    55.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     87.194        55.799        .43026E-04   -1.3838    
  16  Prefactor     .10000E-03    36.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.1238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9790        10.764        .29611E-03   -1.5427    
  20  norm          .10001E-03    11.222        .16112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.3185        5.5089        .16179E-03   -1.5344    
  22  Prefactor     .10000E-03    35.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          51.347        51.881        .55947E-04   -1.4274    
  24  Prefactor     .10000E-03    103.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.9205        .76903        .33270E-04   -1.5431    
  26  Prefactor     .10000E-03    4.3498        .14336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .38105        1.6422        .13886E-02   -1.5585    
  28  Prefactor     .10000E-03    3.1374        .12188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     16.084        32.338        .99839E-04   -1.4906    
  30  Normalizat    1.0964        .23957        .25823E-03   -.89869    
  31  Prefactor     .86272        .18807        .23494E-03   -.97456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40032e-08
Minuit parameter uncertainties:
  1  4.35714
  2  1.15897e-05
  3  2.58009
  4  4.49473e-05
  5  0.000890229
  6  1.1742e-05
  7  1.02096e-05
  8  1.12202e-05
  9  7.12224
  10  0.000114695
  11  5.32311
  12  19.6492
  13  1.51719e-05
  14  0.000522793
  15  55.8326
  16  2.09308e-05
  17  2.45001e-06
  18  4.39707e-06
  19  9.23312
  20  0.000803914
  21  5.50975
  22  7.64739e-05
  23  51.9264
  24  0.000540752
  25  0.769031
  26  1.91895e-07
  27  1.58198
  28  6.52708e-08
  29  32.3733
  30  0.239809
  31  0.188207
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.668e-01  5.323e+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:  8.627e-01  1.882e-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:  1.096e+00  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 7.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/241225/likelihoodResults_360115201_360374401_4FGL_J1200.2+0201_daily_bin466.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) = 4967.41368444
delta logL = 0.00172498193569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4967.41299883
delta logL = 0.0024105943603

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23484       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5566       1.0000          .0000       10.000    
     3 'Normalizat'    1.0950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86279       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=   4967.413     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      254 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28258        4.2264        .63991E-01    .53608E-03
   2  Index         2.4801        .53834        .50000        .33249E-05
   3  Normalizat    1.0949        .65154E-02    .58428E-01   -.74375E-05
   4  Prefactor     .86290        .53510E-02    .44529E-01    .10660E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.282583
  Index      = 2.48005
  Normalizat = 1.09495
  Prefactor  = 0.862899
 **********
 **   18 **HESSE 
 **********

 FCN=   4967.413     FROM HESSE     STATUS=OK            35 CALLS      289 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28258        25.688        .22688E-02   -1.5602    
   2  Index         2.4801        5.9608        .68959E-02   -.52821    
   3  Normalizat    1.0949        .22440        .25839E-03   -.89914    
   4  Prefactor     .86290        .18340        .23492E-03   -.97450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35651e-10
Minuit parameter uncertainties:
  1  5.38989
  2  6.56308
  3  0.224594
  4  0.183529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241225': 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) = 4967.41286948
delta logL = 0.00253994657578

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  2.826e-01  5.390e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.480e+00  6.563e+00  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:  8.629e-01  1.835e-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:  1.095e+00  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 180.055 2.017

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/241225/cmap_HighResolution_360115201_360374401_4FGL_J1200.2+0201_daily_bin466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', job_status='DONE', photon_flux_upper_limit='7.23e-08', time_completed='2021-09-04 19:56:29.603972', job_id='241225', GAL2='0.86', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1630810589.6', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.54e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='466' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:56:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 241225: <4FGL_J1200.2+0201_daily_bin466> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin466 180.055 2.0172 360115201 360374401 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 :                                   796.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            946 sec.

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

