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


Performing analysis on: 4FGL_J0945.2+5200_daily_bin1228
RA = 146.316, Dec = 52.0053
tmin = 557625601, tmax = 557884801
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='479599', job_status='RUN', time_executed='2021-09-01 00:58:40.913797', time_epoch_executed='1630483120.91' WHERE source_name='4FGL J0945.2+5200' and cadence='daily' and bin_id='1228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479599

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479599/ft1_4FGL_J0945.2+5200_daily_bin1228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479599/ft2_4FGL_J0945.2+5200_daily_bin1228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479599/ft1_4FGL_J0945.2+5200_daily_bin1228.fits outfile=/scratch/kocevski/479599/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1228.fits ra=146.316 dec=52.0053 rad=12.0 tmin=557625601.0 tmax=557884801.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.49
user 3.31
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/479599/ft2_4FGL_J0945.2+5200_daily_bin1228.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/479599/ft2_4FGL_J0945.2+5200_daily_bin1228.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/479599/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1228.fits evtable="EVENTS" outfile="/scratch/kocevski/479599/ft1_filtered_4FGL_J0945.2+5200_daily_bin1228.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 1.29
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/479599/ft1_filtered_4FGL_J0945.2+5200_daily_bin1228.fits" evtable="EVENTS" scfile=/scratch/kocevski/479599/ft2_4FGL_J0945.2+5200_daily_bin1228.fits sctable="SC_DATA" outfile=/scratch/kocevski/479599/ltcube_557625601_557884801_4FGL_J0945.2+5200_daily_bin1228.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/479599/ft2_4FGL_J0945.2+5200_daily_bin1228.fits
.....................!
real 13.32
user 12.10
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479599/ft1_filtered_4FGL_J0945.2+5200_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/479599/ft2_4FGL_J0945.2+5200_daily_bin1228.fits sctable="SC_DATA" expcube=/scratch/kocevski/479599/ltcube_557625601_557884801_4FGL_J0945.2+5200_daily_bin1228.fits outfile=/scratch/kocevski/479599/expmap_557625601_557884801_4FGL_J0945.2+5200_daily_bin1228.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/479599/ltcube_557625601_557884801_4FGL_J0945.2+5200_daily_bin1228.fits
.....................!
real 191.88
user 185.57
sys 4.57

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

