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


Performing analysis on: 4FGL_J0240.5+6113_monthly_bin118
RA = 40.1426, Dec = 61.2287
tmin = 542851201, tmax = 545443201
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='51589', job_status='RUN', time_executed='2021-10-10 19:20:41.757097', time_epoch_executed='1633918841.76' WHERE source_name='4FGL J0240.5+6113' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/51589

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/51589/ft1_4FGL_J0240.5+6113_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/51589/ft2_4FGL_J0240.5+6113_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/51589/ft1_4FGL_J0240.5+6113_monthly_bin118.fits outfile=/scratch/kocevski/51589/ft1_filteredMKT_4FGL_J0240.5+6113_monthly_bin118.fits ra=40.1426 dec=61.2287 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.44
user 17.95
sys 0.41

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/51589/ft2_4FGL_J0240.5+6113_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/51589/ft2_4FGL_J0240.5+6113_monthly_bin118.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/51589/ft1_filteredMKT_4FGL_J0240.5+6113_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/51589/ft1_filtered_4FGL_J0240.5+6113_monthly_bin118.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.60
user 0.43
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/51589/ft1_filtered_4FGL_J0240.5+6113_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/51589/ft2_4FGL_J0240.5+6113_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/51589/ltcube_542851201_545443201_4FGL_J0240.5+6113_monthly_bin118.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/51589/ft2_4FGL_J0240.5+6113_monthly_bin118.fits
.....................!
real 40.31
user 39.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/51589/ft1_filtered_4FGL_J0240.5+6113_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/51589/ft2_4FGL_J0240.5+6113_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/51589/ltcube_542851201_545443201_4FGL_J0240.5+6113_monthly_bin118.fits outfile=/scratch/kocevski/51589/expmap_542851201_545443201_4FGL_J0240.5+6113_monthly_bin118.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/51589/ltcube_542851201_545443201_4FGL_J0240.5+6113_monthly_bin118.fits
.....................!
real 190.98
user 185.57
sys 5.02

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Added 179 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0240.5+6113 @ 40.1426 61.2287

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/51589/ft1_filtered_4FGL_J0240.5+6113_monthly_bin118.fits scfile=/scratch/kocevski/51589/ft2_4FGL_J0240.5+6113_monthly_bin118.fits outfile=/scratch/kocevski/51589/cmap_542851201_545443201_4FGL_J0240.5+6113_monthly_bin118.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=40.1426 yref=61.2287 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.60
user 0.44
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/51589/ft1_filtered_4FGL_J0240.5+6113_monthly_bin118.fits scfile=/scratch/kocevski/51589/ft2_4FGL_J0240.5+6113_monthly_bin118.fits outfile=/scratch/kocevski/51589/cmap_HighResolution_542851201_545443201_4FGL_J0240.5+6113_monthly_bin118.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=40.1426 yref=61.2287 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.61
user 0.46
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/51589/ft1_filtered_4FGL_J0240.5+6113_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/51589/ft2_4FGL_J0240.5+6113_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/51589/Model_4FGL_J0240.5+6113_monthly_bin118.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/51589/ft1_filtered_4FGL_J0240.5+6113_monthly_bin118.fits.....................!
real 73.18
user 71.86
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/51589/ft1_filtered_4FGL_J0240.5+6113_monthly_bin118.fits', '/scratch/kocevski/51589/ft2_4FGL_J0240.5+6113_monthly_bin118.fits', expMap='/scratch/kocevski/51589/expmap_542851201_545443201_4FGL_J0240.5+6113_monthly_bin118.fits', expCube='/scratch/kocevski/51589/ltcube_542851201_545443201_4FGL_J0240.5+6113_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/51589/Model_4FGL_J0240.5+6113_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0240.5+6113'

4FGL J0240.5+6113
   Spectrum: LogParabola
