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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin856
RA = 180.055, Dec = 2.0172
tmin = 461203201, tmax = 461462401
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='244052', job_status='RUN', time_executed='2021-09-04 19:52:21.055908', time_epoch_executed='1630810341.06' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='856'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244052

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244052/ft1_4FGL_J1200.2+0201_daily_bin856.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244052/ft2_4FGL_J1200.2+0201_daily_bin856.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244052/ft1_4FGL_J1200.2+0201_daily_bin856.fits outfile=/scratch/kocevski/244052/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin856.fits ra=180.055 dec=2.0172 rad=12.0 tmin=461203201.0 tmax=461462401.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.55
user 3.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/244052/ft2_4FGL_J1200.2+0201_daily_bin856.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/244052/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin856.fits evtable="EVENTS" outfile="/scratch/kocevski/244052/ft1_filtered_4FGL_J1200.2+0201_daily_bin856.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244052/ft1_filtered_4FGL_J1200.2+0201_daily_bin856.fits" evtable="EVENTS" scfile=/scratch/kocevski/244052/ft2_4FGL_J1200.2+0201_daily_bin856.fits sctable="SC_DATA" outfile=/scratch/kocevski/244052/ltcube_461203201_461462401_4FGL_J1200.2+0201_daily_bin856.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/244052/ft2_4FGL_J1200.2+0201_daily_bin856.fits
.....................!
real 11.93
user 11.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244052/ft1_filtered_4FGL_J1200.2+0201_daily_bin856.fits evtable="EVENTS" scfile=/scratch/kocevski/244052/ft2_4FGL_J1200.2+0201_daily_bin856.fits sctable="SC_DATA" expcube=/scratch/kocevski/244052/ltcube_461203201_461462401_4FGL_J1200.2+0201_daily_bin856.fits outfile=/scratch/kocevski/244052/expmap_461203201_461462401_4FGL_J1200.2+0201_daily_bin856.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/244052/ltcube_461203201_461462401_4FGL_J1200.2+0201_daily_bin856.fits
.....................!
real 192.16
user 187.00
sys 4.82

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/244052/ft1_filtered_4FGL_J1200.2+0201_daily_bin856.fits scfile=/scratch/kocevski/244052/ft2_4FGL_J1200.2+0201_daily_bin856.fits outfile=/scratch/kocevski/244052/cmap_461203201_461462401_4FGL_J1200.2+0201_daily_bin856.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244052/ft1_filtered_4FGL_J1200.2+0201_daily_bin856.fits scfile=/scratch/kocevski/244052/ft2_4FGL_J1200.2+0201_daily_bin856.fits outfile=/scratch/kocevski/244052/cmap_HighResolution_461203201_461462401_4FGL_J1200.2+0201_daily_bin856.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 2.61
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98721       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.9347       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.454       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6884       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.628       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.022       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5263       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    45.341       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.2691       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.509       1.0000         .10000E-03   10000.    
    27 'norm      '    .88331       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .55844E-01   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2887       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .82166       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=   5499.828     FROM MIGRAD    STATUS=CONVERGED    828 CALLS     3516 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99718        4.1167        .89938E-06   -.12701E-03
   2  norm          .10000E-03    13.686       -.11427E-06** at limit **
   3  Prefactor     .10000E-03    .84832        .34956E-07** at limit **
   4  Prefactor     .10000E-03    12.858       -.91077E-07** at limit **
   5  norm          5.9346        7.8273        .13084E-06   -.52421E-04
   6  Prefactor     17.454        6.5760       -.29111E-07   -.18797E-03
   7  Prefactor     .10000E-03    6.8063        .26410E-07** at limit **
   8  Prefactor     .10000E-03    59.653        .37171E-07** at limit **
   9  Prefactor     .10000E-03    4.1134       -.83280E-07** at limit **
  10  Prefactor     .10000E-03    25.064       -.35062E-06** at limit **
  11  Prefactor     .10000E-03    2.3107        .60534E-07** at limit **
  12  Prefactor     4.6837        16.371        .11047E-04    .31286E-03
  13  Prefactor     .10000E-03    6.3268       -.44456E-08** at limit **
  14  Prefactor     .10000E-03    31.944       -.32626E-06** at limit **
  15  Prefactor     .10000E-03    37.434       -.65671E-07** at limit **
  16  Prefactor     .10000E-03    23.288        .60054E-06** at limit **
  17  Prefactor     30.627        22.352        .33499E-06    .42410E-04
  18  Prefactor     .10000E-03    12.464        .36010E-06** at limit **
  19  Prefactor     25.024        12.956        .23697E-06    .80427E-04
  20  norm          .10000E-03    .99863       -.86998E-09** at limit **
  21  norm          1.5219        3.8155       -.68311E-06   -.14089E-03
  22  Prefactor     .10000E-03    8.3377        .45822E-07** at limit **
  23  norm          45.376        44.122        .69106E-06   -.22022E-03
  24  Prefactor     .10000E-03    36.886        .66241E-07** at limit **
  25  norm          1.2697        .58200        .14791E-06    .22192E-02
  26  Prefactor     10.508        11.324        .10924E-06    .13925E-03
  27  norm          .88361        1.6718        .66132E-06    .88982E-03
  28  Prefactor     .10000E-03    11.881        .30781E-07** at limit **
  29  Prefactor     .22560E-03    71.518       -.10175E-04** at limit **
  30  Normalizat    1.2883        .21836       -.25214E-05    .25974E-03
  31  Prefactor     .82205        .17176        .11305E-05    .12575E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.99718
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.9346
  Prefactor  = 17.4542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.68373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.6268
  Prefactor  = 0.0001
  Prefactor  = 25.0236
  norm       = 0.0001
  norm       = 1.52188
  Prefactor  = 0.0001
  norm       = 45.3756
  Prefactor  = 0.0001
  norm       = 1.26969
  Prefactor  = 10.508
  norm       = 0.883614
  Prefactor  = 0.0001
  Prefactor  = 0.000225603
  Normalizat = 1.2883
  Prefactor  = 0.822046
 **********
 **   18 **HESSE 
 **********

 FCN=   5499.828     FROM HESSE     STATUS=OK           624 CALLS     4140 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99718        7.2470        .28251E-02   -1.5508    
   2  norm          .10000E-03    13.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .85566        .66681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.9346        7.8073        .16483E-03   -1.5221    
   6  Prefactor     17.454        6.5666        .95867E-04   -1.4872    
   7  Prefactor     .10000E-03    6.8081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    59.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.1236        .14689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3129        .11009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6837        16.381        .92925E-03   -1.5275    
  13  Prefactor     .10000E-03    6.3401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.627        22.354        .72397E-04   -1.4601    
  18  Prefactor     .10000E-03    12.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.024        12.929        .80082E-04   -1.4707    
  20  norm          .10000E-03    1.0016        .72224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5219        3.7099        .18451E-03   -1.5461    
  22  Prefactor     .10000E-03    8.3395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          45.376        43.083        .29771E-03   -1.4360    
  24  Prefactor     .10000E-03    36.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.2697        .57316        .34828E-04   -1.5483    
  26  Prefactor     10.508        11.311        .12360E-03   -1.5060    
  27  norm          .88361        1.6416        .12302E-03   -1.5520    
  28  Prefactor     .10000E-03    12.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .22560E-03    48.902        .14199       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2883        .25101        .25753E-03   -.83916    
  31  Prefactor     .82205        .19907        .25724E-03   -.98921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25376e-08