Setting source of interest to:
4FGL J0945.2+5200 @ 146.316 52.0053

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/479599/ft1_filtered_4FGL_J0945.2+5200_daily_bin1228.fits scfile=/scratch/kocevski/479599/ft2_4FGL_J0945.2+5200_daily_bin1228.fits outfile=/scratch/kocevski/479599/cmap_557625601_557884801_4FGL_J0945.2+5200_daily_bin1228.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=146.316 yref=52.0053 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/479599/ft1_filtered_4FGL_J0945.2+5200_daily_bin1228.fits scfile=/scratch/kocevski/479599/ft2_4FGL_J0945.2+5200_daily_bin1228.fits outfile=/scratch/kocevski/479599/cmap_HighResolution_557625601_557884801_4FGL_J0945.2+5200_daily_bin1228.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=146.316 yref=52.0053 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/479599/ft1_filtered_4FGL_J0945.2+5200_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/479599/ft2_4FGL_J0945.2+5200_daily_bin1228.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/479599/Model_4FGL_J0945.2+5200_daily_bin1228.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/479599/ft1_filtered_4FGL_J0945.2+5200_daily_bin1228.fits....................!
real 20.62
user 19.31
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/479599/ft1_filtered_4FGL_J0945.2+5200_daily_bin1228.fits', '/scratch/kocevski/479599/ft2_4FGL_J0945.2+5200_daily_bin1228.fits', expMap='/scratch/kocevski/479599/expmap_557625601_557884801_4FGL_J0945.2+5200_daily_bin1228.fits', expCube='/scratch/kocevski/479599/ltcube_557625601_557884801_4FGL_J0945.2+5200_daily_bin1228.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/479599/Model_4FGL_J0945.2+5200_daily_bin1228.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0945.2+5200'

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.732e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/479599/ft1_filtered_4FGL_J0945.2+5200_daily_bin1228.fits
Spacecraft file(s): /scratch/kocevski/479599/ft2_4FGL_J0945.2+5200_daily_bin1228.fits
Exposure map: /scratch/kocevski/479599/expmap_557625601_557884801_4FGL_J0945.2+5200_daily_bin1228.fits
Exposure cube: /scratch/kocevski/479599/ltcube_557625601_557884801_4FGL_J0945.2+5200_daily_bin1228.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/479599/Model_4FGL_J0945.2+5200_daily_bin1228.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) = 847.463568115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.6733       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .44488E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4576       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15556E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .47752E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10695E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    29 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    20.929       1.0000         .10000E-03   10000.    
    32 'norm      '    .10254E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    3.0362       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    149.64       1.0000         .10000E-03   10000.    
    36 'norm      '    .13422E-03   1.0000         .10000E-03   10000.    
    37 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    38 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    39 'Prefactor '    .74670       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   842.2575     FROM MIGRAD    STATUS=CONVERGED    202 CALLS     6103 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10057E-03    9.6873        .94466E-05** at limit **
   2  norm          .10000E-03    3.0769        .71490E-06** at limit **
   3  norm          5.6708        7.4732        .21575E-05   -.50813E-04
   4  Prefactor     .10029E-03    10.572       -.40420E-05** at limit **
   5  Prefactor     .10059E-03    23.582        .39590E-04** at limit **
   6  Prefactor     .10000E-03    1.3902        .21638E-07** at limit **
   7  Prefactor     .10013E-03    13.576       -.16642E-04** at limit **
   8  Prefactor     .10001E-03    9.4627        .33199E-05** at limit **
   9  Prefactor     .10017E-03    22.388        .58067E-05** at limit **
  10  norm          .10000E-03    .47684       -.60610E-07** at limit **
  11  norm          3.4572        2.9285        .71352E-06   -.31064E-03
  12  Prefactor     .10000E-03    2.4259       -.71048E-07** at limit **
  13  Prefactor     .10000E-03    3.1790       -.40698E-06** at limit **
  14  Prefactor     .10084E-03    17.290       -.18006E-04** at limit **
  15  Prefactor     .10457E-03    19.086       -.26905E-04** at limit **
  16  Prefactor     .10010E-03    111.03        .90390E-04** at limit **
  17  Prefactor     .10000E-03    9.0012        .51570E-06** at limit **
  18  norm          .10066E-03    36.153       -.35429E-04** at limit **
  19  Prefactor     .10041E-03    31.054       -.87169E-05** at limit **
  20  Prefactor     .10000E-03    4.5869       -.82636E-07** at limit **
  21  Prefactor    10000.0        292.85        .18614E-03** at limit **
  22  norm          .10239E-03    13.018        .12346E-04** at limit **
  23  Prefactor     .10035E-03    5.2655        .14152E-04** at limit **
  24  Prefactor     .10021E-03    9.4100        .69148E-05** at limit **
  25  norm          .10000E-03    .73619       -.85848E-07** at limit **
  26  norm         10000.0        10.555        .47961E-04** at limit **
  27  Prefactor     .21169E-02    213.93       -.22599E-03** at limit **
  28  Prefactor    10000.0        9.7557        .49362E-04   -.50189E-03
  29  norm          .10000E-03    15.596       -.32558E-05** at limit **
  30  Prefactor     .10000E-03    10.398       -.56326E-05** at limit **
  31  Prefactor     20.904        1.8968       -.16794E-05   -.97103E-03
  32  norm          .10000E-03    2.1917        .20783E-07** at limit **
  33  norm          3.0396        2.9517        .55408E-06   -.20848E-03
  34  Prefactor     .10462E-03    34.744        .28809E-04** at limit **
  35  Prefactor     149.69        15.585        .10212E-04   -.12466E-01
  36  norm          .10000E-03    6.4529       -.12069E-05** at limit **
  37  Prefactor     .10004E-03    17.247       -.19436E-04** at limit **
  38  Normalizat    .10000E-01    .42299E-01    .17002E-05** at limit **
  39  Prefactor     .74680        .18661       -.31241E-05    .43162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100567
  norm       = 0.0001
  norm       = 5.67083
  Prefactor  = 0.000100293
  Prefactor  = 0.000100594
  Prefactor  = 0.0001
  Prefactor  = 0.000100131
  Prefactor  = 0.00010001
  Prefactor  = 0.000100168
  norm       = 0.0001
  norm       = 3.45718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010084
  Prefactor  = 0.000104569
  Prefactor  = 0.000100098
  Prefactor  = 0.0001
  norm       = 0.000100662
  Prefactor  = 0.000100409
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.000102389
  Prefactor  = 0.000100352
  Prefactor  = 0.000100211
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 0.00211691
  Prefactor  = 9999.99
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.9042
  norm       = 0.0001
  norm       = 3.03963
  Prefactor  = 0.00010462
  Prefactor  = 149.694
  norm       = 0.0001
  Prefactor  = 0.00010004
  Normalizat = 0.01
  Prefactor  = 0.7468
 **********
 **   18 **HESSE 
 **********

 FCN=   842.2575     FROM HESSE     STATUS=OK           996 CALLS     7099 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10057E-03    47.316        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.0740        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.6708        7.4815        .42161E-02   -1.5232    
   4  Prefactor     .10029E-03    52.344        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10059E-03    26.031        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.3902        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10013E-03    23.508        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    50.734        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10017E-03    13.091        .39581E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .47653        .88588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4572        2.9273        .54373E-02   -1.5336    
  12  Prefactor     .10000E-03    2.4259        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1779        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10084E-03    33.199        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10457E-03    57.508        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10010E-03    160.56        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.0000        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10066E-03    88.753        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10041E-03    96.370        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5786        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        371.49        .90712E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10239E-03    44.883        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10035E-03    245.26        .10590E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10021E-03    49.611        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .73599        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm         10000.0        1233.9        .10613E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .21169E-02    1344.8        .90764E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor    10000.0        8908.9        .91061E-02    1.5684    
  29  norm          .10000E-03    15.599        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    23.778        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     20.904        19.237        .21888E-02   -1.4793    
  32  norm          .10000E-03    2.1801        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          3.0396        2.9758        .58217E-02   -1.5359    
  34  Prefactor     .10462E-03    107.15        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     149.69        201.75        .82367E-03   -1.3255    
  36  norm          .10000E-03    3.9295        .31418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     .10004E-03    35.581        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Normalizat    .10000E-01    .42190E-01    .83466E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Prefactor     .74680        .19131        .43019E-01   -1.0172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48305e-06