325         norm:  4.756e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
326        alpha:  2.399e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  1.481e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/51589/ft1_filtered_4FGL_J0240.5+6113_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/51589/ft2_4FGL_J0240.5+6113_monthly_bin118.fits
Exposure map: /scratch/kocevski/51589/expmap_542851201_545443201_4FGL_J0240.5+6113_monthly_bin118.fits
Exposure cube: /scratch/kocevski/51589/ltcube_542851201_545443201_4FGL_J0240.5+6113_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/51589/Model_4FGL_J0240.5+6113_monthly_bin118.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) = 4289.4503428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.466       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4202       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .58531E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.1134       1.0000         .10000E-03   10000.    
    11 'norm      '    .11529E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3768       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1111       1.0000         .10000E-03   10000.    
    14 'norm      '    9.9166       1.0000         .10000E-03   10000.    
    15 'Prefactor '    181.78       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12911E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16060E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    167.01       1.0000         .10000E-03   10000.    
    20 'Normalizat'    2.5824       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4289.273     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2205 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.468        30.940       -.19597E-05    .96070E-05
   2  Prefactor     .10000E-03    43.594       -.82933E-05** at limit **
   3  norm          .10000E-03    11.494        .30913E-07** at limit **
   4  Prefactor     4.4206        22.466       -.24437E-05   -.42621E-04
   5  Prefactor     .10000E-03    16.284        .27592E-05** at limit **
   6  Prefactor     .10000E-03    227.12        .30539E-04** at limit **
   7  Prefactor     .10000E-03    4.8259       -.19671E-06** at limit **
   8  norm          .10000E-03    47.973        .24029E-05** at limit **
   9  Prefactor     .10000E-03    203.05       -.97054E-05** at limit **
  10  norm          7.1135        2.3069        .31310E-07   -.29688E-04
  11  norm          .10000E-03    38.033        .93239E-05** at limit **
  12  norm          2.3066        158.62       -.85623E-04   -.25426E-04
  13  Prefactor     7.1027        11.035        .14889E-06   -.92556E-04
  14  norm          9.8765        22.025        .39450E-04    .11197E-03
  15  Prefactor     181.66        155.75       -.86218E-04   -.26534E-04
  16  Prefactor     .10000E-03    19.370       -.23587E-06** at limit **
  17  Prefactor     .10001E-03    12.814        .15985E-05** at limit **
  18  Prefactor     .10000E-03    45.894       -.50606E-05** at limit **
  19  Prefactor     167.02        127.88        .16412E-05    .51938E-05
  20  Normalizat    2.5822        1.0427        .14979E-04   -.66740E-05
  21  Prefactor     .90883        .90704E-01    .40141E-06    .16530E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 29.4679
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.42059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.11346
  norm       = 0.0001
  norm       = 2.30661
  Prefactor  = 7.10272
  norm       = 9.87653
  Prefactor  = 181.655
  Prefactor  = 0.000100002
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 167.017
  Normalizat = 2.5822
  Prefactor  = 0.908833
 **********
 **   18 **HESSE 
 **********

 FCN=   4289.273     FROM HESSE     STATUS=OK           311 CALLS     2516 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.468        30.942        .73807E-04   -1.4622    
   2  Prefactor     .10000E-03    43.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.4206        22.483        .19155E-03   -1.5287    
   5  Prefactor     .10000E-03    16.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    227.28        .21077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0344        .28056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    48.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    203.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.1135        2.3078        .53249E-04   -1.5174    
  11  norm          .10000E-03    38.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3066        161.24        .26573E-03   -1.5404    
  13  Prefactor     7.1027        11.164        .15043E-03   -1.5175    
  14  norm          9.8765        22.039        .12725E-03   -1.5079    
  15  Prefactor     181.66        155.91        .14971E-03   -1.3004    
  16  Prefactor     .10000E-03    19.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    12.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    45.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     167.02        127.94        .31214E-04   -1.3116    
  20  Normalizat    2.5822        1.1222        .94112E-03   -.50641    
  21  Prefactor     .90883        .98546E-01    .13303E-03   -.95833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.91676e-10
