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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin927
RA = 186.252, Dec = 3.5098
tmin = 479606401, tmax = 479865601
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='609663', job_status='RUN', time_executed='2021-09-05 13:55:50.632433', time_epoch_executed='1630875350.63' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='927'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/609663

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/609663/ft1_4FGL_J1225.0+0330_daily_bin927.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/609663/ft2_4FGL_J1225.0+0330_daily_bin927.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/609663/ft1_4FGL_J1225.0+0330_daily_bin927.fits outfile=/scratch/kocevski/609663/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin927.fits ra=186.252 dec=3.5098 rad=12.0 tmin=479606401.0 tmax=479865601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.43
user 3.23
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/609663/ft2_4FGL_J1225.0+0330_daily_bin927.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/609663/ft2_4FGL_J1225.0+0330_daily_bin927.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/609663/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin927.fits evtable="EVENTS" outfile="/scratch/kocevski/609663/ft1_filtered_4FGL_J1225.0+0330_daily_bin927.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/609663/ft1_filtered_4FGL_J1225.0+0330_daily_bin927.fits" evtable="EVENTS" scfile=/scratch/kocevski/609663/ft2_4FGL_J1225.0+0330_daily_bin927.fits sctable="SC_DATA" outfile=/scratch/kocevski/609663/ltcube_479606401_479865601_4FGL_J1225.0+0330_daily_bin927.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/609663/ft2_4FGL_J1225.0+0330_daily_bin927.fits
.....................!
real 12.05
user 11.65
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/609663/ft1_filtered_4FGL_J1225.0+0330_daily_bin927.fits evtable="EVENTS" scfile=/scratch/kocevski/609663/ft2_4FGL_J1225.0+0330_daily_bin927.fits sctable="SC_DATA" expcube=/scratch/kocevski/609663/ltcube_479606401_479865601_4FGL_J1225.0+0330_daily_bin927.fits outfile=/scratch/kocevski/609663/expmap_479606401_479865601_4FGL_J1225.0+0330_daily_bin927.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/609663/ltcube_479606401_479865601_4FGL_J1225.0+0330_daily_bin927.fits
.....................!
real 191.09
user 185.31
sys 5.27

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

