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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1228
RA = 36.4048, Dec = -45.0366
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='385466', job_status='RUN', time_executed='2021-08-15 21:37:47.117219', time_epoch_executed='1629088667.12' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385466

Creating custom pfile directory:
/scratch/kocevski/385466/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/385466/ft1_4FGL_J0225.6-4502_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/385466/ft2_4FGL_J0225.6-4502_daily_bin1228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385466/ft1_4FGL_J0225.6-4502_daily_bin1228.fits outfile=/scratch/kocevski/385466/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1228.fits ra=36.4048 dec=-45.0366 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 5.36
user 3.23
sys 2.09

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/385466/ft2_4FGL_J0225.6-4502_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/385466/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1228.fits evtable="EVENTS" outfile="/scratch/kocevski/385466/ft1_filtered_4FGL_J0225.6-4502_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 2.38
user 0.34
sys 2.00

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385466/ft1_filtered_4FGL_J0225.6-4502_daily_bin1228.fits" evtable="EVENTS" scfile=/scratch/kocevski/385466/ft2_4FGL_J0225.6-4502_daily_bin1228.fits sctable="SC_DATA" outfile=/scratch/kocevski/385466/ltcube_557625601_557884801_4FGL_J0225.6-4502_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/385466/ft2_4FGL_J0225.6-4502_daily_bin1228.fits
.....................!
real 15.89
user 13.38
sys 2.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385466/ft1_filtered_4FGL_J0225.6-4502_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/385466/ft2_4FGL_J0225.6-4502_daily_bin1228.fits sctable="SC_DATA" expcube=/scratch/kocevski/385466/ltcube_557625601_557884801_4FGL_J0225.6-4502_daily_bin1228.fits outfile=/scratch/kocevski/385466/expmap_557625601_557884801_4FGL_J0225.6-4502_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/385466/ltcube_557625601_557884801_4FGL_J0225.6-4502_daily_bin1228.fits
.....................!
real 194.70
user 185.04
sys 8.09

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/385466/ft1_filtered_4FGL_J0225.6-4502_daily_bin1228.fits scfile=/scratch/kocevski/385466/ft2_4FGL_J0225.6-4502_daily_bin1228.fits outfile=/scratch/kocevski/385466/cmap_557625601_557884801_4FGL_J0225.6-4502_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=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 2.42
user 0.38
sys 1.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385466/ft1_filtered_4FGL_J0225.6-4502_daily_bin1228.fits scfile=/scratch/kocevski/385466/ft2_4FGL_J0225.6-4502_daily_bin1228.fits outfile=/scratch/kocevski/385466/cmap_HighResolution_557625601_557884801_4FGL_J0225.6-4502_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=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 2.36
user 0.38
sys 1.97

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/385466/ft1_filtered_4FGL_J0225.6-4502_daily_bin1228.fits', '/scratch/kocevski/385466/ft2_4FGL_J0225.6-4502_daily_bin1228.fits', expMap='/scratch/kocevski/385466/expmap_557625601_557884801_4FGL_J0225.6-4502_daily_bin1228.fits', expCube='/scratch/kocevski/385466/ltcube_557625601_557884801_4FGL_J0225.6-4502_daily_bin1228.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/385466/Model_4FGL_J0225.6-4502_daily_bin1228.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/385466/ft1_filtered_4FGL_J0225.6-4502_daily_bin1228.fits
Spacecraft file(s): /scratch/kocevski/385466/ft2_4FGL_J0225.6-4502_daily_bin1228.fits
Exposure map: /scratch/kocevski/385466/expmap_557625601_557884801_4FGL_J0225.6-4502_daily_bin1228.fits
Exposure cube: /scratch/kocevski/385466/ltcube_557625601_557884801_4FGL_J0225.6-4502_daily_bin1228.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/385466/Model_4FGL_J0225.6-4502_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) = 4413.90849496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.886       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    82.227       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.597       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.681       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    34.683       1.0000         .10000E-03   10000.    
    15 'norm      '    5.9030       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5822       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.752       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    60.065       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.660       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.798       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.9839       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .73203       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.6614       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=   4413.856     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3859 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.885        54.569       -.13227E-05    .29311E-06
   2  norm          .10000E-03    6.1102        .29150E-06** at limit **
   3  Prefactor     .10000E-03    32.625       -.23673E-04** at limit **
   4  Prefactor     .10000E-03    7.0698       -.10623E-05** at limit **
   5  Prefactor     .10000E-03    4.7011       -.32499E-07** at limit **
   6  norm          82.230        87.280        .34437E-05    .22095E-06
   7  norm          .10000E-03    4.2050        .34433E-08** at limit **
   8  Prefactor     11.598        24.506        .74902E-07    .52077E-05
   9  Prefactor     .10000E-03    19.658        .59710E-05** at limit **
  10  Prefactor     .10000E-03    3.4979        .14998E-07** at limit **
  11  norm          12.681        3.5330       -.13650E-06   -.10970E-02
  12  Prefactor     .10000E-03    15.470       -.39208E-05** at limit **
  13  Prefactor     .10000E-03    20.153        .36616E-05** at limit **
  14  norm          34.683        5.9759        .43469E-07    .49560E-03
  15  norm          5.9035        5.1354        .39866E-06   -.84881E-04
  16  Prefactor     6.5835        17.292       -.49099E-06   -.40701E-04
  17  Prefactor     14.748        28.655       -.22261E-05    .53465E-05
  18  Prefactor     .10000E-03    82.074       -.29116E-04** at limit **
  19  norm          .10000E-03    .81219       -.19238E-07** at limit **
  20  Prefactor     60.040        275.63       -.31127E-04    .22307E-05
  21  Prefactor     13.660        10.600       -.14239E-06   -.82652E-04
  22  Prefactor     20.798        20.879       -.21489E-06   -.59440E-04
  23  Prefactor     .10000E-03    7.9014        .10069E-05** at limit **
  24  Prefactor     4.9839        6.3616       -.13700E-06   -.12031E-03
  25  Prefactor     .10000E-03    49.720        .39046E-04** at limit **
  26  Normalizat    .73199        .27121       -.16129E-06   -.90024E-04
  27  Prefactor     1.6615        .29217        .84443E-06   -.10257E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.8845
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 82.2303
  norm       = 0.0001
  Prefactor  = 11.5978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 34.6834
  norm       = 5.90347
  Prefactor  = 6.58353
  Prefactor  = 14.7482
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 60.0405
  Prefactor  = 13.6602
  Prefactor  = 20.7976
  Prefactor  = 0.0001
  Prefactor  = 4.9839
  Prefactor  = 0.0001
  Normalizat = 0.731988
  Prefactor  = 1.66145
 **********
 **   18 **HESSE 
 **********

 FCN=   4413.856     FROM HESSE     STATUS=OK           484 CALLS     4343 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.885        54.562        .55152E-04   -1.4252    
   2  norm          .10000E-03    6.1230        .16039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0941        .17250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.7071        .14068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          82.230        87.330        .44295E-04   -1.3892    
   7  norm          .10000E-03    4.2441        .13303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.598        24.502        .11764E-03   -1.5027    
   9  Prefactor     .10000E-03    19.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5052        .12130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.681        3.5314        .31048E-03   -1.4996    
  12  Prefactor     .10000E-03    15.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          34.683        5.9758        .32452E-03   -1.4529    
  15  norm          5.9035        5.1355        .12901E-03   -1.5222    
  16  Prefactor     6.5835        17.041        .15642E-03   -1.5195    
  17  Prefactor     14.748        28.650        .10428E-03   -1.4940    
  18  Prefactor     .10000E-03    82.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.2650        .11284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     60.040        276.24        .51769E-04   -1.4157    
  21  Prefactor     13.660        10.590        .10837E-03   -1.4969    
  22  Prefactor     20.798        20.864        .87827E-04   -1.4796    
  23  Prefactor     .10000E-03    7.9020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.9839        6.3529        .18014E-03   -1.5261    
  25  Prefactor     .10000E-03    49.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .73199        .32219        .35566E-03   -1.0264    
  27  Prefactor     1.6615        .35248        .27888E-03   -.73113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7958e-10