Minuit parameter uncertainties:
  1  30.9585
  2  2.40946e-05
  3  5.2948e-06
  4  19.9504
  5  1.04249e-05
  6  4.03777e-05
  7  5.37942e-05
  8  4.38423e-05
  9  5.90886e-05
  10  2.30782
  11  0.000123175
  12  38.6785
  13  11.1676
  14  22.0575
  15  156.267
  16  0.00042775
  17  0.000595906
  18  2.65537e-05
  19  128.157
  20  1.13493
  21  0.0985657
Done.

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

Extracting fit parameters...

4FGL J0240.5+6113
   Spectrum: LogParabola
325         norm:  7.113e+00  2.308e+00  1.000e-04  1.000e+04 ( 1.000e-11)
326        alpha:  2.399e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  1.481e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  9.088e-01  9.857e-02  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  2.582e+00  1.135e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.16
Ra Dec: 40.143 61.229
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.17e-06 +/- 3.79e-07
Energy Flux (Fixed Index): 4.40e-04 +/- 1.43e-04

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) = 4289.18195837
delta logL = 0.0907728308457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4289.17696135
delta logL = 0.0957698415277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0716       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5523       1.0000          .0000       5.0000    
     3 'Normalizat'    2.4819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91312       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4289.177     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      229 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0716        24.830        .40735E-02    .18008E-02
   2  alpha         2.5523        3.6108        .11938        .15717E-03
   3  Normalizat    2.4819        .96226        .21351        .72443E-04
   4  Prefactor     .91313        .60313E-01    .30035E-01    .70993E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.0716
  alpha      = 2.55226
  Normalizat = 2.4819
  Prefactor  = 0.913127
 **********
 **   18 **HESSE 
 **********

 FCN=   4289.177     FROM HESSE     STATUS=OK            31 CALLS      260 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0716        3.2954        .48090E-04   -1.5215    
   2  alpha         2.5523        .37369        .50959E-02    .20904E-01
   3  Normalizat    2.4819        1.0439        .95199E-03   -.52953    
   4  Prefactor     .91313        .97391E-01    .13272E-03   -.95684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25347e-10
Minuit parameter uncertainties:
  1  3.29545
  2  0.3751
  3  1.0544
  4  0.0974099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/51589': 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) = 4289.17696135
delta logL = 0.0957698451684

Extracting fit parameters...

4FGL J0240.5+6113
   Spectrum: LogParabola
325         norm:  6.072e+00  3.295e+00  1.000e-04  1.000e+04 ( 1.000e-11)
326        alpha:  2.552e+00  3.751e-01  0.000e+00  5.000e+00 ( 1.000e+00)
327         beta:  1.481e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  9.131e-01  9.741e-02  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  2.482e+00  1.054e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.22
Ra Dec: 40.143 61.229
Photon Index (Free Index): 2.55 +/- 0.38
Photon Flux (Free Index): 1.28e-06 +/- 4.69e-07
Energy Flux (Free Index): 4.14e-04 +/- 1.46e-04

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/51589/cmap_HighResolution_542851201_545443201_4FGL_J0240.5+6113_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-06', energy_flux2='4.14e-04', photon_flux_error='3.79e-07', dlogl='9.58e-02', energy_flux='4.40e-04', photon_flux2='1.28e-06', job_status='DONE', time_completed='2021-10-10 19:32:29.774930', photon_index_error2='0.38', photon_index2='2.55', ts='19.16', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.46e-04', EG='2.58', time_epoch_completed='1633919549.77', return_code='0', job_id='51589', GAL2='0.91', EG2='2.48', return_code2='0', energy_flux_error='1.43e-04', photon_flux_error2='4.69e-07', ts2='19.22', photon_index='2.40' WHERE bin_id='118' AND source_name='4FGL J0240.5+6113' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Oct 10 19:32:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 51589: <4FGL_J0240.5+6113_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0240.5+6113_monthly_bin118> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Oct 10 19:20:14 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 10 19:20:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 10 19:20:15 2021
Terminated at Sun Oct 10 19:32:30 2021
Results reported at Sun Oct 10 19:32:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0240.5+6113_monthly_bin118 40.1426 61.2287 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0240.5+6113 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   673.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             299.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            736 sec.

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