Setting source of interest to:
4FGL J1225.0+0330 @ 186.252 3.5098

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/609663/ft1_filtered_4FGL_J1225.0+0330_daily_bin927.fits scfile=/scratch/kocevski/609663/ft2_4FGL_J1225.0+0330_daily_bin927.fits outfile=/scratch/kocevski/609663/cmap_479606401_479865601_4FGL_J1225.0+0330_daily_bin927.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=186.252 yref=3.5098 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/609663/ft1_filtered_4FGL_J1225.0+0330_daily_bin927.fits scfile=/scratch/kocevski/609663/ft2_4FGL_J1225.0+0330_daily_bin927.fits outfile=/scratch/kocevski/609663/cmap_HighResolution_479606401_479865601_4FGL_J1225.0+0330_daily_bin927.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=186.252 yref=3.5098 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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/609663/ft1_filtered_4FGL_J1225.0+0330_daily_bin927.fits evtable="EVENTS" scfile=/scratch/kocevski/609663/ft2_4FGL_J1225.0+0330_daily_bin927.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/609663/Model_4FGL_J1225.0+0330_daily_bin927.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/609663/ft1_filtered_4FGL_J1225.0+0330_daily_bin927.fits.....................!
real 52.28
user 50.91
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/609663/ft1_filtered_4FGL_J1225.0+0330_daily_bin927.fits', '/scratch/kocevski/609663/ft2_4FGL_J1225.0+0330_daily_bin927.fits', expMap='/scratch/kocevski/609663/expmap_479606401_479865601_4FGL_J1225.0+0330_daily_bin927.fits', expCube='/scratch/kocevski/609663/ltcube_479606401_479865601_4FGL_J1225.0+0330_daily_bin927.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/609663/Model_4FGL_J1225.0+0330_daily_bin927.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1225.0+0330'

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  8.374e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.397e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/609663/ft1_filtered_4FGL_J1225.0+0330_daily_bin927.fits
Spacecraft file(s): /scratch/kocevski/609663/ft2_4FGL_J1225.0+0330_daily_bin927.fits
Exposure map: /scratch/kocevski/609663/expmap_479606401_479865601_4FGL_J1225.0+0330_daily_bin927.fits
Exposure cube: /scratch/kocevski/609663/ltcube_479606401_479865601_4FGL_J1225.0+0330_daily_bin927.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/609663/Model_4FGL_J1225.0+0330_daily_bin927.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) = 5652.50839051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7504       1.0000         .10000E-03   10000.    
     2 'Prefactor '    111.02       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.818       1.0000         .10000E-03   10000.    
     7 'Prefactor '    58.642       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.376       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .48302E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2560       1.0000         .10000E-03   10000.    
    14 'norm      '    .21017E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    57.505       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28221E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    4.1827       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.811       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1063       1.0000         .10000E-03   10000.    
    22 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.0457       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.2271       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2058       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87231       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5652.504     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     4035 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7580        29.327        .32217E-04   -.15841E-04
   2  Prefactor     111.03        109.68        .67025E-05    .80116E-05
   3  Prefactor     .10000E-03    5.2790       -.59277E-06** at limit **
   4  Prefactor     .10000E-03    2.2972       -.72404E-07** at limit **
   5  Prefactor     .10000E-03    6.0844       -.15520E-06** at limit **
   6  Prefactor     15.826        16.161        .10761E-04   -.71871E-04
   7  Prefactor     58.703        95.005        .43403E-04   -.56067E-05
   8  Prefactor     .10000E-03    23.260        .17060E-04** at limit **
   9  Prefactor     .10000E-03    22.787       -.14438E-04** at limit **
  10  Prefactor     .10000E-03    7.1181        .11669E-06** at limit **
  11  Prefactor     19.042        35.249        .42175E-04    .24255E-03
  12  Prefactor     .11005E-03    9.4293       -.10176E-05** at limit **
  13  norm          3.2584        2.6539        .10221E-06    .44292E-03
  14  norm          .14920        2.7446       -.17805E-05    .10186E-02
  15  Prefactor     .10000E-03    17.871       -.53724E-07** at limit **
  16  norm          57.033        54.110       -.27742E-04    .30955E-03
  17  Prefactor     .10000E-03    233.21       -.14392E-03** at limit **
  18  norm          4.1766        .91474        .64983E-06    .26051E-02
  19  Prefactor     23.813        14.257        .95810E-06   -.58486E-04
  20  Prefactor     .10000E-03    15.873       -.19169E-06** at limit **
  21  Prefactor     7.1095        7.4017        .58623E-07   -.26540E-05
  22  norm          .10000E-03    .84982        .28271E-06** at limit **
  23  Prefactor     .10000E-03    2.4052        .68719E-08** at limit **
  24  Prefactor     .10000E-03    10.940       -.66583E-06** at limit **
  25  Prefactor     .10000E-03    17.865        .25784E-05** at limit **
  26  Prefactor     .10000E-03    46.086       -.23105E-04** at limit **
  27  norm          4.0505        21.458        .23275E-04   -.36246E-04
  28  Prefactor     2.2316        18.959        .20549E-04   -.58936E-04
  29  Normalizat    1.2053        .23485       -.11042E-04    .67301E-03
  30  Prefactor     .87233        .17965       -.27891E-05    .66829E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.75799
  Prefactor  = 111.031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8259
  Prefactor  = 58.703
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0422
  Prefactor  = 0.000110047
  norm       = 3.25843
  norm       = 0.149202
  Prefactor  = 0.0001
  norm       = 57.0333
  Prefactor  = 0.000100002
  norm       = 4.17664
  Prefactor  = 23.8132
  Prefactor  = 0.0001
  Prefactor  = 7.10951
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 4.05045
  Prefactor  = 2.2316
  Normalizat = 1.20529
  Prefactor  = 0.872334
 **********
 **   18 **HESSE 
 **********

 FCN=   5652.504     FROM HESSE     STATUS=OK           586 CALLS     4621 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7580        29.309        .14404E-03   -1.5151    
   2  Prefactor     111.03        110.50        .38175E-04   -1.3597    
   3  Prefactor     .10000E-03    5.2871        .16863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2994        .11128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.0874        .18110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.826        16.149        .10070E-03   -1.4912    
   7  Prefactor     58.703        95.292        .52390E-04   -1.4174    
   8  Prefactor     .10000E-03    23.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.042        36.281        .90991E-04   -1.4835    
  12  Prefactor     .11005E-03    15.194        .66611E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2584        2.6764        .10154E-03   -1.5347    
  14  norm          .14920        39.797        .19995E-02   -1.5631    
  15  Prefactor     .10000E-03    17.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          57.033        55.977        .26451E-03   -1.4196    
  17  Prefactor     .10000E-03    234.11        .19894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.1766        .92386        .28945E-04   -1.5299    
  19  Prefactor     23.813        14.283        .82089E-04   -1.4732    
  20  Prefactor     .10000E-03    15.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.1095        7.4003        .15048E-03   -1.5175    
  22  norm          .10000E-03    .88448        .13514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.4082        .11386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    46.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.0505        21.405        .20047E-03   -1.5305    
  28  Prefactor     2.2316        19.053        .27550E-03   -1.5409    
  29  Normalizat    1.2053        .27847        .27869E-03   -.86440    
  30  Prefactor     .87233        .21213        .26495E-03   -.97115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60921e-08
