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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1227
RA = 36.4048, Dec = -45.0366
tmin = 557366401, tmax = 557625601
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='385464', job_status='RUN', time_executed='2021-08-15 21:37:28.996051', time_epoch_executed='1629088649.0' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1227'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385464

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385464/ft1_4FGL_J0225.6-4502_daily_bin1227.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385464/ft2_4FGL_J0225.6-4502_daily_bin1227.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385464/ft1_4FGL_J0225.6-4502_daily_bin1227.fits outfile=/scratch/kocevski/385464/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1227.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=557366401.0 tmax=557625601.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.97
user 3.52
sys 1.38

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/385464/ft2_4FGL_J0225.6-4502_daily_bin1227.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/385464/ft2_4FGL_J0225.6-4502_daily_bin1227.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/385464/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1227.fits evtable="EVENTS" outfile="/scratch/kocevski/385464/ft1_filtered_4FGL_J0225.6-4502_daily_bin1227.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.73
user 0.34
sys 1.32

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385464/ft1_filtered_4FGL_J0225.6-4502_daily_bin1227.fits" evtable="EVENTS" scfile=/scratch/kocevski/385464/ft2_4FGL_J0225.6-4502_daily_bin1227.fits sctable="SC_DATA" outfile=/scratch/kocevski/385464/ltcube_557366401_557625601_4FGL_J0225.6-4502_daily_bin1227.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/385464/ft2_4FGL_J0225.6-4502_daily_bin1227.fits
.....................!
real 16.95
user 14.44
sys 1.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385464/ft1_filtered_4FGL_J0225.6-4502_daily_bin1227.fits evtable="EVENTS" scfile=/scratch/kocevski/385464/ft2_4FGL_J0225.6-4502_daily_bin1227.fits sctable="SC_DATA" expcube=/scratch/kocevski/385464/ltcube_557366401_557625601_4FGL_J0225.6-4502_daily_bin1227.fits outfile=/scratch/kocevski/385464/expmap_557366401_557625601_4FGL_J0225.6-4502_daily_bin1227.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/385464/ltcube_557366401_557625601_4FGL_J0225.6-4502_daily_bin1227.fits
.....................!
real 194.08
user 186.87
sys 5.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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 180 point sources and 1 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 J0225.6-4502 @ 36.4048 -45.0366

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/385464/ft1_filtered_4FGL_J0225.6-4502_daily_bin1227.fits scfile=/scratch/kocevski/385464/ft2_4FGL_J0225.6-4502_daily_bin1227.fits outfile=/scratch/kocevski/385464/cmap_557366401_557625601_4FGL_J0225.6-4502_daily_bin1227.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=36.4048 yref=-45.0366 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 1.73
user 0.39
sys 1.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385464/ft1_filtered_4FGL_J0225.6-4502_daily_bin1227.fits scfile=/scratch/kocevski/385464/ft2_4FGL_J0225.6-4502_daily_bin1227.fits outfile=/scratch/kocevski/385464/cmap_HighResolution_557366401_557625601_4FGL_J0225.6-4502_daily_bin1227.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=36.4048 yref=-45.0366 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 1.80
user 0.40
sys 1.29

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385464/ft1_filtered_4FGL_J0225.6-4502_daily_bin1227.fits evtable="EVENTS" scfile=/scratch/kocevski/385464/ft2_4FGL_J0225.6-4502_daily_bin1227.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385464/Model_4FGL_J0225.6-4502_daily_bin1227.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/385464/ft1_filtered_4FGL_J0225.6-4502_daily_bin1227.fits.....................!
real 105.75
user 101.58
sys 2.79

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/385464/ft1_filtered_4FGL_J0225.6-4502_daily_bin1227.fits', '/scratch/kocevski/385464/ft2_4FGL_J0225.6-4502_daily_bin1227.fits', expMap='/scratch/kocevski/385464/expmap_557366401_557625601_4FGL_J0225.6-4502_daily_bin1227.fits', expCube='/scratch/kocevski/385464/ltcube_557366401_557625601_4FGL_J0225.6-4502_daily_bin1227.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/385464/Model_4FGL_J0225.6-4502_daily_bin1227.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0225.6-4502'

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  2.072e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.479e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/385464/ft1_filtered_4FGL_J0225.6-4502_daily_bin1227.fits
Spacecraft file(s): /scratch/kocevski/385464/ft2_4FGL_J0225.6-4502_daily_bin1227.fits
Exposure map: /scratch/kocevski/385464/expmap_557366401_557625601_4FGL_J0225.6-4502_daily_bin1227.fits
Exposure cube: /scratch/kocevski/385464/ltcube_557366401_557625601_4FGL_J0225.6-4502_daily_bin1227.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/385464/Model_4FGL_J0225.6-4502_daily_bin1227.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) = 5042.57254103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1651       1.0000         .10000E-03   10000.    
     2 'norm      '    8.5407       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.9623       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .96887       1.0000         .10000E-03   10000.    
    11 'norm      '    11.146       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .42158       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.857       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5971       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .42384       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.198       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0529       1.0000         .10000E-03   10000.    
    20 'Prefactor '    52.851       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1131       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.366       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.6818       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .42556       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5042.533     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3785 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2671        218.12       -.74148E-04    .98438E-05
   2  norm          8.5389        10.263        .17275E-05    .12626E-03
   3  Prefactor     .10000E-03    58.262       -.78326E-06** at limit **
   4  Prefactor     .10000E-03    7.0308        .15352E-06** at limit **
   5  Prefactor     .10000E-03    16.156        .17901E-05** at limit **
   6  norm          .10000E-03    23.663       -.81069E-05** at limit **
   7  norm          5.9617        7.2323       -.61870E-06   -.30667E-03
   8  Prefactor     .10000E-03    5.0106        .19403E-07** at limit **
   9  Prefactor     .10000E-03    27.965        .14125E-04** at limit **
  10  Prefactor     .96001        6.4418        .74895E-06   -.37612E-03
  11  norm          11.149        3.2553        .17032E-06   -.46482E-03
  12  Prefactor     .41396        11.903        .13276E-05   -.28140E-03
  13  Prefactor     .10000E-03    12.489       -.27236E-06** at limit **
  14  norm          15.857        3.7283        .12989E-06   -.15273E-04
  15  norm          4.6001        4.0290       -.22393E-06    .11022E-02
  16  Prefactor     .10000E-03    4.4541        .14453E-08** at limit **
  17  Prefactor     .34226        28.068       -.10354E-04    .44800E-03
  18  Prefactor     30.244        43.325        .22307E-04    .59448E-04
  19  norm          2.0529        1.4557        .19321E-06   -.55363E-03
  20  Prefactor     53.066        194.62        .28175E-03    .21094E-04
  21  Prefactor     8.1118        5.6712        .18366E-06   -.10329E-03
  22  Prefactor     .10000E-03    3.7431        .37943E-07** at limit **
  23  Prefactor     .10000E-03    34.285       -.71103E-05** at limit **
  24  Prefactor     .10000E-03    3.4133        .90483E-07** at limit **
  25  Prefactor     23.364        21.197        .19872E-05    .11676E-04
  26  Normalizat    1.6818        .23477       -.29299E-06    .49148E-03
  27  Prefactor     .42555        .24235       -.79380E-05    .13910E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.26708
  norm       = 8.53885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 5.96167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.960014
  norm       = 11.1487
  Prefactor  = 0.413959
  Prefactor  = 0.0001
  norm       = 15.8575
  norm       = 4.60011
  Prefactor  = 0.0001
  Prefactor  = 0.342257
  Prefactor  = 30.2436
  norm       = 2.05286
  Prefactor  = 53.0661
  Prefactor  = 8.11182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.3643
  Normalizat = 1.68179
  Prefactor  = 0.425547
 **********
 **   18 **HESSE 
 **********

 FCN=   5042.533     FROM HESSE     STATUS=OK           502 CALLS     4287 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2671        227.47        .42610E-02   -1.5483    
   2  norm          8.5389        10.247        .13717E-03   -1.5123    
   3  Prefactor     .10000E-03    58.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.1740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    23.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.9617        7.2011        .16445E-03   -1.5220    
   8  Prefactor     .10000E-03    5.0136        .15524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .96001        18.612        .29408E-02   -1.5512    
  11  norm          11.149        3.2236        .56428E-04   -1.5040    
  12  Prefactor     .41396        128.65        .46241E-02   -1.5579    
  13  Prefactor     .10000E-03    12.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.857        3.7226        .64014E-04   -1.4911    
  15  norm          4.6001        4.0300        .11986E-03   -1.5279    
  16  Prefactor     .10000E-03    4.4606        .14634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .34226        27.863        .10953       -1.5591    
  18  Prefactor     30.244        43.311        .72910E-04   -1.4608    
  19  norm          2.0529        1.4422        .67553E-04   -1.5421    
  20  Prefactor     53.066        194.19        .27585E-03   -1.4250    
  21  Prefactor     8.1118        5.6694        .13567E-03   -1.5138    
  22  Prefactor     .10000E-03    3.7474        .13417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    34.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.4334        .12811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.364        21.218        .82865E-04   -1.4741    
  26  Normalizat    1.6818        .26192        .22052E-03   -.72791    
  27  Prefactor     .42555        .26197        .42332E-03   -1.1552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37337e-09