Minuit parameter uncertainties:
  1  54.6136
  2  4.06269e-07
  3  3.71945e-06
  4  3.45139e-07
  5  5.32622e-07
  6  87.4663
  7  2.0086e-06
  8  24.5229
  9  2.88097e-06
  10  3.7642e-08
  11  3.5315
  12  3.14454e-06
  13  3.35644e-07
  14  5.97594
  15  5.13584
  16  17.0536
  17  28.6767
  18  7.56941e-05
  19  3.17251e-07
  20  259.571
  21  10.5919
  22  20.8714
  23  1.04585e-06
  24  6.35375
  25  0.000260771
  26  0.323025
  27  0.35301
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  3.145e-06  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:  1.661e+00  3.530e-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:  7.320e-01  3.230e-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: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385466/likelihoodResults_557625601_557884801_4FGL_J0225.6-4502_daily_bin1228.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) = 4413.85679083
delta logL = -0.000306617670503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4413.85648573
delta logL = -1.52126631292e-06

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4413.856     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      281 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10250E-03    3.8826        .18142E-01** at limit **
   2  Index         2.7605        6.1020        .50000        .21076E-04
   3  Normalizat    .73199        .36546E-02    .35566E-03   -.72880E-05
   4  Prefactor     1.6614        .41315E-02    .27888E-03   -.14300E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102502
  Index      = 2.76047
  Normalizat = 0.731988
  Prefactor  = 1.66145
 **********
 **   18 **HESSE 
 **********

 FCN=   4413.856     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10250E-03    305.42        .44233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7605        6.2665        .50000       -.46442    
   3  Normalizat    .73199        .32963E-01    .14226E-04   -1.0264    
   4  Prefactor     1.6614        .37265E-01    .55777E-04   -.73113    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.70188e-08
Minuit parameter uncertainties:
  1  0.0555696
  2  517.822
  3  0.0329643
  4  0.0372656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385466': 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) = 4413.85648527
delta logL = -1.05727576738e-06

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.025e-04  5.557e-02  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.760e+00  5.178e+02  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:  1.661e+00  3.727e-02  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:  7.320e-01  3.296e-02  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/385466/cmap_HighResolution_557625601_557884801_4FGL_J0225.6-4502_daily_bin1228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.57e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-08-15 21:50:46.322576', job_id='385466', GAL2='1.66', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1629089446.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.66', dlogl='-1.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1228' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:50:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 385466: <4FGL_J0225.6-4502_daily_bin1228> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin1228> 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) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:35:59 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:59 2021
Terminated at Sun Aug 15 21:50:47 2021
Results reported at Sun Aug 15 21:50:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1228 36.4048 -45.0366 557625601 557884801 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 :                                   801.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            916 sec.

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