Minuit parameter uncertainties:
  1  29.3631
  2  110.708
  3  9.6889e-05
  4  1.06561e-05
  5  5.90179e-05
  6  16.1539
  7  95.5406
  8  7.94677e-05
  9  2.73e-05
  10  7.42293e-06
  11  36.3228
  12  0.0247172
  13  2.67653
  14  4.87517
  15  8.5186e-06
  16  56.0283
  17  0.00126314
  18  0.923865
  19  14.2852
  20  2.9941e-05
  21  7.4012
  22  2.57841e-05
  23  2.9968e-06
  24  2.26941e-05
  25  2.38433e-05
  26  0.000538222
  27  18.6329
  28  13.0466
  29  0.278814
  30  0.212328
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  5.703e+01  5.603e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.397e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  8.723e-01  2.123e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.205e+00  2.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.69
Ra Dec: 186.252 3.510
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.94e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.62e-05

TS (Fixed Index): 3.69
Ra Dec: 186.252 3.510
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/609663/likelihoodResults_479606401_479865601_4FGL_J1225.0+0330_daily_bin927.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): 0
logL (Free Index) = 5651.70901732
delta logL = 0.795426863217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5651.70698264
delta logL = 0.797461546559

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5651.707     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      259 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.352        360.52        .17347E-02    .27509E-03
   2  alpha         3.5511        4.2637        .29453       -.87053E-05
   3  Normalizat    1.1315        .10531        .64474E-01    .24049E-04
   4  Prefactor     .90559        .69424E-01    .45075E-01    .44610E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 33.3516
  alpha      = 3.5511
  Normalizat = 1.13149
  Prefactor  = 0.905586
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.707     FROM HESSE     STATUS=OK            31 CALLS      290 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.352        42.189        .69387E-04   -1.4552    
   2  alpha         3.5511        .90591        .11530E-01    .43393    
   3  Normalizat    1.1315        .25656        .28520E-03   -.88747    
   4  Prefactor     .90559        .20741        .26004E-03   -.95946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78629e-09
Minuit parameter uncertainties:
  1  42.227
  2  0.931905
  3  0.256847
  4  0.207587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/609663': 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) = 5651.70698259
delta logL = 0.797461594868

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  3.335e+01  4.223e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  3.551e+00  9.319e-01  0.000e+00  5.000e+00 ( 1.000e+00)
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.056e-01  2.076e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.131e+00  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.50
Ra Dec: 186.252 3.510
Photon Index (Free Index): 3.55 +/- 0.93
Photon Flux (Free Index): 1.27e-07 +/- 9.14e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.57e-05

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/609663/cmap_HighResolution_479606401_479865601_4FGL_J1225.0+0330_daily_bin927.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-05', comment='SUCCESS', photon_flux='3.94e-08', energy_flux2='2.70e-05', photon_flux_error='3.87e-08', dlogl='7.97e-01', energy_flux='1.65e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-05 14:10:07.940766', photon_index_error2='0.93', photon_index2='3.55', ts='3.69', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.57e-05', EG='1.21', time_epoch_completed='1630876207.94', return_code='0', job_id='609663', GAL2='0.91', EG2='1.13', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='9.14e-08', ts2='5.50', photon_index='2.40' WHERE bin_id='927' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:10:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 609663: <4FGL_J1225.0+0330_daily_bin927> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin927> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:55:32 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:55:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:55:34 2021
Terminated at Sun Sep  5 14:10:08 2021
Results reported at Sun Sep  5 14:10:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin927 186.252 3.5098 479606401 479865601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1225.0+0330 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   847.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            876 sec.

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

