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


Performing analysis on: 4FGL_J0212.9+2244_daily_bin1305
RA = 33.2427, Dec = 22.7466
tmin = 577584001, tmax = 577843201
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='201875', job_status='RUN', time_executed='2021-08-15 11:44:35.157177', time_epoch_executed='1629053075.16' WHERE source_name='4FGL J0212.9+2244' and cadence='daily' and bin_id='1305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/201875

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/201875/ft1_4FGL_J0212.9+2244_daily_bin1305.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/201875/ft2_4FGL_J0212.9+2244_daily_bin1305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/201875/ft1_4FGL_J0212.9+2244_daily_bin1305.fits outfile=/scratch/kocevski/201875/ft1_filteredMKT_4FGL_J0212.9+2244_daily_bin1305.fits ra=33.2427 dec=22.7466 rad=12.0 tmin=577584001.0 tmax=577843201.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.57
user 2.61
sys 0.92

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/201875/ft2_4FGL_J0212.9+2244_daily_bin1305.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/201875/ft2_4FGL_J0212.9+2244_daily_bin1305.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/201875/ft1_filteredMKT_4FGL_J0212.9+2244_daily_bin1305.fits evtable="EVENTS" outfile="/scratch/kocevski/201875/ft1_filtered_4FGL_J0212.9+2244_daily_bin1305.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.22
user 0.34
sys 0.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/201875/ft1_filtered_4FGL_J0212.9+2244_daily_bin1305.fits" evtable="EVENTS" scfile=/scratch/kocevski/201875/ft2_4FGL_J0212.9+2244_daily_bin1305.fits sctable="SC_DATA" outfile=/scratch/kocevski/201875/ltcube_577584001_577843201_4FGL_J0212.9+2244_daily_bin1305.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/201875/ft2_4FGL_J0212.9+2244_daily_bin1305.fits
.....................!
real 15.18
user 14.00
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/201875/ft1_filtered_4FGL_J0212.9+2244_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/201875/ft2_4FGL_J0212.9+2244_daily_bin1305.fits sctable="SC_DATA" expcube=/scratch/kocevski/201875/ltcube_577584001_577843201_4FGL_J0212.9+2244_daily_bin1305.fits outfile=/scratch/kocevski/201875/expmap_577584001_577843201_4FGL_J0212.9+2244_daily_bin1305.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/201875/ltcube_577584001_577843201_4FGL_J0212.9+2244_daily_bin1305.fits
.....................!
real 192.40
user 185.59
sys 6.33

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