Minuit parameter uncertainties:
  1  0.0103683
  2  1.68858e-05
  3  7.4827
  4  0.00783657
  5  0.00786926
  6  3.33842e-07
  7  0.00350515
  8  0.00140759
  9  0.00297057
  10  5.6549e-07
  11  2.92741
  12  1.52341e-06
  13  9.84561e-06
  14  0.0105659
  15  0.0324512
  16  0.00796627
  17  2.11605e-05
  18  0.0153534
  19  0.012578
  20  2.43323e-06
  21  0.375705
  22  0.0207258
  23  0.0186476
  24  0.00648181
  25  9.97567e-07
  26  0.330769
  27  3.37248
  28  25.5406
  29  0.000114772
  30  0.000365932
  31  19.2423
  32  3.9281e-07
  33  2.97594
  34  0.0445805
  35  202.689
  36  3.23446e-05
  37  0.00237543
  38  1.49172e-07
  39  0.191474
Done.

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

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.000e+04  3.757e-01  1.000e-04  1.000e+04 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  7.468e-01  1.915e-01  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  1.000e-02  1.492e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 66.89
Ra Dec: 146.316 52.005
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 5.46e-05 +/- 2.05e-09
Energy Flux (Fixed Index): 1.30e-02 +/- 4.87e-07

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) = 830.002065324
delta logL = 12.2553976484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 830.001536063
delta logL = 12.2559269096

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   830.0015     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      181 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        9729.0        .19541E-02** at limit **
   2  Index         3.6551        .14778        .39840E-06    .58592E-03
   3  Normalizat    .10000E-01    .32944E-01    .84319E-08** at limit **
   4  Prefactor     .61346        .16503        .99279E-07    .59267E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Index      = 3.65512
  Normalizat = 0.01
  Prefactor  = 0.613463
 **********
 **   18 **HESSE 
 **********

 FCN=   830.0015     FROM HESSE     STATUS=OK            23 CALLS      204 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        9731.5        .18143E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.6551        .14804        .85884E-04   -.27233    
   3  Normalizat    .10000E-01    .32987E-01    .16131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .61346        .16463        .19206E-03   -1.0702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25325e-10
Minuit parameter uncertainties:
  1  0.0140786
  2  0.148067
  3  4.83584e-09
  4  0.164763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479599': 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) = 830.001535796
delta logL = 12.2559271763

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.000e+04  1.408e-02  1.000e-04  1.000e+04 ( 1.000e-12)
381        Index:  3.655e+00  1.481e-01  0.000e+00  1.000e+01 (-1.000e+00)
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  6.135e-01  1.648e-01  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  1.000e-02  4.836e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 93.36
Ra Dec: 146.316 52.005
Photon Index (Free Index): 3.66 +/- 0.15
Photon Flux (Free Index): 1.69e-04 +/- 3.23e-05
Energy Flux (Free Index): 2.71e-02 +/- 4.27e-03

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/479599/cmap_HighResolution_557625601_557884801_4FGL_J0945.2+5200_daily_bin1228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.46e-05', energy_flux2='2.71e-02', photon_flux_error='2.05e-09', dlogl='1.23e+01', energy_flux='1.30e-02', photon_flux2='1.69e-04', job_status='DONE', time_completed='2021-09-01 01:09:21.179097', photon_index_error2='0.15', photon_index2='3.66', ts='66.89', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='4.27e-03', EG='0.01', time_epoch_completed='1630483761.18', return_code='0', job_id='479599', GAL2='0.61', EG2='0.01', return_code2='0', energy_flux_error='4.87e-07', photon_flux_error2='3.23e-05', ts2='93.36', photon_index='2.72' WHERE bin_id='1228' AND source_name='4FGL J0945.2+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 01:09:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 479599: <4FGL_J0945.2+5200_daily_bin1228> in cluster <slac> Done

Job <4FGL_J0945.2+5200_daily_bin1228> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 00:55:45 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 00:55:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 00:55:47 2021
Terminated at Wed Sep  1 01:09:21 2021
Results reported at Wed Sep  1 01:09:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.2+5200_daily_bin1228 146.316 52.0053 557625601 557884801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0945.2+5200 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   473.28 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             223.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

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