Minuit parameter uncertainties:
  1  34.0849
  2  10.2487
  3  0.000149489
  4  2.92068e-05
  5  0.000254248
  6  5.54066e-06
  7  7.20213
  8  6.50442e-06
  9  0.000137467
  10  8.45655
  11  3.2236
  12  14.6251
  13  5.277e-06
  14  3.7227
  15  4.03019
  16  4.61412e-06
  17  6.17821
  18  43.3559
  19  1.44218
  20  196.581
  21  5.66978
  22  8.63602e-06
  23  0.000263987
  24  1.47329e-05
  25  21.2244
  26  0.262131
  27  0.262716
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  4.140e-01  1.463e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.479e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  4.255e-01  2.627e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.682e+00  2.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 36.405 -45.037
Photon Flux Upper Limit: 9.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385464/likelihoodResults_557366401_557625601_4FGL_J0225.6-4502_daily_bin1227.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) = 5042.53202343
delta logL = 0.00136214090526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5042.52739416
delta logL = 0.00599141246312

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5042.527     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      278 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57371        8.4246        .68172E-01    .37346E-03
   2  Index         3.2666        .66785        .50000       -.49421E-06
   3  Normalizat    1.6760        .89848E-02    .49958E-01   -.48310E-05
   4  Prefactor     .42882        .93368E-02    .95167E-01    .30899E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.573709
  Index      = 3.26659
  Normalizat = 1.67598
  Prefactor  = 0.428818
 **********
 **   18 **HESSE 
 **********

 FCN=   5042.527     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      313 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57371        1936.9        .23817E-02   -1.5556    
   2  Index         3.2666        5.1505        .58613E-02   -.35403    
   3  Normalizat    1.6760        .14667        .22083E-03   -.72947    
   4  Prefactor     .42882        .15932        .42182E-03   -1.1536    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.22356e-06
Minuit parameter uncertainties:
  1  69.0303
  2  59.2401
  3  0.146713
  4  0.159483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385464': 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) = 5042.52738682
delta logL = 0.00599874734871

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  5.737e-01  6.903e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  3.267e+00  5.924e+01  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  4.288e-01  1.595e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.676e+00  1.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 36.405 -45.037

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/385464/cmap_HighResolution_557366401_557625601_4FGL_J0225.6-4502_daily_bin1227.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.57e-03', job_status='DONE', photon_flux_upper_limit='9.74e-08', time_completed='2021-08-15 21:51:09.116031', job_id='385464', GAL2='0.43', fit_tolerance='1e-08', EG2='1.68', EG='1.68', time_epoch_completed='1629089469.12', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='6.00e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1227' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:51:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0016>
Subject: Job 385464: <4FGL_J0225.6-4502_daily_bin1227> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin1227> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 21:35:31 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:35:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 21:35:58 2021
Terminated at Sun Aug 15 21:51:10 2021
Results reported at Sun Aug 15 21:51:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1227 36.4048 -45.0366 557366401 557625601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0225.6-4502 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   830.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            939 sec.

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