Setting source of interest to:
4FGL J0212.9+2244 @ 33.2427 22.7466

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/201875/ft1_filtered_4FGL_J0212.9+2244_daily_bin1305.fits scfile=/scratch/kocevski/201875/ft2_4FGL_J0212.9+2244_daily_bin1305.fits outfile=/scratch/kocevski/201875/cmap_577584001_577843201_4FGL_J0212.9+2244_daily_bin1305.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=33.2427 yref=22.7466 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.27
user 0.38
sys 0.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/201875/ft1_filtered_4FGL_J0212.9+2244_daily_bin1305.fits scfile=/scratch/kocevski/201875/ft2_4FGL_J0212.9+2244_daily_bin1305.fits outfile=/scratch/kocevski/201875/cmap_HighResolution_577584001_577843201_4FGL_J0212.9+2244_daily_bin1305.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=33.2427 yref=22.7466 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.26
user 0.36
sys 0.89

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/201875/ft1_filtered_4FGL_J0212.9+2244_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/201875/ft2_4FGL_J0212.9+2244_daily_bin1305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/201875/Model_4FGL_J0212.9+2244_daily_bin1305.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/201875/ft1_filtered_4FGL_J0212.9+2244_daily_bin1305.fits......................!
real 37.26
user 34.89
sys 2.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/201875/ft1_filtered_4FGL_J0212.9+2244_daily_bin1305.fits', '/scratch/kocevski/201875/ft2_4FGL_J0212.9+2244_daily_bin1305.fits', expMap='/scratch/kocevski/201875/expmap_577584001_577843201_4FGL_J0212.9+2244_daily_bin1305.fits', expCube='/scratch/kocevski/201875/ltcube_577584001_577843201_4FGL_J0212.9+2244_daily_bin1305.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/201875/Model_4FGL_J0212.9+2244_daily_bin1305.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0212.9+2244'

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  1.178e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
213        Index:  2.054e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
214        Scale:  2.189e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/201875/ft1_filtered_4FGL_J0212.9+2244_daily_bin1305.fits
Spacecraft file(s): /scratch/kocevski/201875/ft2_4FGL_J0212.9+2244_daily_bin1305.fits
Exposure map: /scratch/kocevski/201875/expmap_577584001_577843201_4FGL_J0212.9+2244_daily_bin1305.fits
Exposure cube: /scratch/kocevski/201875/ltcube_577584001_577843201_4FGL_J0212.9+2244_daily_bin1305.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/201875/Model_4FGL_J0212.9+2244_daily_bin1305.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) = 1509.5837843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29972E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.9812       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16329E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    105.22       1.0000         .10000E-03   10000.    
    11 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2523       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.590       1.0000         .10000E-03   10000.    
    14 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11978E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.502       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    23.068       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    35.015       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.650       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.7384       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1784       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1505.894     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     4146 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        1647.2        .71056E-05** at limit **
   2  Prefactor    10000.0        5058.9        .19223E-04** at limit **
   3  Prefactor     .10013E-03    9864.4       -.72548E-05** at limit **
   4  norm          .10000E-03    8.4963       -.72442E-08** at limit **
   5  Prefactor     .10000E-03    162.67        .51071E-07** at limit **
   6  Prefactor     .10000E-03    48.977       -.14509E-08** at limit **
   7  norm          3.9700        21.764        .10852E-04   -.19679E-04
   8  Prefactor     .10000E-03    548.78        .13563E-06** at limit **
   9  Prefactor     .10000E-03    12.763        .68602E-08** at limit **
  10  Prefactor     105.24        61.611       -.28228E-05   -.13917E-04
  11  norm          .10000E-03    14.439        .26984E-08** at limit **
  12  Prefactor     6.2519        16.319        .31229E-05   -.15631E-04
  13  Prefactor     12.595        33.098        .68229E-06   -.73977E-05
  14  norm          .10000E-03    134.64       -.66943E-06** at limit **
  15  Prefactor     .10000E-03    191.58        .10709E-05** at limit **
  16  Prefactor     15.498        40.886        .13091E-05   -.76594E-07
  17  Prefactor     .10000E-03    71.538        .12939E-06** at limit **
  18  Prefactor     .10000E-03    24.336        .15031E-06** at limit **
  19  norm          23.070        7.3964        .74241E-08   -.64634E-05
  20  Prefactor     .10000E-03    11.087       -.37067E-07** at limit **
  21  norm          .10000E-03    .83494        .14014E-07** at limit **
  22  Prefactor     34.994        88.942        .35637E-06   -.55582E-05
  23  Prefactor     .10000E-03    15.903        .15155E-07** at limit **
  24  Prefactor     16.654        29.155        .20886E-06    .28442E-05
  25  Prefactor     .10000E-03    24.164       -.17443E-06** at limit **
  26  norm          4.7354        37.512        .52748E-06    .17382E-07
  27  Normalizat    .10000E-01    .28421       -.52028E-06** at limit **
  28  Prefactor     1.1784        .19691       -.34125E-06    .17632E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100135
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.97003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 105.24
  norm       = 0.0001
  Prefactor  = 6.25191
  Prefactor  = 12.5947
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 15.4981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.0698
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.9944
  Prefactor  = 0.0001
  Prefactor  = 16.6542
  Prefactor  = 0.0001
  norm       = 4.73542
  Normalizat = 0.01
  Prefactor  = 1.17837
 **********
 **   18 **HESSE 
 **********

 FCN=   1505.894     FROM HESSE     STATUS=OK           513 CALLS     4659 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        1646.2        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        5058.7        .18235E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10013E-03    9864.5        .19829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.4980        .11050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    162.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.9700        21.768        .10107E-02   -1.5309    
   8  Prefactor     .10000E-03    548.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.763        .13543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     105.24        61.466        .39203E-04   -1.3653    
  11  norm          .10000E-03    14.439        .14405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.2519        16.306        .80269E-03   -1.5208    
  13  Prefactor     12.595        33.005        .11289E-03   -1.4998    
  14  norm          .10000E-03    134.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    191.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.498        41.038        .10173E-03   -1.4920    
  17  Prefactor     .10000E-03    71.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          23.070        7.4034        .55223E-04   -1.4747    
  20  Prefactor     .10000E-03    11.093        .12621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.1628        .68453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     34.994        88.996        .67724E-04   -1.4524    
  23  Prefactor     .10000E-03    15.910        .15118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.654        29.292        .98154E-04   -1.4892    
  25  Prefactor     .10000E-03    24.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.7354        38.150        .18485E-03   -1.5273    
  27  Normalizat    .10000E-01    .32187        .11279E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.1784        .19125        .16774E-03   -.86999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20942e-10