Minuit parameter uncertainties:
  1  5.37711
  2  2.81178e-05
  3  1.84952e-06
  4  1.27392e-05
  5  7.80867
  6  6.56692
  7  2.74612e-06
  8  2.31763e-05
  9  1.13275e-05
  10  0.000142787
  11  2.80803e-06
  12  16.3969
  13  3.9838e-06
  14  8.44813e-05
  15  2.0672e-05
  16  0.000148242
  17  22.3602
  18  4.79601e-05
  19  12.9301
  20  4.99334e-07
  21  3.71046
  22  3.49477e-06
  23  43.1123
  24  2.85026e-05
  25  0.573164
  26  11.3131
  27  1.64166
  28  1.40135e-05
  29  0.156873
  30  0.251245
  31  0.199241
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.808e-06  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.220e-01  1.992e-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.288e+00  2.512e-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: 4.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/244052/likelihoodResults_461203201_461462401_4FGL_J1200.2+0201_daily_bin856.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) = 5499.82979013
delta logL = -0.00198899884344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5499.82780064
delta logL = 4.94172127219e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5499.828     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10296E-03    2.5385        .11290E-01** at limit **
   2  Index         1.9919        8.3041        .50000        .70249E-04
   3  Normalizat    1.2883        .52525E-02    .25753E-03   -.31873E-04
   4  Prefactor     .82205        .43192E-02    .25724E-03    .78845E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102959
  Index      = 1.99191
  Normalizat = 1.2883
  Prefactor  = 0.822049
 **********
 **   18 **HESSE 
 **********

 FCN=   5499.828     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10296E-03    43.320        .11650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9919        7.0534        .50000       -.64553    
   3  Normalizat    1.2883        .22061E-01    .10301E-04   -.83916    
   4  Prefactor     .82205        .18140E-01    .10289E-04   -.98921    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.52772e-08
Minuit parameter uncertainties:
  1  0.0226583
  2  261.799
  3  0.0220609
  4  0.0181405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244052': 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) = 5499.82779939
delta logL = 1.74438355316e-06

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.030e-04  2.266e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.992e+00  2.618e+02  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.220e-01  1.814e-02  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.288e+00  2.206e-02  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/244052/cmap_HighResolution_461203201_461462401_4FGL_J1200.2+0201_daily_bin856.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-03', job_status='DONE', photon_flux_upper_limit='4.77e-08', time_completed='2021-09-04 20:05:44.131262', job_id='244052', GAL2='0.82', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630811144.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.74e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='856' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:05:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 244052: <4FGL_J1200.2+0201_daily_bin856> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin856> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 19:50:24 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:50:26 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:50:26 2021
Terminated at Sat Sep  4 20:05:44 2021
Results reported at Sat Sep  4 20:05:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin856 180.055 2.0172 461203201 461462401 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 :                                   800.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            920 sec.

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