Minuit parameter uncertainties:
  1  0.0297495
  2  0.625453
  3  0.127354
  4  1.66551e-06
  5  6.35646e-05
  6  1.99507e-05
  7  18.6027
  8  0.00036072
  9  1.20822e-06
  10  61.5036
  11  3.97604e-06
  12  16.3181
  13  33.0529
  14  0.000771774
  15  0.00113721
  16  41.1132
  17  0.000106688
  18  6.66733e-05
  19  7.40368
  20  2.6255e-06
  21  1.36106e-06
  22  89.3364
  23  1.153e-06
  24  29.3173
  25  8.73138e-05
  26  26.905
  27  1.57789e-06
  28  0.191366
Done.

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

Extracting fit parameters...

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  6.252e+00  1.632e+01  1.000e-04  1.000e+04 ( 1.000e-13)
213        Index:  2.054e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
214        Scale:  2.189e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  1.178e+00  1.914e-01  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.000e-02  1.578e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 33.243 22.747
Photon Flux Upper Limit: 3.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.80e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/201875/likelihoodResults_577584001_577843201_4FGL_J0212.9+2244_daily_bin1305.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) = 1505.78449781
delta logL = 0.109429524213

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1505.77727641
delta logL = 0.116650928183

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1505.777     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      254 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.424        5987.1        .26365E-02    .15261E-03
   2  Index         1.5195        8.1613        .21755        .12979E-04
   3  Normalizat    .10000E-01    .14986        .31069    ** at limit **
   4  Prefactor     1.1763        .12121        .35215E-01    .10689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4241
  Index      = 1.5195
  Normalizat = 0.01
  Prefactor  = 1.17634
 **********
 **   18 **HESSE 
 **********

 FCN=   1505.777     FROM HESSE     STATUS=OK            29 CALLS      283 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.424        28.656        .10546E-03   -1.4948    
   2  Index         1.5195        .93951        .81760E-02   -.76995    
   3  Normalizat    .10000E-01    .32593        .11301E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1763        .14290        .16776E-03   -.87063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35569e-10
Minuit parameter uncertainties:
  1  28.683
  2  0.950581
  3  1.77285e-07
  4  0.142949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/201875': 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) = 1505.77727629
delta logL = 0.116651045071

Extracting fit parameters...

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  1.442e+01  2.868e+01  1.000e-04  1.000e+04 ( 1.000e-13)
213        Index:  1.520e+00  9.506e-01  0.000e+00  1.000e+01 (-1.000e+00)
214        Scale:  2.189e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  1.176e+00  1.429e-01  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.000e-02  1.773e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
Ra Dec: 33.243 22.747

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/201875/cmap_HighResolution_577584001_577843201_4FGL_J0212.9+2244_daily_bin1305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-02', job_status='DONE', photon_flux_upper_limit='3.72e-07', time_completed='2021-08-15 11:52:12.116516', job_id='201875', GAL2='1.18', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629053532.12', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.17e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1305' AND source_name='4FGL J0212.9+2244' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 11:52:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 201875: <4FGL_J0212.9+2244_daily_bin1305> in cluster <slac> Done

Job <4FGL_J0212.9+2244_daily_bin1305> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 11:40:25 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 11:41:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 11:41:43 2021
Terminated at Sun Aug 15 11:52:13 2021
Results reported at Sun Aug 15 11:52:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0212.9+2244_daily_bin1305 33.2427 22.7466 577584001 577843201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0212.9+2244 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   461.06 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             265.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            708 sec.

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

